View Single Post
Posts: 179 | Thanked: 49 times | Joined on Nov 2008
#8
Originally Posted by Rob1n View Post
I use the attached perl scripts (modified from others posted here) to do this - they'll report all packages using rootfs space, and how much they're using (or how much space a given package is using, in total or per file).

EDIT: I've updated the attachment. The new version now reads the dpkg data files directly instead of calling dpkg (which gives an enormous speedup), and also reports the display name as well as the package name (where available).
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.