RPM Soft dependencies (Was: Re: Agenda for the 2009-05-26 Packaging Committee meeting)

Mathieu Bridon (bochecha) bochecha at fedoraproject.org
Sun May 31 12:32:57 UTC 2009


>> Then you use « package-cleanup --leaves ».
>>
>> This will list the packages that were dragged in as dependencies but
>> on which nothing depend anymore.
>
> s/that were dragged in as dependencies but//.  I don't think package-cleanup
> currently has any idea/cares why something was installed.

No, my sentence was confusing.

« package-cleanup --leaves » will tell you what installed packages are
no longer required by any other on your system.

Of course, it can't know why you installed them or even if something
outside of its scope (e.g. a program you compiled manually) still
needs one of those.

I shouldn't have spoken about the intent of the user, you're right. :)

To be more correct, « --leaves » will list packages on which no others
depend AND that match the defined « leaf_regex ». A quick look at the
source seems to indicate that returned packages will be mostly
libraries, as the default leaf_regex appears to be
"(^(compat-)?lib.+|.*libs?[\d-]*$)".


----------

Mathieu Bridon (bochecha)




More information about the fedora-devel-list mailing list