Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
11-17-2013, 12:46 AM
|
#16
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
Hello. Bleachbit or like apps to clean up space but only use the run as root option and all other options carefully after backups. Can also tell for example your browser settings to delete cookies on exit plus a good suggestion by John VV one of the Gurus was to link any stuff to automatically dump in /dev/null also carefully. I did not read all thoroughly so sorry if redundancies...
Edit\add: after posting realized should have read better so sorry dchmelik, all and Thanks John plus agreed storage is cheep.
Last edited by jamison20000e; 11-17-2013 at 02:49 PM.
|
|
1 members found this post helpful.
|
11-17-2013, 02:47 PM
|
#17
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Moved: This thread is more suitable in <SLACKWARE> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
1 members found this post helpful.
|
11-17-2013, 06:47 PM
|
#18
|
Member
Registered: Sep 2011
Posts: 925
|
Quote:
Originally Posted by cuphandle23
I've only got a small hard drive and I need to delete some things so I can get more on. What can I delete?
|
Use slackpkg to remove package series, if you need space in /usr
From Slackware-Howto:
Code:
A The base Slackware system. (405 MB)
AP Linux applications. (445 MB)
D Program development tools. (1.1 GB)
E GNU Emacs. (117 MB)
F FAQs and HOWTOs for common tasks. (33 MB)
K Linux 3.10.17 kernel source. (582 MB)
KDE The KDE desktop environment and applications. (1.4 GB)
KDEI Language support for KDE. (1 GB)
L System libraries. (1.3 GB)
N Networking applications and utilities. (340 MB)
T TeX typesetting language. (291 MB)
TCL Tcl/Tk/TclX scripting languages and tools. (19 MB)
X X Window System graphical user interface. (389 MB)
XAP Applications for the X Window System. (571 MB)
XFCE The XFCE desktop environment and applications. (72 MB)
Y Classic text-based BSD games. (6 MB)
Removing KDE and KDEI will save 2.4 GB. If you don't want to compile programs, D is another candidate for 1.1 GB. Removing the kernel source (K) can add another half GB to that. Most people also don't need the E/T series, which account for almost another half GB.
So you can free up more than 4 GB by executing
Code:
slackpkg remove d e k kde kdei t
while still having a rather usable system. Xfce makes a good desktop environment too and it's quite lean.
If you miss something, you kann reinstall series as easily. For example if you want to have your compilers back, use You may have to adjust /etc/slackpkg/mirrors to point to your Slackware DVD.
|
|
4 members found this post helpful.
|
11-17-2013, 08:24 PM
|
#19
|
Member
Registered: May 2007
Distribution: Slackware
Posts: 288
Rep:
|
If you've compiled a new kernel then running 'make clean' in /usr/src/linux should free up nearly a gigabyte. After you're system is setup (video and all the hardware is working), you can remove the kernel-source package to free up approx. 440MB.
You can also remove the linux-faqs and linux-howtos packages (~31MB).
If you don't use Emacs, removing the emacs package should free up another 110MB.
Removing the gforth, gcc-gfortran, gcc-gnat, gcc-go, and gcc-objc packages should free up another 200MB or so (as long as you are not programming in those languages).
You probably don't need both Seamonkey and Firefox, choose one. If you choose Seamonkey then you probably don't need Thunderbird (similarly for PDF viewers, word processors, and text editors).
Use the following command to see how much disk space each of your packages take, and focus mainly on the ones that are 10MB or more.
Code:
grep -e "UNCOMPRESSED PACKAGE SIZE" /var/log/packages/*|grep -e 'M$'
|
|
2 members found this post helpful.
|
11-18-2013, 02:00 AM
|
#20
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
This is largely a repost of something I have written before.
First and foremost, consider adding disk space as it is pretty cheap these days and will reduce the issue going forward.
However if you must remove stuff, this command will list all packages over 1M in size from smallest to biggest:
Code:
grep -x 'U.*M' /var/log/packages/* | sed -r 's|.+/(.+):.+: +(.+)|\2\t\1|' | sort -n
Consider the biggest packages first and if or how you use them. This will give you the biggest bang for your buck when cutting the install size down. Some potential candidates for removal include (these sizes are based on a 32-Bit 13.37 install, if you have a newer and/or 64-Bit Slackware version they are likely to be bigger still):
- All of the KDE series for a 900Mb saving
- kernel-source package 415Mb (installed size). Whilst you will need this package if you want to compile a custom kernel or if you need to compile special kernel modules (like the VitualBox Guest additions), it can be a nice saving if you don't need it. Even if you do need it you can still consider removing after you are finished with it, as it is the type of package you are most likely to want only at the beginning, when first setting up your system.
- All of the t/ series for a 250Mb saving
- Qt another 129Mb (worth it if you aren't using KDE or other Qt based apps)
- Samba for a 125Mb saving
- Emacs 90Mb or Vim 26Mb (or both!)
- If you are running 32-Bit remove either kernel-modules (most likely) or kernel-modules-smp as you won't use need both. The are just over 70Mb each.
- Seamonkey 66Mb or Firefox 32Mb (or both and install Opera at 34Mb, which could also replace the 30Mb Thunderbird)
- Gimp 54Mb
More generally reconsider each of packages that make up the xap/ series (just look in the slackware/xap/ directory on a mirror to get a list). These packages are often large and generally don't interdepend on each other. Removing a bunch of stuff here will also clear up your application menus in KDE or Xfce, which is a nice added bonus.
For tips on how to keep your /tmp from getting too big read (it often balloons out of control) this SlackDocs article.
Another potential idea if you want even more space would be to kill some (or if you want to be extreme, all) the contents of the /usr/doc. Most of this stuff is is purely extra information and not needed by the applications themselves. In my experience, it is very rare that removing these files causes a problem. Indeed some distros (e.g. Crux) don't install any doc files at all by default. If you really need to know more about a package you can always run a quick search online anyway or reinstall that one package to get its doc files back.
Last edited by ruario; 11-18-2013 at 02:25 AM.
Reason: Added a comment on xap/; adding link to my old post
|
|
2 members found this post helpful.
|
11-18-2013, 10:32 AM
|
#21
|
LQ Newbie
Registered: May 2009
Distribution: Slackware, Mythbuntu
Posts: 24
Rep:
|
By default a typical ext2/3/4 drive will have 5% of every partition set aside as 'reserved blocks'. The tune2fs command will let you change that number. On my box I have separate root and home partitions so:
tune2fs -m 2 /dev/sda1
tune2fs -r 0 /dev/sda3
This reduced my root partition down to 2% of reserved blocks and my home partition having 0 reserved blocks. If, for example, your /home is 100 GB, this frees up 5 GB of disk space.
|
|
1 members found this post helpful.
|
11-18-2013, 11:47 AM
|
#22
|
Member
Registered: Jan 2003
Location: Mesa, AZ
Distribution: Linux Mint
Posts: 155
Rep:
|
Move /opt and /usr/local to /home partition
Are you using only one partition? If not, I suggest 20 Gb for /, and the rest for /home and swap. 20 Gb is plenty for Slackware, even with KDE installed and lots of log files.
Then, if you have software in /opt (LibreOffice and Google Chrome, for example, go there by default) and /usr/local (stuff you compile), set up /home/opt and /home/local directories and symlink those to /opt and /usr/local, respectively. That also protects them if you upgrade or change distros.
|
|
|
11-18-2013, 02:24 PM
|
#23
|
Member
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 498
Rep:
|
Keep an eye on /tmp too, that can fill up unnoticed.
|
|
|
02-04-2014, 10:18 PM
|
#24
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
|
|
|
02-05-2014, 06:36 AM
|
#25
|
Member
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473
Rep:
|
Quote:
Originally Posted by jamison20000e
|
Leave it blank
|
|
|
02-05-2014, 06:39 AM
|
#26
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
Quote:
Originally Posted by jamison20000e
|
You appear to have hijacked this totally unrelated thread so I am in two minds about answering you. Nonetheless, I guess I will: "chattr +i file".
|
|
1 members found this post helpful.
|
02-05-2014, 11:55 AM
|
#27
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
Hi peeps. I remembered the /dev/null lesson I got close to the command in this thread but can't find the original post where one of the Gurus dumped constantly a folders content (probably a different thread) to /dev/null... just found that link I was thinking about in my old post above.
Last edited by jamison20000e; 02-05-2014 at 10:20 PM.
|
|
|
02-05-2014, 04:09 PM
|
#28
|
Member
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 498
Rep:
|
If you do keep Emacs make sure you also hang on to imagemagick in /xap as a requirement, the Emacs package group doesn't include it.
|
|
|
02-05-2014, 06:30 PM
|
#29
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176
Rep:
|
If you want really thorough look at disk usage, I strongly recommend ncdu (NCurses Disk Usage). I used it to locate and remove most space consuming packages in many similar situations in the past.
Last edited by yenn; 02-05-2014 at 06:30 PM.
Reason: typo
|
|
|
02-05-2014, 10:29 PM
|
#30
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
Quote:
Originally Posted by ruario
You appear to have hijacked this totally unrelated thread so I am in two minds about answering you. Nonetheless, I guess I will: "chattr +i file".
|
Sorry and Thanks.
|
|
|
All times are GMT -5. The time now is 04:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|