Freeing up space on HD

Robert Story rstory-l at revelstone.com
Tue May 31 11:20:37 MDT 2005


On Thu, 26 May 2005 19:16:08 -0400 xlargebear at bellsouth.net wrote:
XN> I have YDL4 installed in a 8600 with a 3 Gb HD that just got  
XN> completely full. I need to free up some space urgently since this is  
XN> my webserver. What can I safely remove? Is it ok to delete everything  
XN> in /usr/src ? There's like 750 Mbytes in  there.

Here is a little script I have, that lists RPMs by size, so you can see who the
space hogs are, and remove them. Not terribly efficient, but it works for me..

--- cut here ---
#!/bin/bash
#
# $Id: rpm-by-size,v 1.1 2001/07/14 18:36:24 rstory Exp $
#
rm -f rpm.tmp
for x in `rpm -q -a`; do
   echo "Checking $x..."
   echo "`rpm -q $x -i|grep ^Size |cut -f2 -d':' |cut -f2 -d' '` $x" >> rpm.tmp
done

echo "Sorting..."

cat rpm.tmp | sort -r -n > rpm.out
less -xF rpm.out
--- cut here ---


More information about the yellowdog-general mailing list