[opensuse] How to clean up /var/cache/zypper/RPMS ?
I was playing a bit with kdirstat, and I noticed a directory that takes up a lot of space: /var/cache/zypper/RPMS It seems to contain cached versions of rpms that I manually downloaded&installed, for example VMware server. I come from Ubuntu, and I still use Debian on my server, so I'm used to a large package cache. But the Suse way to do things is different, and I found out that package caching only happens when you explicitly enable it in /etc/zypp/repos.d/*.repo. Otherwise the packages are always downloaded. What I have not yet found, is the Suse alternative for "aptitude autoclean" delete only out-of-date package files but keep current ones. I also would like to delete some of the VMware RPMs, because I have played a bit with different versions, and they are quite large. How can I clean up that cache directory? Can I just rm the unwanted files without any negative repercussions, or what is the official Suse way to do that? Kind regards, Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 18 January 2009 23:43:52 Amedee Van Gasse wrote:
I was playing a bit with kdirstat, and I noticed a directory that takes up a lot of space: /var/cache/zypper/RPMS It seems to contain cached versions of rpms that I manually downloaded&installed, for example VMware server.
I come from Ubuntu, and I still use Debian on my server, so I'm used to a large package cache. But the Suse way to do things is different, and I found out that package caching only happens when you explicitly enable it in /etc/zypp/repos.d/*.repo. Otherwise the packages are always downloaded.
What I have not yet found, is the Suse alternative for "aptitude autoclean" delete only out-of-date package files but keep current ones.
I also would like to delete some of the VMware RPMs, because I have played a bit with different versions, and they are quite large. How can I clean up that cache directory? Can I just rm the unwanted files without any negative repercussions, or what is the official Suse way to do that?
Kind regards, Amedee
From the command line, as root, zypper clean will remove all downloaded rpms. -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ===================================================
Rodney Baker schreef:
On Sunday 18 January 2009 23:43:52 Amedee Van Gasse wrote:
What I have not yet found, is the Suse alternative for "aptitude autoclean" delete only out-of-date package files but keep current ones.
From the command line, as root, zypper clean will remove all downloaded rpms.
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all. Kind regards, Amedee Van Gasse -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all.
I'd say this calls for a a bug report. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all.
I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know. Anyway before I file a bug report, I would appreciate it if someone could confirm. Test scenario: $ ls -l /var/cache/zypper/RPMS Download VMware server from the VMware website (or any other RPM that isn't in one of the repo's) # zypper in file-you-have-downloaded.rpm $ ls -l /var/cache/zypper/RPMS # zypper clean --all $ ls -l /var/cache/zypper/RPMS Please let me know what happens. If anyone else still sees files in /var/cache/zypper/RPMS after zypper clean --all, then I'll file a bug report. If not, then I'll assume it's just a misconfiguration on my end, better known as PEBKAC ;-) -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Amedee Van Gasse wrote:
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all.
I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know.
Anyway before I file a bug report, I would appreciate it if someone could confirm.
Test scenario:
$ ls -l /var/cache/zypper/RPMS Download VMware server from the VMware website (or any other RPM that isn't in one of the repo's) # zypper in file-you-have-downloaded.rpm $ ls -l /var/cache/zypper/RPMS # zypper clean --all $ ls -l /var/cache/zypper/RPMS
Please let me know what happens. If anyone else still sees files in /var/cache/zypper/RPMS after zypper clean --all, then I'll file a bug report. If not, then I'll assume it's just a misconfiguration on my end, better known as PEBKAC ;-)
Are you sure that you are talking about /var/cache/ZYPPER and not ZYPP because I do not have a cache called zypper on my system. Ciao. -- "With the portion of mankind that is above average one may speak of higher things; with those below it, one may not." Confucius -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Basil Chupin schreef:
Are you sure that you are talking about /var/cache/ZYPPER and not ZYPP because I do not have a cache called zypper on my system.
Yes I am quite sure! amedee@saruman { ~ }$ ls -al /var/cache/zypper/RPMS/ totaal 582824 drwxr-xr-x 2 root root 4096 jan 18 15:45 . drwxr-xr-x 3 root root 4096 dec 23 18:43 .. -rwxr-xr-x 1 root root 1035615 dec 25 13:12 magicolor2430DL-1.5.0-1.i386.rpm -rwxr-xr-x 1 root root 31131299 dec 24 02:17 VirtualBox-2.1.0_41146_openSUSE111-1.i586.rpm -rwxr-xr-x 1 root root 564034376 dec 26 11:32 VMware-server-2.0.0-122956.i386.rpm I already rm'd a few files in that directory, there used to be a few more. I just hope I didn't break anything. -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Amedee Van Gasse wrote:
Basil Chupin schreef:
Are you sure that you are talking about /var/cache/ZYPPER and not ZYPP because I do not have a cache called zypper on my system.
Yes I am quite sure!
You are Sure, sure :-) ? OK, in which case I don't want to miss out and want a copy of /var/cache/zypper for myself :-) . Ciao. -- "With the portion of mankind that is above average one may speak of higher things; with those below it, one may not." Confucius -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Amedee Van Gasse wrote:
Basil Chupin schreef:
Are you sure that you are talking about /var/cache/ZYPPER and not ZYPP because I do not have a cache called zypper on my system.
Yes I am quite sure!
amedee@saruman { ~ }$ ls -al /var/cache/zypper/RPMS/ totaal 582824 drwxr-xr-x 2 root root 4096 jan 18 15:45 . drwxr-xr-x 3 root root 4096 dec 23 18:43 .. -rwxr-xr-x 1 root root 1035615 dec 25 13:12 magicolor2430DL-1.5.0-1.i386.rpm -rwxr-xr-x 1 root root 31131299 dec 24 02:17 VirtualBox-2.1.0_41146_openSUSE111-1.i586.rpm -rwxr-xr-x 1 root root 564034376 dec 26 11:32 VMware-server-2.0.0-122956.i386.rpm
I already rm'd a few files in that directory, there used to be a few more. I just hope I didn't break anything.
Amedee, Do you have the -k (keep packages) option enabled on your repos? 18:40 ecstasy:~> cat /etc/zypp/repos.d/games.repo [games] name=games baseurl=http://download.opensuse.org/repositories/games/openSUSE_11.0/ type=rpm-md enabled=1 autorefresh=1 gpgcheck=1 keeppackages=1 ^^^^^^^^^^^^^^ -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin schreef:
Amedee Van Gasse wrote:
Basil Chupin schreef:
Are you sure that you are talking about /var/cache/ZYPPER and not ZYPP because I do not have a cache called zypper on my system.
Yes I am quite sure!
amedee@saruman { ~ }$ ls -al /var/cache/zypper/RPMS/ totaal 582824 drwxr-xr-x 2 root root 4096 jan 18 15:45 . drwxr-xr-x 3 root root 4096 dec 23 18:43 .. -rwxr-xr-x 1 root root 1035615 dec 25 13:12 magicolor2430DL-1.5.0-1.i386.rpm -rwxr-xr-x 1 root root 31131299 dec 24 02:17 VirtualBox-2.1.0_41146_openSUSE111-1.i586.rpm -rwxr-xr-x 1 root root 564034376 dec 26 11:32 VMware-server-2.0.0-122956.i386.rpm
I already rm'd a few files in that directory, there used to be a few more. I just hope I didn't break anything.
Amedee,
Do you have the -k (keep packages) option enabled on your repos?
18:40 ecstasy:~> cat /etc/zypp/repos.d/games.repo [games] name=games baseurl=http://download.opensuse.org/repositories/games/openSUSE_11.0/ type=rpm-md enabled=1 autorefresh=1 gpgcheck=1 keeppackages=1 ^^^^^^^^^^^^^^
amedee@saruman { ~ }$ grep keeppackages /etc/zypp/repos.d/*.repo /etc/zypp/repos.d/eric.lavar.de.repo:keeppackages=0 /etc/zypp/repos.d/JPackage.repo:keeppackages=0 /etc/zypp/repos.d/repo_10.repo:keeppackages=0 /etc/zypp/repos.d/repo_11.repo:keeppackages=0 /etc/zypp/repos.d/repo_12.repo:keeppackages=0 /etc/zypp/repos.d/repo_13.repo:keeppackages=0 /etc/zypp/repos.d/repo_14.repo:keeppackages=0 /etc/zypp/repos.d/repo_15.repo:keeppackages=0 /etc/zypp/repos.d/repo_16.repo:keeppackages=0 /etc/zypp/repos.d/repo_17.repo:keeppackages=0 /etc/zypp/repos.d/repo_18.repo:keeppackages=0 /etc/zypp/repos.d/repo_19.repo:keeppackages=0 /etc/zypp/repos.d/repo_1.repo:keeppackages=0 /etc/zypp/repos.d/repo_20.repo:keeppackages=0 /etc/zypp/repos.d/repo_21.repo:keeppackages=0 /etc/zypp/repos.d/repo_22.repo:keeppackages=0 /etc/zypp/repos.d/repo_23.repo:keeppackages=0 /etc/zypp/repos.d/repo_2.repo:keeppackages=0 /etc/zypp/repos.d/repo_3.repo:keeppackages=0 /etc/zypp/repos.d/repo_4.repo:keeppackages=0 /etc/zypp/repos.d/repo_5.repo:keeppackages=0 /etc/zypp/repos.d/repo_6.repo:keeppackages=0 /etc/zypp/repos.d/repo_7.repo:keeppackages=0 /etc/zypp/repos.d/repo_8.repo:keeppackages=0 /etc/zypp/repos.d/repo_9.repo:keeppackages=0 /etc/zypp/repos.d/repo-debug.repo:keeppackages=0 /etc/zypp/repos.d/repo-non-oss.repo:keeppackages=0 /etc/zypp/repos.d/repo-oss.repo:keeppackages=0 /etc/zypp/repos.d/repo.repo:keeppackages=0 /etc/zypp/repos.d/repo-source.repo:keeppackages=0 /etc/zypp/repos.d/repo-update.repo:keeppackages=0 I guess not. -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Basil Chupin wrote:
Are you sure that you are talking about /var/cache/ZYPPER and not ZYPP because I do not have a cache called zypper on my system.
That is because you did not install an rpm file with zypper so far. Like 'zypper in foo.rpm'. The good thing about this cache is, that anything you install this way, will be there, even remote rpms, like in 'zypper install http://download.foo.org/rpms/the.rpm' - -- cheers, jano Ján Kupec YaST team - ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 - ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz - ---------------------------------------------------------(EOF)--- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkl11uUACgkQgEhGpmN+6QHlDwCeL/TfhV0GP4tek9U/G6lIYMRK 3PQAoIEhCYOE+t5Obf4Ixoc9RMzIZ7Hd =o/C+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, January 20, 2009 14:51, Jan Kupec wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Basil Chupin wrote:
Are you sure that you are talking about /var/cache/ZYPPER and not ZYPP because I do not have a cache called zypper on my system.
That is because you did not install an rpm file with zypper so far. Like 'zypper in foo.rpm'.
The good thing about this cache is, that anything you install this way, will be there, even remote rpms, like in 'zypper install http://download.foo.org/rpms/the.rpm'
I appreciate its existence, but I would like more control over it. Anyway, it seems like rm'ing the files there won't hurt me, and that's all the control any sysadmin needs after all! :-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Amedee Van Gasse wrote:
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all. I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know.
Anyway before I file a bug report, I would appreciate it if someone could confirm.
Test scenario:
$ ls -l /var/cache/zypper/RPMS Download VMware server from the VMware website (or any other RPM that isn't in one of the repo's) # zypper in file-you-have-downloaded.rpm $ ls -l /var/cache/zypper/RPMS # zypper clean --all $ ls -l /var/cache/zypper/RPMS
Please let me know what happens. If anyone else still sees files in /var/cache/zypper/RPMS after zypper clean --all, then I'll file a bug report. If not, then I'll assume it's just a misconfiguration on my end, better known as PEBKAC ;-)
the proper dir. is: /var/cache/zypp/packages zypper clean --all DID remove all files here. Fred -- "Politicians and diapers need to be changed regularly -- and for the same reason." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Fred A. Miller wrote:
Amedee Van Gasse wrote:
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all.
I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know.
Anyway before I file a bug report, I would appreciate it if someone could confirm.
Test scenario:
$ ls -l /var/cache/zypper/RPMS Download VMware server from the VMware website (or any other RPM that isn't in one of the repo's) # zypper in file-you-have-downloaded.rpm $ ls -l /var/cache/zypper/RPMS # zypper clean --all $ ls -l /var/cache/zypper/RPMS
Please let me know what happens. If anyone else still sees files in /var/cache/zypper/RPMS after zypper clean --all, then I'll file a bug report. If not, then I'll assume it's just a misconfiguration on my end, better known as PEBKAC ;-)
the proper dir. is: /var/cache/zypp/packages
Ooopsy. Are you sure that it *is* .../cache/*zypp* and not zypper? The OP and others accept that zypper is the correct sub-dir. Ciao. -- "With the portion of mankind that is above average one may speak of higher things; with those below it, one may not." Confucius -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Basil Chupin wrote:
Fred A. Miller wrote:
Amedee Van Gasse wrote:
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all.
I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know.
Anyway before I file a bug report, I would appreciate it if someone could confirm.
Test scenario:
$ ls -l /var/cache/zypper/RPMS Download VMware server from the VMware website (or any other RPM that isn't in one of the repo's) # zypper in file-you-have-downloaded.rpm $ ls -l /var/cache/zypper/RPMS # zypper clean --all $ ls -l /var/cache/zypper/RPMS
Please let me know what happens. If anyone else still sees files in /var/cache/zypper/RPMS after zypper clean --all, then I'll file a bug report. If not, then I'll assume it's just a misconfiguration on my end, better known as PEBKAC ;-)
the proper dir. is: /var/cache/zypp/packages
Ooopsy. Are you sure that it *is* .../cache/*zypp* and not zypper?
The OP and others accept that zypper is the correct sub-dir.
Quite sure. Fred -- "Politicians and diapers need to be changed regularly -- and for the same reason." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Fred A. Miller wrote:
Basil Chupin wrote:
Fred A. Miller wrote:
Amedee Van Gasse wrote:
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all.
I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know.
Anyway before I file a bug report, I would appreciate it if someone could confirm.
Test scenario:
$ ls -l /var/cache/zypper/RPMS Download VMware server from the VMware website (or any other RPM that isn't in one of the repo's) # zypper in file-you-have-downloaded.rpm $ ls -l /var/cache/zypper/RPMS # zypper clean --all $ ls -l /var/cache/zypper/RPMS
Please let me know what happens. If anyone else still sees files in /var/cache/zypper/RPMS after zypper clean --all, then I'll file a bug report. If not, then I'll assume it's just a misconfiguration on my end, better known as PEBKAC ;-)
the proper dir. is: /var/cache/zypp/packages
Ooopsy. Are you sure that it *is* .../cache/*zypp* and not zypper?
The OP and others accept that zypper is the correct sub-dir.
Quite sure.
Fred
Good. Now we can wait for responses from Carlos et alia stating that they have var/cache/zypper on their systems :-) . Ciao. -- "With the portion of mankind that is above average one may speak of higher things; with those below it, one may not." Confucius -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-01-19 at 17:13 +1100, Basil Chupin wrote:
Good. Now we can wait for responses from Carlos et alia stating that they have var/cache/zypper on their systems :-) .
Different directories, different use. See the reply from Dave Plater for an explanation. I don't have enabled the rpm cache (yet), so I can't verify myself. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkl0atsACgkQtTMYHG2NR9WavwCfRzz3B2EoIr5kp+Zn1WymEC9x dzoAnj388dRteJGi5Y7n5iUuchdgvo+m =tFfW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, January 19, 2009 04:55, Fred A. Miller wrote:
the proper dir. is: /var/cache/zypp/packages
I have that one too, but it's empty. What do you mean with the word "proper"? -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Amedee Van Gasse wrote:
On Mon, January 19, 2009 04:55, Fred A. Miller wrote:
the proper dir. is: /var/cache/zypp/packages
I have that one too, but it's empty. What do you mean with the word "proper"?
I have both /var/cache/zypper/RPMS and the /var/cache/zypp/packages directories on my system. /var/cache/zypper/ appeared quite a long time ago but on inspection it contains copies of rpm's that I have installed via rpm and not yast or zypper, further more these are rpms that I have in my local repositories and have not installed from a remote repository, this is weird and a waste of disk space. The /var/cache/zypp/packages directory contains all the kept packages from online installations and zypper clean deletes all of these if used. I periodically move these packages to my local repos and delete any out of date ones manualy and also if any of these packages need reinstallation then libzypp detects that they are present in the cache and doesn't download them again. I would think that the /var/cache/zypper/RPMS directory contents is a bug from somewhere, possibly rpm or generated from a refresh. If you haven't got a /var/cache/zypp/ directory you have a problem, try installing something via zypper or yast and it should appear, it is where libzypp downloads packages to and if the keeppackages option is set to 1 the packages are kept in a directory matching the online repo name in /var/cache/zypp/packages. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, January 19, 2009 11:00, Dave Plater wrote:
Amedee Van Gasse wrote:
On Mon, January 19, 2009 04:55, Fred A. Miller wrote:
the proper dir. is: /var/cache/zypp/packages
I have that one too, but it's empty. What do you mean with the word "proper"?
I have both /var/cache/zypper/RPMS and the /var/cache/zypp/packages directories on my system. /var/cache/zypper/ appeared quite a long time ago but on inspection it contains copies of rpm's that I have installed via rpm and not yast or zypper, further more these are rpms that I have in my local repositories and have not installed from a remote repository, this is weird and a waste of disk space.
Yes. This is exactly the same as on my system.
The /var/cache/zypp/packages directory contains all the kept packages from online installations and zypper clean deletes all of these if used. I periodically move these packages to my local repos and delete any out of date ones manualy and also if any of these packages need reinstallation then libzypp detects that they are present in the cache and doesn't download them again.
I have not configured zypper to cache packages but what you write sounds logical.
I would think that the /var/cache/zypper/RPMS directory contents is a bug from somewhere, possibly rpm or generated from a refresh. If you haven't got a /var/cache/zypp/ directory you have a problem,
I have it, so I don't have a problem.
try installing something via zypper or yast and it should appear, it is where libzypp downloads packages to and if the keeppackages option is set to 1 the packages are kept in a directory matching the online repo name in /var/cache/zypp/packages.
Yes, I know. Thank you for verifying and confirming my findings. -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Amedee Van Gasse wrote:
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all. I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know.
Anyway before I file a bug report, I would appreciate it if someone could confirm.
Yes, it's a bug. 'zypper clean' should get rid of the files. To your former question: yes, you can just 'rm' the files without any side effects. - -- cheers, jano Ján Kupec YaST team - ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 - ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz - ---------------------------------------------------------(EOF)--- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkl11c8ACgkQgEhGpmN+6QFGKgCfbOX3DD0sVUuRHPjHZYUA0HQj RloAn2kUc6Gk8WF2kMnNVrP6fVf9Eo/P =TLCp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, January 20, 2009 14:46, Jan Kupec wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Amedee Van Gasse wrote:
Philipp Thomas schreef:
On Sun, 18 Jan 2009 15:18:12 +0100, you wrote:
According to the man page, that will remove *all* rpms, not only those that are out-of-date. And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all. I'd say this calls for a a bug report.
I find it hard to believe that this is a bug. My gut tells me it's just a "simple" configuration issue, but I don't know.
Anyway before I file a bug report, I would appreciate it if someone could confirm.
Yes, it's a bug. 'zypper clean' should get rid of the files.
To your former question: yes, you can just 'rm' the files without any side effects.
Please only reply to the list, I'll read it there. And thank you for your answer. -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Amedee Van Gasse (amedee@amedee.be) [20090118 15:19]:
Rodney Baker schreef:
From the command line, as root, zypper clean will remove all downloaded rpms.
According to our zypper developer its all or nothing with the current version. And it's not clear if there ever will be a way to do so. He has yet to see plausible use cases for a package cache.
And after trying it, I found out that it did *not* remove the rpms of the packages I installed manually. Neither did zypper clean --all.
That might be worth a bug report in bugzilla. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-01-18 at 14:13 +0100, Amedee Van Gasse wrote:
I was playing a bit with kdirstat, and I noticed a directory that takes up a lot of space: /var/cache/zypper/RPMS It seems to contain cached versions of rpms that I manually downloaded&installed, for example VMware server.
I come from Ubuntu, and I still use Debian on my server, so I'm used to a large package cache. But the Suse way to do things is different, and I found out that package caching only happens when you explicitly enable it in /etc/zypp/repos.d/*.repo. Otherwise the packages are always downloaded.
What I have not yet found, is the Suse alternative for "aptitude autoclean" delete only out-of-date package files but keep current ones.
I also would like to delete some of the VMware RPMs, because I have played a bit with different versions, and they are quite large. How can I clean up that cache directory? Can I just rm the unwanted files without any negative repercussions, or what is the official Suse way to do that?
It's a relatively new feature, but I think you can simply delete the rpms manually. I haven't tried, so I don't know. At worst, you'd have to run "zypper clean --all" later. Automatic cleaning... there is a configuration file that mighjt have some options for this, would be worth checking. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEUEARECAAYFAklzTakACgkQtTMYHG2NR9U3HACfQcIP3OjiXnWQRRYf3Xg7AhdO CBoAljpsLv6yDU2SyNe5QwNhMju5kh0= =mnXT -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carlos E. R. wrote:
On Sunday, 2009-01-18 at 14:13 +0100, Amedee Van Gasse wrote:
I was playing a bit with kdirstat, and I noticed a directory that takes up a lot of space: /var/cache/zypper/RPMS It seems to contain cached versions of rpms that I manually downloaded&installed, for example VMware server.
I come from Ubuntu, and I still use Debian on my server, so I'm used to a large package cache. But the Suse way to do things is different, and I found out that package caching only happens when you explicitly enable it in /etc/zypp/repos.d/*.repo. Otherwise the packages are always downloaded.
What I have not yet found, is the Suse alternative for "aptitude autoclean" delete only out-of-date package files but keep current ones.
I also would like to delete some of the VMware RPMs, because I have played a bit with different versions, and they are quite large. How can I clean up that cache directory? Can I just rm the unwanted files without any negative repercussions, or what is the official Suse way to do that?
It's a relatively new feature, but I think you can simply delete the rpms manually.
Yes, you can.
Automatic cleaning... there is a configuration file that mighjt have some options for this, would be worth checking.
AFAIK, we don't have anything like automatic removal of cached packages that are out of date. Yet. - -- cheers, jano Ján Kupec YaST team - ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 - ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz - ---------------------------------------------------------(EOF)--- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkl11l4ACgkQgEhGpmN+6QHZZwCeNpffzq8v4sOvTVXQdjFe/tsn nyEAn2ujY0ALDcW+nRmsX321+lcc64jf =4k2I -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jan Kupec wrote:
Carlos E. R. wrote:
On Sunday, 2009-01-18 at 14:13 +0100, Amedee Van Gasse wrote:
I was playing a bit with kdirstat, and I noticed a directory that takes up a lot of space: /var/cache/zypper/RPMS It seems to contain cached versions of rpms that I manually downloaded&installed, for example VMware server. I come from Ubuntu, and I still use Debian on my server, so I'm used to a large package cache. But the Suse way to do things is different, and I found out that package caching only happens when you explicitly enable it in /etc/zypp/repos.d/*.repo. Otherwise the packages are always downloaded. What I have not yet found, is the Suse alternative for "aptitude autoclean" delete only out-of-date package files but keep current ones. I also would like to delete some of the VMware RPMs, because I have played a bit with different versions, and they are quite large. How can I clean up that cache directory? Can I just rm the unwanted files without any negative repercussions, or what is the official Suse way to do that? It's a relatively new feature, but I think you can simply delete the rpms manually.
Yes, you can.
Automatic cleaning... there is a configuration file that mighjt have some options for this, would be worth checking.
AFAIK, we don't have anything like automatic removal of cached packages that are out of date. Yet.
I think that remove out-of-date cached package is not trivial task as you cache package typical to possibility to reinstall it without download. So if you try upgrade some package, find problems and want downgrade you expect that package is still cached and not removed as out of date. JR -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-01-20 at 16:54 +0100, Josef Reidinger wrote:
Jan Kupec wrote:
Carlos E. R. wrote:
It's a relatively new feature, but I think you can simply delete the rpms manually.
Yes, you can.
Good!
Automatic cleaning... there is a configuration file that mighjt have some options for this, would be worth checking.
AFAIK, we don't have anything like automatic removal of cached packages that are out of date. Yet.
I think that remove out-of-date cached package is not trivial task as you cache package typical to possibility to reinstall it without download. So if you try upgrade some package, find problems and want downgrade you expect that package is still cached and not removed as out of date.
You could set the count, ie, how many versions of ssame package to allow. Another posibility would be to age out those packages with different "major" number. Ie, allow several releases, but not different versions after so many days. This would remove packages from the previous opensuse version, and allow for some time for testing before going back. Another posibility would be a cron job that mails a list of rpm files matching some criteria to root. Or moves those files to a secondary cache, where the admin chan choose. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEUEARECAAYFAkl2YX8ACgkQtTMYHG2NR9VagwCYpKDq4srSvs3izs1bsP9I6e+Q XACfUSel34raLqyygb5+uAw8b/pQ7S0= =iDvz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 20 January 2009 06:42:47 pm Carlos E. R. wrote:
On Tuesday, 2009-01-20 at 16:54 +0100, Josef Reidinger wrote:
Jan Kupec wrote:
Carlos E. R. wrote:
It's a relatively new feature, but I think you can simply delete the rpms manually.
Yes, you can.
Good!
Question: Does Yast have a cache like that? Bob S -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 21 January 2009 06:47:54 am Bob S wrote:
Does Yast have a cache like that?
It is the same cache. Keeping files is based on repository, not package manager. Though, YaST is missing ability to configure that. For now, you can use zypper. I guess this is worth bug report, or feature request. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (13)
-
Amedee Van Gasse
-
Basil Chupin
-
Bob S
-
Carlos E. R.
-
Dave Plater
-
David C. Rankin
-
Fred A. Miller
-
Jan Kupec
-
Josef Reidinger
-
Philipp Thomas
-
Philipp Thomas
-
Rajko M.
-
Rodney Baker