LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-21-2017, 09:33 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Can /tmp/SBo directory be removed?


I thought I asked this before, but I can't find the thread ... I'm using sbopkg to install SlackBuilds repo packages. `sbopkg -i` creates files in /tmp/SBo for each package. Do these directories need to be kept for any reason? Do future installs of the same package need the previous info in this directory?
 
Old 04-21-2017, 09:46 AM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by mfoley View Post
I thought I asked this before, but I can't find the thread ... I'm using sbopkg to install SlackBuilds repo packages. `sbopkg -i` creates files in /tmp/SBo for each package. Do these directories need to be kept for any reason? Do future installs of the same package need the previous info in this directory?
You can delete it, but the next time you run a SlackBuild script from SBo, it will be created again. It's better to keep the directory and just clean out the contents if you don't need them anymore.
 
Old 04-21-2017, 11:15 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Well, I am referring to the contents of /tmp/SBo, not just that directory itself. So, it is OK to remove e.g. /tmp/SBo/openjdk and that will cause no issue with e.g. `sbopkg -c`, right?
 
Old 04-21-2017, 11:34 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Yes.

Personally, I usually just mount /tmp on tmpfs.
 
Old 04-21-2017, 01:20 PM   #5
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
You can also change /etc/sbopkg/sbopkg.conf to automatically delete the extracted source and package creation directories after sbopkg finishes.

Change

Code:
CLEANUP=${CLEANUP:-NO}
to

Code:
CLEANUP=${CLEANUP:-YES}
 
3 members found this post helpful.
Old 04-21-2017, 06:59 PM   #6
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by mfoley View Post
Well, I am referring to the contents of /tmp/SBo, not just that directory itself. So, it is OK to remove e.g. /tmp/SBo/openjdk and that will cause no issue with e.g. `sbopkg -c`, right?
You're right. From your title, it sounded like you meant the /tmp/SBo directory itself, and I didn't read the actual post carefully enough. Yes, it's okay to delete the contents of /tmp/SBo, or, as bassmadrigal pointed out, you can have sbopkg do it automatically if you set CLEANUP=YES in sbopkg.conf.
 
Old 04-22-2017, 12:44 PM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Thanks, I'll certainly clean up what's out there. Thereafter, doing the CLEANUP=YES config settings seems like the way to go.

A semi-related question I hate to do a new post for ...

the sbopkg man page for option '-c' says , "Display a list of installed SBo packages and potential updates." However, I find that this option only displays potential updates. Packages I know I recently updated are not shown in this list. How do I show a list of all my installed packages?
 
Old 04-22-2017, 01:26 PM   #8
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
maybe try this script?
 
Old 04-22-2017, 02:14 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
yeah I've even did this
Code:
rm -r /tmp/*
clean it out then reboot cuz somethings got a be in there during a session that I got rid of.
or
Code:
rm -r /tmp/SBo
 
Old 04-22-2017, 02:15 PM   #10
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Well, I suppose that script will work if there is no official sbopkg option. Simpler then, is:

ls -ltr /var/log/packages | grep SBo
 
Old 04-22-2017, 02:34 PM   #11
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
Quote:
Originally Posted by mfoley View Post
Well, I suppose that script will work if there is no official sbopkg option. Simpler then, is:

ls -ltr /var/log/packages | grep SBo
You can shorten it a bit and remove the grep by using wildcards.

Code:
ls -ltr /var/log/packages/*SBo*
 
Old 04-24-2017, 05:23 PM   #12
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Back again. What about /var/cache/sbopkg? Can that be cleaned out as well? It currently contains .zip, .gz, .bz2 and .xz files from old builds.

I did set CLEANUP=${CLEANUP:-YES} in /etc/sbopkg/sbopkg.conf and that does clean up the files in that folder.
 
Old 04-24-2017, 05:36 PM   #13
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
That is where the source is downloaded to before it is extracted. Its contents can be removed, but there doesn't seem to be any option to automatically remove it after sbopkg finishes running.
 
1 members found this post helpful.
Old 06-02-2020, 03:55 PM   #14
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297
Blog Entries: 2

Rep: Reputation: 37
I hate to revive an old post, but I actually have a question about the removal of /tmp/SBo.

I've been using sbopkg with the -k option, which checks and skips installed packages. But when I removed /tmp/SBo, dependent packages that were already installed (in this case, numpy which is needed by Bottleneck) are apparently being reinstalled.

So it's not the case that files in /tmp/SBo are *never* needed again, but that they aren't needed at runtime. They might be used for building other packages, right?
 
Old 06-02-2020, 06:04 PM   #15
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
Quote:
Originally Posted by thethinker View Post
I hate to revive an old post, but I actually have a question about the removal of /tmp/SBo.

I've been using sbopkg with the -k option, which checks and skips installed packages. But when I removed /tmp/SBo, dependent packages that were already installed (in this case, numpy which is needed by Bottleneck) are apparently being reinstalled.

So it's not the case that files in /tmp/SBo are *never* needed again, but that they aren't needed at runtime. They might be used for building other packages, right?
These files should never be used again. The resulting packages are saved in just /tmp/, but, AFAIK, those shouldn't be used by sbopkg again either.

AFAIK, sbopkg does not reinstall packages that were previously built. If ran with the -k option, sbopkg will skip anything that's currently installed, but if it isn't installed, I don't think it'll check for a built package in /tmp/ and I know it doesn't check for anything in /tmp/SBo, because I have it happen frequently when I'm rebuilding things and it will just proceed like normal and delete the source and packaging directories if they exist.

I've not dug into sbopkg enough to know for sure, but I believe I am accurate.

That being said, sbopkg won't check for any packages that don't have the SBo tag in the package name. So if you happened to install a numpy from a different repo, sbopkg would try and build it again if it was in the queue.

Last edited by bassmadrigal; 06-02-2020 at 06:07 PM.
 
1 members found this post helpful.
  


Reply

Tags
sbopkg



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
[SOLVED] SBo `git clone` source directory for 14.2 ? kjhambrick Slackware 3 07-04-2016 02:19 PM
ffmpeg.SlackBuild: line 194: cd: /tmp/SBo/package-ffmpeg/usr/man: No such file or dir darkstarbyte Linux - Software 7 12-29-2010 05:45 PM
[SOLVED] can /tmp/SBo content safely be deleted Isix Linux - Newbie 18 12-25-2010 08:02 AM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM

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

All times are GMT -5. The time now is 07:03 PM.

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