On Thu, 26 May 2005 19:16:08 -0400 [EMAIL PROTECTED] 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 ---
_______________________________________________
yellowdog-general mailing list
[email protected]
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
HINT: to Google archives, try  '<keywords> site:terrasoftsolutions.com'

Reply via email to