On Sun, 17 Feb 2002, pesarif wrote:
> > > > My /var/log folder is getting fairly big (10 MB) and its growing
> > > > quickly (this computer has only 660MB for Linux :( ).
[snip]
> > That said, logrotate is the best way to do this, since it archives a
> > copy of your logs if needed. Which logs are you having throuble with?
> Just generally all of them because there isn't enough disk space.
>
You've probably tried these, but here are some other places that I clean
up:
/var/cache/urpmi -- contains update RPMs that, once installed, can be
deleted
/var/log/ -- if you really don't care about some logs, you can symlink
them to /dev/null. I don't recommend this though...
/var/spool/mail -- check for large mail accounts
/usr/lib/modules -- contains your kernel modules; if you've updated the
kernel and don't foresee dropping back to an old version, you can delete
the old modules directories
/usr/src/ -- can contain old versions of the kernel source tree
/usr/src/RPM/SOURCES -- if you build source RPMs, the sources appear
here and can be deleted once the binaries are built
/usr/src/RPM/RPMS -- subdirectories contain the binary RPMs
/tmp -- old ssh session files, other cruft
Other audits:
find / -size +10000 -type f -exec ls -l {} \;|sort -k5 -n >bigFiles
Lists the largest files on your disk
find / -name "*.tmp" -type f
Repeat for *.log/old/rpmsave etc..
find / -name core -type f
Look for files that are coredumps. Do not delete your kcore files.
rpm -qa
Look for unneeded packages such as unneeded window managers,
applications that are never used, backgrounds, etc..
You probably don't need lots of devel packages if you don't often
build from source, etc..
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com