[TriLUG] Disk cleanup

Jeremy P jeremyp at pobox.com
Mon Mar 18 13:52:32 EST 2002


On Mon, 18 Mar 2002, Justin Johnson wrote:

> 1.) What the h@|| is taking up > #GB on my hard drive? I installed RHL 7.2
> and it's updated to the current kernel release from RH. Can I remove the
> older kernel packages safely? If so, do I need to do anything beyond
> uninstall the package? ( I use gnorpm for most of my dealings with this kind
> of stuff) I've already started going through the list of packages and
> uninstalling things I know I don't use, as I just want to get rid of as much
> crap as possible.

Here's a way to list the installed packages by size, using the queryformat
thingy that was mentioned last week at the RPM talk:

rpm -qa --queryformat '%{size} %{name}-%{version}-%{release}\n' | sort -n

(change the "sort -n" to "sort -nr" if you want things in reverse size
order)

On my system, the kernel-source packages are biggest, so that's one way to
save a quick 60M+ if you don't build your own kernels.

--Jeremy




More information about the TriLUG mailing list