# Zypper package cache

**URL:** <https://forums.suse.com/t/zypper-package-cache/24554>\
**Category:** SLES Configure-Administer\
**Created:** [September 27, 2013, 9:38am UTC](https://forums.suse.com/t/zypper-package-cache/24554 "2013-09-27T09:38:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarhang](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@sarhang](https://forums.suse.com/u/sarhang)\
**Post date:** [September 27, 2013, 9:38am UTC](https://forums.suse.com/t/zypper-package-cache/24554/1 "2013-09-27T09:38:51Z")

</div>

I just want to know where YaST and/or Zypper store the downloaded rpms. I’m using sles 11 sp3 (VMware version)

Thanks in advance.

---

<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 27, 2013, 1:29pm UTC](https://forums.suse.com/t/zypper-package-cache/24554/2 "2013-09-27T13:29:11Z")

</div>

Googled for “where is zypper cache” and the first hit was this forum  
thread, which I believe is accurate:

[http://forums.opensuse.org/showthread.php?threadid=386918](http://forums.opensuse.org/showthread.php?threadid=386918)

I’m including steps to find it, as well as that post, since there was  
other discussion in there that may be useful, depending on why you are  
asking this question in the first place.

Sneak peek: /var/cache/zypp/packages

Good luck.

---

<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 29, 2013, 5:13am UTC](https://forums.suse.com/t/zypper-package-cache/24554/3 "2013-09-29T05:13:23Z")

</div>

It works for for Opnesuse I had to edit each .repo on /etc/zypp/repos.d and change the keeppackages variable to 1. It seems to there is no option for SLES 11 (Vmware version).

thx

---

<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 29, 2013, 5:21am UTC](https://forums.suse.com/t/zypper-package-cache/24554/4 "2013-09-29T05:21:54Z")

</div>

Just checking the sles 11

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [October 1, 2013, 4:42pm UTC](https://forums.suse.com/t/zypper-package-cache/24554/5 "2013-10-01T16:42:16Z")

</div>

On 29/09/2013 03:24, shevary wrote:  
[color=blue]

> Ok, it is my fault it is under /etct/zypp/repos.d and I edited all the  
> file and change change the keeppackages variable to 1[/color]

Rather than editing files (which has risks) better to use “zypper  
modifyrepo --keep-packages ” for each repository you want  
to keep packages (use “–all” for if you want to do all)  
as noted in a reply to the thread ab linked.

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.
