Open piterpunk opened 1 year ago
On an more than 18 years old system:
opty@zeryk:~$ du -skx /var/lib/pkgtools/removed_scripts/ /var/lib/pkgtools/removed_packages/
24732 /var/lib/pkgtools/removed_scripts/
97800 /var/lib/pkgtools/removed_packages/
Please keep this disabled by default like now forever and add confirmation for sure.
Edit: Doubt about the second part here instead of PR so I'm better duplicating there.
Please keep this disabled by default like now forever and add confirmation for sure.
Edit: Doubt about the second part here instead of PR so I'm better duplicating there.
Answered at PR
Five weeks ago I was also thinking about whether slackpkg should even do this as it (slackpkg) doesn't manage packages directly but using pkgtools.
On the other hand it might never see the production so whatever.
When a package is upgraded, its old installation scripts and list of files are kept under
/var/lib/pkgtools
. After a while, a long running system can have a lot of stale files under these directories. As you can see with the following output:Slackpkg is the tool that is usually used to upgrades Slackware systems, so it seems to be the best place to implement some routine to do a janitorial job of these directories.