On Tue, 2002-04-09 at 06:57, Jianping Zhu wrote:
> 
> I have a redhat 7.1 linux server. I am running out space of the filesystem
> /usr. I need some 20 M space because my boss need to put some files there
> imediately. I know it very risk to delete files from there.

So don't delete files from there.  Look at the rpm packages you have
installed, instead, and decide if there are any you can remove.

>  I thought may /usr/games is not essentail. Can delete it? what directory
> else can I potentially delete?

Probably not.  Try this to clean it out:
rpm -ef /usr/games/*

Never tried it before, but I think that'll remove the packages
containing files in /usr/games.

Also, try this:
rpm -qa --qf "%-20{SIZE} %{NAME}\n" | sort -n | less

Look for things you can safely delete.  Good candidates are -devel
packages, along with the compiler (gcc, make, etc), kernel-headers,
kernel-source (there's a big one!).  Look around in /usr/src... if
there's anything left in there after removing the kernel-source package,
they can probably be safely deleted as well (/usr/src/redhat/*/*)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to