[SOLVED] What to do with /tmp after all Slackbuilds are built and functioning?
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.
What to do with /tmp after all Slackbuilds are built and functioning?
Is it customary to delete /tmp files as described here after desired Slackbuilds are installed? Or should I just leave /tmp alone? Will clearing /tmp affect sbopkg functionality?
I am accustomed to Debian clearing /tmp automagically each reboot. Temp directory is taking up quite a bit of space on my root partition.
I do things manually rather than use 'sbopkg' as I generally want to meddle with the slackbuild in one way or another before running it. I keep both the build directory (in case I ever need to rebuild) and the resultant packages (in case I need to reinstall). Anything left over in /tmp after a build gets cleared out.
Not at all. If you rm -r /tmp/SBo it will be recreated next time you use sbopkg. Or just empty it.
Good to know.
Quote:
PS I am impressed how fast you got acquainted with Slackware
Thanks! I have been using Slackware either in a virtual machine or as a hard drive installation for ~3 weeks. The documentation on docs.slackware.com is excellent. The tutorial style format is very helpful in explaining the Slackware way. Once you understand the Slackware philosophy, things just click. I've even started building my own Slackbuilds and storing them on my github account.
I do things manually rather than use 'sbopkg' as I generally want to meddle with the slackbuild in one way or another before running it. I keep both the build directory (in case I ever need to rebuild) and the resultant packages (in case I need to reinstall). Anything left over in /tmp after a build gets cleared out.
(..snip..)
Your approach to this sort of thing will evolve over time as you find what works best for you. This is just what works for me.
I was doing something similar to this before I learned of the instant gratification of sbopkg.
According to the sbopkg.conf man page, it's possible to switch where sbopkg stores it's /tmp and build directories. I will have to mess with that and see if it satisfies my needs.
Though I might start building all my slackbuilds manually again and write a ruby script that queries/scrapes slackbuilds.org and downloads the appropriate files for each Slackbuild. The main thing I like about sbopkg is how it locates each slackbuild and uses the queue files to grab the dependencies too.
According to the sbopkg.conf man page, it's possible to switch where sbopkg stores it's /tmp and build directories. I will have to mess with that and see if it satisfies my needs..
to erase build files at the end of the build queue everytime I launch sbopkg here I have this variable set in /etc/sbopkg/sbopkg.conf
Additionally, if you have the RAM to spare, you can mount your SBo directory as a RAMdisk, and then it will clear every time you reboot/shutdown. Quoting from slackalaxy's website:
Code:
I like to speed up the compiling process by compiling in RAM. Almost all additional software that I use is installed from SlackBuilds.org. Scripts from there use /tmp/SBo for compiling, as can be seen from the templates files.
So, I made sure that /tmp/SBo exists and is empty. Then, I just added the following row in my /etc/fstab file:
11
12
13
14
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
SBo /tmp/SBo tmpfs nodev,nosuid,size=7G 0 0
Reboot. I have 8GB of RAM, so I set 7GB for the size.
I got the idea from the time I used CRUX and reading their wiki. Another way is to just mount the whole /tmp folder in RAM.
The first thing I do when installing Slackware is put the following in fstab:
Code:
tmpfs /tmp tmpfs defaults 0 0
Does that just expand in size as needed? What if you start getting low on memory? If you remove stuff in /tmp, does it give that space back to the system for memory use?
I ask because I've been wanting to do this for a while, but I'm constantly using a good chunk of my 8GB (stupid Chrome), which is the the max of my motherboard, and I'm worried I'd run out of space on either /tmp or my RAM considering I usually have uptimes of at least several months. Once I build a new computer with more RAM, I'll definitely be doing this.
Though I might start building all my slackbuilds manually again and write a ruby script that queries/scrapes slackbuilds.org and downloads the appropriate files for each Slackbuild. The main thing I like about sbopkg is how it locates each slackbuild and uses the queue files to grab the dependencies too.
No need to scrape the website, since 13.1 there is a file called SLACKBUILDS.TXT that you can use to get information about a package; since some time it also carries the REQUIRES information. Then it's easy to download the SlackBuilds tarball if you got the subdirectory and name of the SlackBuilds (like audio/mpd -> .../audio/mpd.tar.gz). (Personally, I started with a small script that would just download the SlackBuilds tarball with its dependencies and all required sources, but it evolved into something a little bit bigger now.)
Does that just expand in size as needed? What if you start getting low on memory? If you remove stuff in /tmp, does it give that space back to the system for memory use?
I don't know the answers to any of these, but I do it on a machine with a 32-bit installation and 4GB of RAM and I've never had problems.
It's a laptop that gets turned on and off as needed though.
Does that just expand in size as needed? What if you start getting low on memory? If you remove stuff in /tmp, does it give that space back to the system for memory use?
I ask because I've been wanting to do this for a while, but I'm constantly using a good chunk of my 8GB (stupid Chrome), which is the the max of my motherboard, and I'm worried I'd run out of space on either /tmp or my RAM considering I usually have uptimes of at least several months. Once I build a new computer with more RAM, I'll definitely be doing this.
i am flattered you are quoting my humble blog, but please remove the line numbers, because they got messed when you pasted the text. Here's the post if someone is interested:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.