Differences between revisions 8 and 9
Revision 8 as of 2009-04-10 18:17:49
Size: 2113
Comment:
Revision 9 as of 2009-04-10 18:37:17
Size: 2522
Comment:
Deletions are marked like this. Additions are marked like this.
Line 44: Line 44:
You might consider running {{{dpkg -l}}} periodically and manually going through it to see if there are packages which you never use. Alternately you can install the package popularity-contest and run {{{popularity-contest | sort > popcon}}} This will list the packages in least-used order in a text file called ~/popcon. Then {{{aptitude purge <unused package>}}} will warn you if the package is needed by something else.  You might consider running {{{dpkg -l}}} periodically and manually going through it to see if there are packages which you never use. Alternately you can install the package popularity-contest and run {{{popularity-contest | sort > popcon}}} This will list the packages in least-used order in a text file called ~/popcon. Then to actually remove some unwanted/unused package you can do {{{aptitude purge -s <unwanted package>}}} to simulate the process and see what else is affected. You can answer yes to seemingly drastic removals because the {{{ -s}}} makes it simulate and report, not actually execute. Once youa re happy with the consequences do{{{aptitude purge <unused package>}}} and aptitude will still tell you what it's doing and what dependencies are affected, but when you say Yes, it will actually execute the removal.

Translation(s): none

(!) ?Discussion


Freeing Disk Space

If you are running near the end of your disk space, the information may help you.

Command line tools to see which package are using the most disk space:

Using aptitude:

  • aptitude -F '%I %p' search '~i'|egrep '^[0-9]+[\.,]?[0-9]*[MG]B'|sort -n

Using ?dpigs (debian-goodies):

  • dpigs -n50

Using wajig:

  • wajig size

Tools to erase

files you do not want

packages you do not want

Tools to alter files to reduce them

Reduce data creation

Use the following line as your /etc/rsyslog.conf configuration file in order to not save logs but output them on virtual terminal 12:

  • *.* -/dev/tty12

On systems that have been running for some time you might consider stripping out old log files.

Note that localepurge is a package that will strip unwanted language versions from everything you install. If you want a new language in the future you will have to add the locale and then re-install the package.

You might consider running dpkg -l periodically and manually going through it to see if there are packages which you never use. Alternately you can install the package popularity-contest and run popularity-contest | sort > popcon This will list the packages in least-used order in a text file called ~/popcon. Then to actually remove some unwanted/unused package you can do aptitude purge -s <unwanted package> to simulate the process and see what else is affected. You can answer yes to seemingly drastic removals because the  -s makes it simulate and report, not actually execute. Once youa re happy with the consequences doaptitude purge <unused package> and aptitude will still tell you what it's doing and what dependencies are affected, but when you say Yes, it will actually execute the removal.

Using a compressed filesystem can save a lot of space. Typically squashfs reduces space used by about 50%, but it is read-only.

ToDo - Check media compressions.