# zypper command

**URL:** <https://forums.suse.com/t/zypper-command/24389>\
**Category:** SLES Configure-Administer\
**Created:** [September 8, 2013, 5:51pm UTC](https://forums.suse.com/t/zypper-command/24389 "2013-09-08T17:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shevary](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@shevary](https://forums.suse.com/u/shevary)\
**Post date:** [September 8, 2013, 5:51pm UTC](https://forums.suse.com/t/zypper-command/24389/1 "2013-09-08T17:51:08Z")

</div>

Hi Guys,

I am running the SLES 11 SP3 VMware version and I want first download the patches and then apply the patches, I was checking the zypper is ther any command to download the patches and then apply the patches.

thx

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [September 8, 2013, 7:21pm UTC](https://forums.suse.com/t/zypper-command/24389/2 "2013-09-08T19:21:01Z")

</div>

Hi shevary,

[QUOTE=shevary;15774]Hi Guys,

I am running the SLES 11 SP3 VMware version and I want first download the patches and then apply the patches, I was checking the zypper is ther any command to download the patches and then apply the patches.

thx[/QUOTE]

AFAIK, there’s no prepared tool to do so - but you can use your credentials to log in to the configured update server and download the patch files, i.e. via wget.

When you have registered against an SMT server, you won’t need to provide credentials, while the login to SUSE’s official servers will ask you for them, AFAIK.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [September 9, 2013, 12:20am UTC](https://forums.suse.com/t/zypper-command/24389/3 "2013-09-09T00:20:17Z")

</div>

I think this is what you want, quoting from the ‘zypper’ manpage:

## Code:

Download-and-install mode options:

-d, --download-only  
Only download the packages for later installation.

–download-in-advance  
First download all packages, then start installing.

–download-in-heaps  
(Not yet implemented, currently the same as  
–download-in-advance). Download a minimal set of packages that can be  
installed without leaving the system in broken state, and install them.  
Then download and install another heap until all are  
installed. This helps to keep the system in consistent state without  
the need to download all package in advance, which combines the advantages  
of --download-in-advance and --download-as-needed. This is the default mode.

–download-as-needed  
Download one package, install it immediately, and continue with the  
rest until all are installed.

## –download Use the specified download-and-install mode. Available modes are: only, in-advance, in-heaps, as-needed. See corresponding –download- options for their description.

Good luck.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [September 9, 2013, 12:01pm UTC](https://forums.suse.com/t/zypper-command/24389/4 "2013-09-09T12:01:20Z")

</div>

Hi ab,

> -d, --download-only

something new to learn every day… thanks for pointing that out!

Regards,  
Jens
