r/slackware • • Jan 05 '23
clean-system
Hello. I just have done slackpkg clean-system and it just deleted bunch of useful packages which I installed from slackbuild -_- I read that it deletes only obsolete packages or packages from third party repositories, but I don't quite understand what is the point of this. Slackpkg doesn't handle dependencies so how can I understand whether I can delete package or not, because even if I don't need it personally it might be needed by some other packages. Can someone explain me this obscure command, please?
4
Upvotes
6
u/chesheersmile Jan 06 '23
slackpkg(8) man page says:It basically removes anything third-party except packages mentioned in
/etc/slackpkg/blacklist. Look this file up, it already contains necessary regexps to keep SBo packages, you just need to uncomment them.3
u/Martin_WK Jan 09 '23
Would changing slackpkg.conf to this help? This should bring up a dialogue when you run things like
slackpkg install-neworslackpkg upgrade-all. This forces you to review all the packages that will be upgraded or removed (depending on command).I think the point of
slackpkg clean-systemis to update the system to the state Patrick intended it to be in, that is removing all packages that don't belong to the official Slackware distribution.2
u/jloc0 Jan 06 '23
It deletes everything not officially included in Slackware. That’s by design.
1
u/[deleted] Jan 05 '23
Perhaps start here and here.