LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
Member
 
Registered: Oct 2008
Posts: 836

Rep: Reputation: 73
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
Member
 
Registered: Apr 2016
Posts: 445

Rep: Reputation: 299Reputation: 299Reputation: 299
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
Member
 
Registered: Oct 2008
Posts: 836

Original Poster
Rep: Reputation: 73
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: Slackware
Posts: 7,274

Rep: Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674
Yes.

Personally, I usually just mount /tmp on tmpfs.
 
Old 04-21-2017, 01:20 PM   #5
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 3,727

Rep: Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819
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}
 
2 members found this post helpful.
Old 04-21-2017, 06:59 PM   #6
montagdude
Member
 
Registered: Apr 2016
Posts: 445

Rep: Reputation: 299Reputation: 299Reputation: 299
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 Yesterday, 12:44 PM   #7
mfoley
Member
 
Registered: Oct 2008
Posts: 836

Original Poster
Rep: Reputation: 73
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 Yesterday, 01:26 PM   #8
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 432

Rep: Reputation: 74
maybe try this script?
 
Old Yesterday, 02:14 PM   #9
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 3,654

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
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 Yesterday, 02:15 PM   #10
mfoley
Member
 
Registered: Oct 2008
Posts: 836

Original Poster
Rep: Reputation: 73
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 Yesterday, 02:34 PM   #11
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 3,727

Rep: Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819
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*
 
  


Reply

Tags
sbopkg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 09:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration