Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Feb 2012
#11
Originally Posted by sixracer View Post
I accidentally extracted NITDroid to my root directory (for got a cd /And). Is this a good way to clean out the excess files?
That's exactly what I managed to do yesterday! If anyone knows what to do now, please share your knowledge.

I was installing NITDroid following the instructions shown in this video: http://www.youtube.com/watch?v=HF0uv0nJIj0 and I'm 100% sure I did everything precisely as in the video. My SD card was brand new, plugged it in straight from the package before trying to install NITDroid. What the heck went wrong?
 
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#12
Originally Posted by khuong View Post
dpkg -l | grep ^rc (this command will show you a list of apps configuration files still left in the system from uninstalled app)
dpkg --purge <appname> (This will remove it)
I got a huge list of config files. Anyway to delete all those (that are not required) files at once?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#13
Originally Posted by Joseph9560 View Post
I got a huge list of config files. Anyway to delete all those (that are not required) files at once?
May be this even might be done with a one-liner, but i use those two lines
Code:
dpkg -l |awk '/^rc/{ print $2 }' > list
dpkg --purge $(<list)
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
peter2p's Avatar
Posts: 254 | Thanked: 146 times | Joined on Dec 2010 @ Antwerp Belgium
#14
To Clean rootfs or Free up rootfs space, there's a WIKI page.
The most effective i did was Moving the microb-engine (has to be done as root) will save 13.9 Mb:
these are the commands
Code:
mv /usr/share/microb-engine /home/opt
ln -s /home/opt/microb-engine /usr/share/microb-engine
Warning !
First save both commands on a file on your N900 to be sure.
If you do the first command and you lost connection, opening pages is not possible.
Also found the browser opening pages takes a while...
To speed up microb again, this can help you and there's no difference anymore
__________________
.................................................. ...........
..........................
................................N900 is a way of life....................
surfing the web, navigate, chat, ttweet, email, scan, hack, share, tweak...
.....................and you can also use him to make a call
 

The Following 2 Users Say Thank You to peter2p For This Useful Post:
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#15
Originally Posted by SiO2 View Post
Guys, I don't know whether this information deserves a new topic but yesterday I've found a way to clean the N900 rootfs that worked fine on my device. Please handle this information with care, since I've read about people running ubuntu or debian who got the system erased by this command.
I've typed this (as root):

apt-get autoremove

my free rootfs increased by 8% but before I recommend to try this:

apt-get --simulate autoremove

this command simulates the autoremove action so, you can check the output in order to be sure that only useless packages will be removed.

Try also: apt-get moo

This won't help you in rootfs cleaning but is absolutely safe! ;-)
Code:
Nokia-N900:~# rm /var/lib/dpkg/*.old
routinely frees up to 5 MB
 
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#16
Originally Posted by misterc View Post
Code:
Nokia-N900:~# rm /var/lib/dpkg/*.old
routinely frees up to 5 MB
I don't see anything like that in my N900, thought I can see something like /var/lib/dpkg/*old

There seems to be three files that would match the criteria and would free up about 2.7Mb in my case. Is that what you are talking about? Or is it indeed *.old?
 
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#17
Originally Posted by michaaa62 View Post
May be this even might be done with a one-liner, but i use those two lines
Code:
dpkg -l |awk '/^rc/{ print $2 }' > list
dpkg --purge $(<list)
Doesn't seems to work with and without root.

dpkg: --purge needs at least one package name argument.
 
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#18
"dpkg -l | grep ^rc | cut -d " " -f 3 | xargs dpkg --purge" as root worked. About 1.5Mb root space freed.
 
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#19
Originally Posted by Joseph9560 View Post
I don't see anything like that in my N900, thought I can see something like /var/lib/dpkg/*old

There seems to be three files that would match the criteria and would free up about 2.7Mb in my case. Is that what you are talking about? Or is it indeed *.old?
my mistake, indeed...
meant to be
Code:
Nokia-N900:~# rm /var/lib/dpkg/*~old
guess *old amounts to the same
 

The Following 2 Users Say Thank You to misterc For This Useful Post:
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#20
here is a wiki page that 'optifies' a few packages part of Maemo core (thus, can't be optified prior to install, any more, obviously
alas
CSSU, anyone )

Free up rootfs space

YMMV...
Some instructions here may cause serious problems. When unsure, see General precautions
Backing up your data is recommended. In case of trouble you might need to re-flash your device.
here are most lines...
Code:
rm /var/lib/dpkg/*old
mv /usr/share/nokia-maps /home/opt/
ln -s /home/opt/nokia-maps /usr/share/nokia-maps
mv /usr/share/microb-engine /home/opt
ln -s /home/opt/microb-engine /usr/share/microb-engine
mv /usr/share/fonts /home/opt 
ln -s /home/opt/fonts /usr/share/fonts
mv /usr/share/locale /opt
ln -s /opt/locale /usr/share/locale
mv /usr/share/themes/ /home/opt/usr/share/themes
ln -s /home/opt/usr/share/themes /usr/share/themes
dpkg --purge tutorial-home-applet 
dpkg -l|grep ^rc
last command has been rewritten by Joseph9560 as
Code:
dpkg -l | grep ^rc | cut -d " " -f 3 | xargs dpkg --purge
nota bene: moving & relinking the theme part means you can't install any new themes unless you delete the link & move the files back to their original place...

i use those exact instructions routinely when reflashing my N900s (now mostly the test model ) and never had any problems
then again, i don't give a darn about themes
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:47.