View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#9
Originally Posted by munkiii View Post
When i follow the instructions i get an error, i think i might be doing it wrong.

I've unzipped the files to a folder in MyDocs called "p"

This is the part i want to run...

Code:
checkpkgs.pl:

This script outputs a list of all packages containing files (excluding symlinks) in the rootfs, and the total size taken on the rootfs by the package. The display name for the package (if available) is given in brackets after the actual name.
so i tried to run it using

Code:
perl /home/user/MyDocs/p/checkpkgs.pl
but i get an error back...

Code:
Can't locate PkgSize.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/user/MyDocs/p/checkpkgs.pl line 7.
BEGIN failed--compilation aborted at /home/user/MyDocs/p/checkpkgs.pl line 7.
All i want to do is find out what i've installed thats taking up so much rootfs space. I only have 22mb left withextras-devel and extras-testing disabled. 10mb left when i enable extras-devel.
You'll need to be in the same directory to run it, so:
Code:
cd /home/user/MyDocs/p
perl checkpkgs.pl
It's probably best to output to an ordered file as well, so:
Code:
perl checkpkgs.pl | sort -rn > sizes.txt
You can then use "more sizes.txt" to read through the file - the largest rootfs users will be at the top.