Question on Sbo and CPAN post-installation cleanup
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Question on Sbo and CPAN post-installation cleanup
I've installed a bunch of perl modules via CPAN, and SBo packages for things like LibreOffice and SpamAssassin. I therefore have lots of downloaded source files in my SBo build directory, package tgz files in /tmp, more SBo build working files in /tmp/SBo, and files in ~/.cpan/build and ~/.cpan/sources. These all take quite a bit of space and I'm wondering if I need to keep all this stuff or if I can delete most or all of it.
For SlackBuild packages, you can safely delete everything in /tmp/SBo/ and you can remove any packages generated from SBo that reside in /tmp/. That's why they're in /tmp/. Ideally, nothing should reside in /tmp/ that can cause system problems if removed (on a reboot... some programs rely on /tmp/ files while they run like pulseaudio). Once the packages are generated, you don't need the files in /tmp/SBo/ anymore, and once those packages are installed to your system, you don't need the packages anymore (unless you want to install them for another system or save them if you ever intend to wipe 14.2 and reinstall the same version).
As for cpan stuff, I imagine it is the same, but I am not knowledgeable enough to say for certain.
I'll investigate how that works, but the immediate problem I see with that is dependencies. For example, spamassassin with SBo has well over a dozen sub-dependencies nested to 3 or more levels. Since yer basic SlackBuild doesn't recursively retrieve and build dependencies, that ends up being a lot of work -- I know firsthand. I have heard about tools such as sbopkg and sboinstall which are reputed to deal with dependencies, but I haven't experimented with any of those. By contrast, installing spamassassin using CPAN is as simple as `cpan -i Mail::SpamAssassin`. Yes, there are 3 dependencies that is misses for some reason, but it is a matter of seconds to cpan those.
So, while I appreciate your suggestion and will do more spare-time investigating of that and the tools I mentioned, I'm still asking about CPAN cleanup to anyone who might know. For one thing, spamassassin and other perl modules are already installed using CPAN and I'm not about to uninstall and start over.
While on the subject of clean-up. I have a root/.ccache/ directory that is 2.1G. My research indicates this is only for caching C program workfiles. Mine is not a C development machine and these files got there only because I've installed packages which I'm unlikely to need to re-do on any frequent basis. Am I safe to remove these?
In $HOME/.cache/mozilla I have 8049 files, though only occupying 117M. Do these go away after some period of time? I don't see any settings in Firefox for cache retention.
You have failed to include all the work you had to do to fix those segfaults -- and indeed the work other people had to do on your behalf -- as a cost of the way you are using CPAN. If you're not prepared to look at a better way of working, you can't really expect other people to subsidise your current way of working in the future.
I'll investigate how that works, but the immediate problem I see with that is dependencies. For example, spamassassin with SBo has well over a dozen sub-dependencies nested to 3 or more levels. Since yer basic SlackBuild doesn't recursively retrieve and build dependencies, that ends up being a lot of work -- I know firsthand. I have heard about tools such as sbopkg and sboinstall which are reputed to deal with dependencies, but I haven't experimented with any of those. By contrast, installing spamassassin using CPAN is as simple as `cpan -i Mail::SpamAssassin`. Yes, there are 3 dependencies that is misses for some reason, but it is a matter of seconds to cpan those.
From cpan2tgz FAQ:
Quote:
3. How do I build prerequisite modules automatically?
Use the --recursive along with the --install command line options. This will
install the generated packages in order to satisfy dependencies as packages
are built.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.