[Slackbuilds-users] Dependency cleanup after package removal

Didier Spaier didier at slint.fr
Mon Jun 22 20:23:29 UTC 2020


Hi,

Le 22/06/2020 à 21:56, Dominik Drobek a écrit :
> I was wondering how do people manage dependency cleanup when uninstalling SBo packages?
> 
> Suppose the user first installs package A what depends on packages X, Y and Z (all from SBo). Later the user installs package B that depends on Y, and finally installs C that depends on X.
> 
> When A is removed, then Z is clearly not needed anymore. This is easy to figure out in this simple example, but when ~200 SBo packages are installed in the system it's not straightforward.
> 
> Is there any tool for automatic detection of such "orphaned" dependencies that can be safely removed?

Yes:
http://slackbuilds.org/advsearch.php

do a full reverse dependency search for the packages you may not need anymore.

You can also use the queue files written by sqg.

Of course this assumes that all additional packages are build using SBo.

Have a good day,

Didier


More information about the SlackBuilds-users mailing list