"old" rpm's

The title might not be that descriptive, what id like to ask is what happens with the rpms that are downloaded when for instance an update is done. So when there is a (patch) update some rpms are dowloaded and then applied. I remember there was an option at 10.3 to deleted the downloaded rpms after installation. i cant find such an option at yast in 11.1 Are they been deleted automatically in 11.1? if not is there a way to delete them? (im looking for something like apt-get clean or apt-get autoclean in the debian way).

Thnx a lot in advance

they get downloaded somewhere in /var/lib and I believe after install, they get deleted

They are keep or not on a per-repo basis:

$ fgrep keeppackages /etc/zypp/repos.d/*
/etc/zypp/repos.d/contrib.repo:keeppackages=0
/etc/zypp/repos.d/debug.repo:keeppackages=0
/etc/zypp/repos.d/dvd.repo:keeppackages=0
/etc/zypp/repos.d/games.repo:keeppackages=0
/etc/zypp/repos.d/home_reddwarf_java.repo:keeppackages=0
/etc/zypp/repos.d/home_reddwarf_multimedia.repo:keeppackages=0
/etc/zypp/repos.d/home_RedDwarf.repo:keeppackages=0
/etc/zypp/repos.d/kde42.repo:keeppackages=0
/etc/zypp/repos.d/KDE_Backports.repo:keeppackages=0
/etc/zypp/repos.d/local.repo:keeppackages=0
/etc/zypp/repos.d/non-oss.repo:keeppackages=0
/etc/zypp/repos.d/nvidia.repo:keeppackages=0
/etc/zypp/repos.d/opensuse_tools.repo:keeppackages=0
/etc/zypp/repos.d/oss.repo:keeppackages=0
/etc/zypp/repos.d/packman.repo:keeppackages=0
/etc/zypp/repos.d/smart.repo:keeppackages=0
/etc/zypp/repos.d/source.repo:keeppackages=0
/etc/zypp/repos.d/update.repo:keeppackages=0
/etc/zypp/repos.d/videolan.repo:keeppackages=0
/etc/zypp/repos.d/virtualbox.repo:keeppackages=0
/etc/zypp/repos.d/wine.repo:keeppackages=0

And stored wherever you say, /var/cache/zypp/packages by default.

$ fgrep -B6 packagesdir /etc/zypp/zypp.conf
##
## Path where the repo packages are downloaded and kept.
##
## Valid values: A directory
## Default value: {cachedir}/packages
##
# packagesdir = /var/cache/zypp/packages

Yes, it’s the default.

Read “man zypper” and search for the options of “clean”.

ok, i got it. thnx for your answers!!!