Mailinglist Archive: zypp-devel (62 mails)

< Previous Next >
Re: [zypp-devel] Automatic removal of orphan depencencies
  • From: "Paolo Tuninetto" <paolo.tuninetto@xxxxxxxxx>
  • Date: Tue, 16 Dec 2008 14:34:16 +0100
  • Message-id: <19c446800812160534g34c9b7d2g617ee058f0d6a822@xxxxxxxxxxxxxx>
Debian's autoremove is pretty good (I never had problems with it) but IMHO
the best way would be the method used by gentoo package management.
In gentoo, every application is configured as a list of packages (i.e. main
package and list of depencencies [packages but also applications]) and is
identified by a name.

They use two configuration files:
- system: containing the list of applications composing the base system
(this
file is read only)
- world: containing the list of user installed application.

when user installs an application the name of the application is written in
the
world file and all application dependencies are installed.
When user removes an application the system removes the main package and all
application depencencies (that are not listed as depencencies of other
installed applications).

Using those two list the gentoo package management tool (emerge) is able to
calculate all packages that should be present in the system, and so can do
any kind of maintenance on it).

I like their idea because is simple. All the complexity goes into the
metadata
configuration (that has to be very precise).

2008/12/16, Michael Schroeder <mls@xxxxxxx>:
On Tue, Dec 16, 2008 at 01:16:19PM +0100, Cristian Morales Vega wrote:
2008/12/16 Peter Poeml <poeml@xxxxxxx>:
On Tue, Dec 16, 2008 at 06:33:14AM +0300, sda wrote:
hope you like the idea :)

It seems that this is an idea that users dream of. ;)

Quite some time ago (I'd say this year though), the same was discussed
on the yum devel list. Could be interesting to read there. From
superficial memory, it seemed not easy to solve.

There is one from 2005:
http://lists.baseurl.org/pipermail/yum/2005-April/017400.html
But from this year I only found
http://lists.baseurl.org/pipermail/yum/2008-March/021757.html

The rollback isn't exactly the same that apt-get's autoremove, but
neverless it's something interesting. What happened with rpm
--rollback function? http://www.linuxjournal.com/article/7034

AFAIK rollback code was removed from rpm-4.6 because it was not
mature enough and nobody used it. rpm-5 still has it, though.

(openSUSE 11.1 comes with rpm-4.4.3.2, so it still supports
rollbacks)

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx


--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >