[Slackbuilds-users] Dependency cleanup after package removal

Dave Woodfall dave at slackbuilds.org
Tue Jun 23 03:50:59 UTC 2020


On 22/06/20 21:56,
Dominik Drobek <dominik.drobek at o2.pl> put forth the proposition:
> Hi,
>
> 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?
>
> Regards,
> Dominik

I use the attached shell script that I run every so often.  It uses
the sbopkg repo, so you will need sbopkg installed and updated.

The left column is the name of parent packages, and the right column
is everything missing from REQUIRES in the .info file.

--
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checksbodeps.sh
Type: text/x-shellscript
Size: 787 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200623/f120ebc9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200623/f120ebc9/attachment.asc>


More information about the SlackBuilds-users mailing list