LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-16-2013, 11:46 PM   #16
jamison20000e
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
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567

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 01:49 PM.
 
1 members found this post helpful.
Old 11-17-2013, 01:47 PM   #17
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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.
Old 11-17-2013, 05:47 PM   #18
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by cuphandle23 View Post
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
Code:
slackpkg install d
You may have to adjust /etc/slackpkg/mirrors to point to your Slackware DVD.
 
4 members found this post helpful.
Old 11-17-2013, 07:24 PM   #19
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
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.
Old 11-18-2013, 01:00 AM   #20
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
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 01:25 AM. Reason: Added a comment on xap/; adding link to my old post
 
2 members found this post helpful.
Old 11-18-2013, 09:32 AM   #21
slouchfuzz
LQ Newbie
 
Registered: May 2009
Distribution: Slackware, Mythbuntu
Posts: 24

Rep: Reputation: 7
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.
Old 11-18-2013, 10:47 AM   #22
KeithE
Member
 
Registered: Jan 2003
Location: Mesa, AZ
Distribution: Linux Mint
Posts: 155

Rep: Reputation: 35
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.
 
Old 11-18-2013, 01:24 PM   #23
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Keep an eye on /tmp too, that can fill up unnoticed.
 
Old 02-04-2014, 09:18 PM   #24
jamison20000e
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
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Is there a way to keep the contents of a file empty?
 
Old 02-05-2014, 05:36 AM   #25
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
Quote:
Originally Posted by jamison20000e View Post
Leave it blank
 
Old 02-05-2014, 05:39 AM   #26
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by jamison20000e View Post
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.
Old 02-05-2014, 10:55 AM   #27
jamison20000e
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
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
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 09:20 PM.
 
Old 02-05-2014, 03:09 PM   #28
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
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.
 
Old 02-05-2014, 05:30 PM   #29
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
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 05:30 PM. Reason: typo
 
Old 02-05-2014, 09:29 PM   #30
jamison20000e
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
Blog Entries: 2

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


Reply



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
Can't delete directory with space in name budhead Linux - Software 12 12-02-2014 10:21 AM
how to Split disk space and not delete the files ytyyutianyun Linux - Newbie 11 12-10-2011 06:55 AM
zero disk space left even if i delete files wakkana12 Slackware 13 09-07-2010 09:56 AM
What to Delete to Clear Disk Space? PatrickW Linux - Newbie 5 05-03-2008 01:59 PM
save space and delete old packages ctagg Linux - Newbie 1 03-14-2005 04:33 PM

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

All times are GMT -5. The time now is 06:50 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