Little script to list packages nothing depends on
I thought you might find this script useful:
apt-cache rdepends `ls /a/l | cut -d_ -f1` | tr '\n' ';' | sed -r \
-e 's/Reverse Depends://g' \
-e 's/;; //g' \
-e 's/;+/\n/g' | \
egrep -v '^ ' | egrep -v ' ' | grep -v '|' | sort | less
Given a set of packagenames, it returns the ones for which 'apt-cache
rdepends' shows no information.
It's almost the same as deborphan -a, but there are a few differences.
(Neither set is a subset of the other).
For instance, deborphan -a outputs gaim, but
apt-cache rdepends gaim
lists 'harden-remoteflaws' as a dependency.
Reply to: