|
2012-02-08
, 16:28
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#12
|
|
2012-02-08
, 17:22
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#13
|
I got a huge list of config files. Anyway to delete all those (that are not required) files at once?
dpkg -l |awk '/^rc/{ print $2 }' > list dpkg --purge $(<list)
The Following 2 Users Say Thank You to michaaa62 For This Useful Post: | ||
|
2012-02-08
, 19:08
|
|
Posts: 254 |
Thanked: 146 times |
Joined on Dec 2010
@ Antwerp Belgium
|
#14
|
mv /usr/share/microb-engine /home/opt ln -s /home/opt/microb-engine /usr/share/microb-engine
The Following 2 Users Say Thank You to peter2p For This Useful Post: | ||
|
2012-02-08
, 19:21
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#15
|
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! ;-)
Nokia-N900:~# rm /var/lib/dpkg/*.old
|
2012-02-14
, 05:14
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#16
|
|
2012-02-14
, 05:21
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#17
|
May be this even might be done with a one-liner, but i use those two linesCode:dpkg -l |awk '/^rc/{ print $2 }' > list dpkg --purge $(<list)
|
2012-02-14
, 05:35
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#18
|
|
2012-02-16
, 12:08
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#19
|
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?
Nokia-N900:~# rm /var/lib/dpkg/*~old
The Following 2 Users Say Thank You to misterc For This Useful Post: | ||
|
2012-02-16
, 12:27
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#20
|
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.
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
dpkg -l | grep ^rc | cut -d " " -f 3 | xargs dpkg --purge
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?