binstats log determines a lot of libs as unused. Example of just two libs
unused:
/usr/lib/liblsp-r3d-glx-lib-1.0.16.so (lsp-plugins-r3d-glx)
/usr/lib/x86_64-linux-gnu/liba52-0.7.4.so (liba52-0.7.4)
How to determine if the lib is not really needed and can be safely removed.
To check if a package might cause problems if removed, use the
apt-cache rdepends
command (to check for reverse dependencies).An example with
libzstd1
: (tail -n +3
removes the headers, andsort -u
shows only unique lines)This means that both
dpkg
andsystemd
depends on this package, so probably not a good idea to remove.You could do the same for your packages:
And you'll get a list of packages that depend on the given package. That will tell you if it's a good idea to remove it or not.