|
|
2009-12-18
, 10:02
|
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#11
|
|
|
2009-12-18
, 10:04
|
|
Posts: 278 |
Thanked: 209 times |
Joined on Dec 2009
|
#12
|
|
|
2009-12-18
, 10:09
|
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#13
|
|
|
2009-12-18
, 10:17
|
|
Posts: 278 |
Thanked: 209 times |
Joined on Dec 2009
|
#14
|
|
|
2009-12-18
, 10:47
|
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#15
|
| The Following User Says Thank You to Rob1n For This Useful Post: | ||
|
|
2009-12-18
, 10:51
|
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#16
|
| The Following User Says Thank You to SubCore For This Useful Post: | ||
|
|
2009-12-18
, 12:15
|
|
Posts: 78 |
Thanked: 53 times |
Joined on Nov 2009
|
#17
|
| The Following User Says Thank You to sierrafoxtrot For This Useful Post: | ||
|
|
2009-12-18
, 12:41
|
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#18
|
another noob question in regards to this, after deleting apps, the rootfs space does not seem to be recovered, even after a reboot. i had installed mplayer (19.4M). rootfs usage was 189M used , according to diskusage
then i used this cmd
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k2 -n
and it was shown at the bottom of the list (sorted by size)
i uninstalled it, rebooted and diskusage still showed 189M used. running the above commandline once again showed it was still there.
dpkg -L mplayer
returned that package mplayer does not contain any files?!
so, my question; how do you purge installed files sitting on rootfs?
|
|
2009-12-18
, 13:20
|
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#19
|
...
mauku
countdown-home
wormux
vpnc-gui
scummvm
omweather-weather-com-stations-db
load-applet
touchsearch
ioquake3
sopwith
ukeyboard
amazon-installer
burgerspace
pidgin
panucci
bounce
pygtkeditor
drnoksnes
vor
uqm
gonvert
vpnc
systeminfowidget
milkyway-wallpaper
ogg-support
liqtorch
omweather
rdesktop
facebook-services
dosbox
ap-installer
wifiinfo
kmplayer
dtg
mbarcode
crimson
transmission
braek
lighttpd
zoutube
simple-fmtx-widget
midori
wiicontrol
rootsh
stopwatch-home
gpodder
personal-gprs-mon
vncviewer
microfeed
account-plugin-butterfly
stockthis
mp-fremantle-003-pr
maelstrom
thai-ttf
personal-ip-address
leafpad
mg
mirror
simple-brightness-applet
mplayer
foreca-installer
ati85
tennix
dtg-installer
xchat
unzip
pidgin-maemo-docklet
decoders-support
enigma
conversations-inbox-widget
fmradio
madbomber
facebook-installer
libzeemote-conf
petrovich
recorder
mastory
liqflow
copernicium
...
|
|
2009-12-18
, 13:35
|
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#20
|
#!/usr/bin/perl
%known_optified = ();
%known_nonoptified = ();
sub is_secretly_optified($) {
my ($file) = @_;
# print "testing $file\n";
if($known_optified{$file}) {
# print "known optfified $file\n";
return 1;
}
if($known_nonoptified{$file}) {
# print "known nonoptfified $file\n";
return 0;
}
unless($file) {
return 0;
}
my $orig = $file;
unless( -l $file) {
$file =~ s/\/[^\/]*$//;
if(is_secretly_optified($file)) {
$known_optified{$orig} = 1;
return 1;
} else {
$known_nonoptified{$orig} = 1;
return 0;
}
}
my $lsresult = `/bin/ls -l $file`;
chomp($lsresult);
if($lsresult =~ /->\s+(.*)/) {
my $target = $1;
# print "found symlink to $target\n";
if($target =~ /^\/opt/ or $target =~ /^\/home/) {
# print "remembering $target is optified?\n";
# print "remembering $orig is optified?\n";
$known_optified{$orig} = 1;
return 1;
} else {
if(is_secretly_optified($target)) {
$known_optified{$orig} = 1;
return 1;
} else {
$known_nonoptified{$orig} = 1;
return 0;
}
}
}
}
while(<>) {
unless($currentfile eq $ARGV) {
$currentfile = $ARGV;
if($out) {
if($total >= 1024) {
$total = sprintf("%0.2fM", $total / 1024);
} else {
$total = sprintf("%0.2fK", $total);
}
print "$out$currentpkg : total non-opt usage: "
. "$total\n----------\n";
}
$out = undef;
$total = undef;
$currentfile = $ARGV;
$currentpkg = $currentfile;
$currentpkg =~ s/\.md5sums//;
$currentpkg =~ s/.*\///;
}
s/^\S+\s+//;
$suspect = "/$_";
$du = undef;
unless(/^opt/ or /^home/ or /^usr\/share\/(man|doc)\//) {
next if(is_secretly_optified($suspect));
$du = `du -s $suspect`;
chomp $du;
if($du =~ /^(\d+)/) {
$total += $1;
if($1 >= 1024) {
$val = sprintf("%0.2fM", $1 / 1024);
} else {
$val = sprintf("%0.2fK", $1);
}
$du =~ s/^\d+/$val/;
}
$out .= "$currentpkg : $du\n";
}
}
if($out) {
if($total >= 1024) {
$total = sprintf("%0.2fM", $total / 1024);
} else {
$total = sprintf("%0.2fK", $total);
}
print "$out$currentpkg : total non-opt usage: "
. "$total\n---------\n";
}
~# /usr/local/bin/find_non_opt_files.pl /var/lib/dpkg/info/burgerspace.md5sums
burgerspace : 4.00K /usr/share/pixmaps/burgerspace.xpm
burgerspace : 4.00K /usr/share/applications/hildon/burgerspace.desktop
burgerspace : 8.00K /usr/share/icons/hicolor/scalable/hildon/burgerspace.png
burgerspace : 4.00K /usr/share/icons/hicolor/48x48/hildon/burgerspace.png
burgerspace : 4.00K /usr/share/icons/hicolor/32x32/hildon/burgerspace.png
burgerspace : 4.00K /usr/share/menu/burgerspace
burgerspace : total non-opt usage: 28.00K
-------------------------------------------------------
/usr/local/bin/find_non_opt_files.pl /var/lib/dpkg/info/*.md5sums