# Zypper command

**URL:** <https://forums.suse.com/t/zypper-command/24529>\
**Category:** SLES Configure-Administer\
**Created:** [September 22, 2013, 5:08pm UTC](https://forums.suse.com/t/zypper-command/24529 "2013-09-22T17:08:21Z")\
**Posts on this page:** 2\
**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 22, 2013, 5:08pm UTC](https://forums.suse.com/t/zypper-command/24529/1 "2013-09-22T17:08:21Z")

</div>

Hi Guys,

I have a quick question about the Zypper command, I am running SLES11 SP3 and OpenSuse, and I want to first download the updates and then apply the updated. I had a look into the zypper command I found these commands;

d, --download-only  
–download-in-advance  
–download-in-heaps  
–download-as-needed

All I need is to download the update the and apply the update later on. This is part of my build I will need to keep a copy of all the updates.

Which command do I have to use?

thx

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [September 22, 2013, 9:35pm UTC](https://forums.suse.com/t/zypper-command/24529/2 "2013-09-22T21:35:35Z")

</div>

shevary wrote:  
[color=blue]

> Hi Guys,
> 
> I have a quick question about the Zypper command, I am running SLES11  
> SP3 and OpenSuse, and I want to first download the updates and then  
> apply the updated. I had a look into the zypper command I found these  
> commands;
> 
> d, --download-only  
> –download-in-advance  
> –download-in-heaps  
> –download-as-needed
> 
> All I need is to download the update the and apply the update later  
> on. This is part of my build I will need to keep a copy of all the  
> updates.
> 
> Which command do I have to use?
> 
> thx[/color]

According to the man pages (man zypper):

```auto
-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 com-
bines 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 <mode>
Use the specified download-and-install mode. Available modes
are: only, in-advance, in-heaps, as-needed. See corresponding
--download-<mode> options for their description.
```

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
