February 02, 2009

zypper equivalent of yum —downloadonly

Looking at moving from yum to zypper I found myself unable to work out how to get zypper to download packages but not install them. Yum can do this with the downloadonly plugin:

yum -y update --downloadonly

According to this bug report, zypper should be able to do it but I couldn't find any explanation as to how. In the end I emailed the guy who marked that bug report as fixed and he was kind enough to reply and point me in the direction of the keep-packages option. This is a per-repo setting which means download packages are kept in cache. Knowing this a Google search took me here where it is mentioned along with the --dry-run option. So to get zypper to download updates but not install them, enable caching of packages on all repos with

zypper mr -k -all

and then use

zypper -l -y  update --dry-run




- No comments Not publicly viewable


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Trackbacks

February 2009

Mo Tu We Th Fr Sa Su
Jan |  Today  | Mar
                  1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28   

Search this blog

Tags

Most recent comments

  • The blue is the third stripe from the right. It was a fairly pale a… by Mike Willis on this entry
  • Delicious–looking, but optically bogus. Where’s the blue? :–) by Chris May on this entry
  • Isn’t there something here along the lines of “Eagles s… by Julian Chronicle on this entry
  • Interesting. Using AppleScript to get the information wouldn’... by Mike Willis on this entry
  • osascript –e ‘tell application “Finder” to get bo… by John Rawnsley on this entry

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMX