[pacman-dev] issues with cleaning a shared pacman cache with new -Sc behaviour
Hi! I've found an issue that appeared after the change in -Sc behaviour. It now removes "uninstalled" packages from cache which is good for majority of users, but is bad for shared pacman cache users. With a pacman cache shared between machines it is impossible to correctly clean it with pacman if a set of installed packages on them is different. I remember there was at least one script posted here or on forums that removes old version of packages from a specified directory (it was provided as a helpful tool for managing local repositories AFAIR), but I cannot find it. Could someone who have this (or similar) script please share it? It needs to be posted to our wiki page about a shared cache, and maybe Phil's rucksack script needs to be modified as well. -- Roman Kyrylych (Роман Кирилич)
On Sat 2008-01-19 09:43 , Roman Kyrylych wrote:
Hi!
I've found an issue that appeared after the change in -Sc behaviour. It now removes "uninstalled" packages from cache which is good for majority of users, but is bad for shared pacman cache users. With a pacman cache shared between machines it is impossible to correctly clean it with pacman if a set of installed packages on them is different. I remember there was at least one script posted here or on forums that removes old version of packages from a specified directory (it was provided as a helpful tool for managing local repositories AFAIR), but I cannot find it. Could someone who have this (or similar) script please share it? It needs to be posted to our wiki page about a shared cache, and maybe Phil's rucksack script needs to be modified as well.
This one http://archlinux.org/pipermail/pacman-dev/2007-March/007767.html maybe? -- Alessio Bolognino Please send personal email to themolok@gmail.com Public Key http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xFE0270FB GPG Key ID = 1024D / FE0270FB 2007-04-11 Key Fingerprint = 9AF8 9011 F271 450D 59CF 2D7D 96C9 8F2A FE02 70FB
2008/1/19, Alessio Bolognino <themolok.ml@gmail.com>:
On Sat 2008-01-19 09:43 , Roman Kyrylych wrote:
Hi!
I've found an issue that appeared after the change in -Sc behaviour. It now removes "uninstalled" packages from cache which is good for majority of users, but is bad for shared pacman cache users. With a pacman cache shared between machines it is impossible to correctly clean it with pacman if a set of installed packages on them is different. I remember there was at least one script posted here or on forums that removes old version of packages from a specified directory (it was provided as a helpful tool for managing local repositories AFAIR), but I cannot find it. Could someone who have this (or similar) script please share it? It needs to be posted to our wiki page about a shared cache, and maybe Phil's rucksack script needs to be modified as well.
This one http://archlinux.org/pipermail/pacman-dev/2007-March/007767.html maybe?
2008/1/19, fancris3 <fancris3@aol.com>:
Thank you guys! :-) Will try both today. -- Roman Kyrylych (Роман Кирилич)
On Jan 19, 2008 6:49 AM, Roman Kyrylych <roman.kyrylych@gmail.com> wrote:
2008/1/19, Alessio Bolognino <themolok.ml@gmail.com>:
On Sat 2008-01-19 09:43 , Roman Kyrylych wrote:
Hi!
I've found an issue that appeared after the change in -Sc behaviour. It now removes "uninstalled" packages from cache which is good for majority of users, but is bad for shared pacman cache users. With a pacman cache shared between machines it is impossible to correctly clean it with pacman if a set of installed packages on them is different. I remember there was at least one script posted here or on forums that removes old version of packages from a specified directory (it was provided as a helpful tool for managing local repositories AFAIR), but I cannot find it. Could someone who have this (or similar) script please share it? It needs to be posted to our wiki page about a shared cache, and maybe Phil's rucksack script needs to be modified as well.
This one http://archlinux.org/pipermail/pacman-dev/2007-March/007767.html maybe?
2008/1/19, fancris3 <fancris3@aol.com>:
I grabbed this one some time a while back, it is probably the same as one of the above. I can't remember if I made any modifications of my own to it. -Dan
On Sat, 19 Jan 2008 07:43:29 -0000, Roman Kyrylych <roman.kyrylych@gmail.com> wrote:
Hi!
I've found an issue that appeared after the change in -Sc behaviour. It now removes "uninstalled" packages from cache which is good for majority of users, but is bad for shared pacman cache users. With a pacman cache shared between machines it is impossible to correctly clean it with pacman if a set of installed packages on them is different. I remember there was at least one script posted here or on forums that removes old version of packages from a specified directory (it was provided as a helpful tool for managing local repositories AFAIR), but I cannot find it. Could someone who have this (or similar) script please share it? It needs to be posted to our wiki page about a shared cache, and maybe Phil's rucksack script needs to be modified as well.
fancris3 wrote:
On Sat, 19 Jan 2008 07:43:29 -0000, Roman Kyrylych <roman.kyrylych@gmail.com> wrote:
Hi!
I've found an issue that appeared after the change in -Sc behaviour. It now removes "uninstalled" packages from cache which is good for majority of users, but is bad for shared pacman cache users. With a pacman cache shared between machines it is impossible to correctly clean it with pacman if a set of installed packages on them is different. I remember there was at least one script posted here or on forums that removes old version of packages from a specified directory (it was provided as a helpful tool for managing local repositories AFAIR), but I cannot find it. Could someone who have this (or similar) script please share it? It needs to be posted to our wiki page about a shared cache, and maybe Phil's rucksack script needs to be modified as well.
Ahah, that's funny. When pacman removed the old versions from the cache, people wanted to remove the no longer installed versions. And now that pacman removes the no longer installed versions, people want to remove the old versions from the cache. But there is indeed a problem here. For a not shared cache, the new behavior makes more sense. But for a shared cache, the old behavior was better. So in that thread, all the first scripts should emulate the new 3.1 behavior (and so should be unneeded now), but maybe the last script there from Spider emulates the old 3.0 behavior? In any cases, it doesn't seem possible to satisfy everyone. So it might be better to use external scripts for that indeed..
On Jan 19, 2008 5:12 AM, Xavier <shiningxc@gmail.com> wrote:
In any cases, it doesn't seem possible to satisfy everyone. So it might be better to use external scripts for that indeed..
I agree. This is a clear cut "A vs B" situation. Considering external setup is already required for a shared cache, it shouldn't be that big of a deal to require special considerations when cleaning the cache.
participants (6)
-
Aaron Griffin
-
Alessio Bolognino
-
Dan McGee
-
fancris3
-
Roman Kyrylych
-
Xavier