LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-18-2017, 12:11 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
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.

Thoughts?
 
Old 01-18-2017, 03:47 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 01-18-2017, 10:19 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
OK, will wipe SBo temp stuff!

Does anyone have advice on CPAN?
 
Old 01-19-2017, 05:46 AM   #4
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
You should consider using cpan2tgz so you can manage perl modules as slackware packages, using standard slackware tools and packages managers.
 
Old 01-20-2017, 12:44 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
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.
 
Old 01-20-2017, 04:46 AM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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.
 
Old 01-27-2017, 11:27 AM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by mfoley View Post
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.
 
  


Reply

Tags
cleanup, cpan, slackbuilds



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SBo scripts not building on current (read 1st post, pls) ponce Slackware 5913 04-21-2024 03:30 PM
[SOLVED] Ubuntu Minimal Post-Installation Question supusr Ubuntu 2 01-09-2016 03:52 PM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM
Post-installation question Belize Red Hat 5 10-05-2003 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration