Feature changed by: Jan Engelhardt (jengelh) Feature #313375, revision 3 Title: Have zypper clean cached packages intelligently openSUSE Distribution: Unconfirmed Priority Requester: Desirable Requested by: Donovan Cameron (saultdon) Partner organization: openSUSE.org Description: When you tell zypper to clean the cached packages with the command: zypper clean This removes ALL cached packages. Over time, zypper will keep all versions of a package RPM file. This can result in a bloated /var/cache/zypp folder. It would be nice to be able to remove all OLD cached packages and keep the latest one, or even have more functionality like being able to specify how many previous versions (to control rollback ability when using the --force flag). Or if it finds that a package is the only one, just keep it. Pseudo code example: If package is installed then ..If package names are the same ....keep the newest version ..Else if package has no matches ....do not delete Else package is no longer installed ..delete cached package + Discussion: + #1: Jan Engelhardt (jengelh) (2012-05-10 06:50:27) + So just add keeppackages=0 to /etc/zypp/repos.d/<whatever>.repo -- openSUSE Feature: https://features.opensuse.org/313375