Reply
Thread Tools
Posts: 59 | Thanked: 11 times | Joined on Feb 2006 @ Helsinki, Finland
#21
appinstaller is not part of the OS. It's from some extras rep.
 

The Following User Says Thank You to tuXer For This Useful Post:
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#22
Originally Posted by tuXer View Post
appinstaller is not part of the OS. It's from some extras rep.
Thanks - did an apt-cache show on it an saw the repo. Appreciate the reply and the howto
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
Posts: 150 | Thanked: 93 times | Joined on Oct 2009 @ Pennsylvania, US
#23
Originally Posted by mece View Post
2. Reinstall python

This one is a bit more work, but gives you around 20Mb.
If you installed a python application (for example FM Radio, Quicknote, Witter) before python was optified, you need to reinstall python.
Not necessary - just use apt-get to install the pymaemo-optify package, from extras. Removing and installing is doing just that, but the long way.

If you had python installed prior to pymaemo-optify existing, it's likely that if you try to do an 'apt-get upgrade' python is held back. The reason for this is that python now depends on pymaemo-optify, but apt-get upgrade won't install new packages so it is ignored. If you have done an apt-get dist-upgrade since the release of pymaemo-optify, it would have automatically been installed because of the dependency, and your python install will already be optified.

(WARNING: Don't attempt apt-get dist-upgrade unless you really, really, really know what you are doing)
 

The Following 3 Users Say Thank You to rewt For This Useful Post:
Posts: 377 | Thanked: 97 times | Joined on Dec 2009 @ US
#24
Well...

Side from the phone starting to smoke and then catching on fire, it went well... LOL

Nah, phone seems to be fine.

Originally Posted by before

/dev/mmcblk0p2 2.0G 125.7M 1.7G 7% /home
/opt/pymaemo/usr/lib/python2.5
2.0G 125.7M 1.7G 7% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
2.0G 125.7M 1.7G 7% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
2.0G 125.7M 1.7G 7% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
2.0G 125.7M 1.7G 7% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
2.0G 125.7M 1.7G 7% /usr/lib/python-support
Originally Posted by after
/dev/mmcblk1p1 14.8G 8.0G 6.8G 54% /media/mmc1
/opt/pymaemo/usr/lib/python2.5
2.0G 123.5M 1.7G 6% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
2.0G 123.5M 1.7G 6% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
2.0G 123.5M 1.7G 6% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
2.0G 123.5M 1.7G 6% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
2.0G 123.5M 1.7G 6% /usr/lib/python-support
Nokia-N900-42-11:~#
__________________
HNIC target-testing.com
 
Posts: 143 | Thanked: 99 times | Joined on Jun 2009 @ Houston
#25
Alright, I did all that and I didn't get more than 3% extra free space (around 3Mb). It did install pyoptify (that wasn't there before) and still didn't install all the stuff that depended on python back (zoutube and pygtkeditor) so those 3% are probably due to that.
Did I do something wrong?

EDIT: I actually realized that I installed the python apps that were uninstalled via apt-get install. Should that make a difference?

Last edited by tpaixao; 2010-01-13 at 20:36.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#26
Originally Posted by rewt View Post
Not necessary - just use apt-get to install the pymaemo-optify package, from extras. Removing and installing
Does the pymaemo-optify move the existing python libraries to the new location then? It didn't appear to on my N900.
 
Posts: 150 | Thanked: 93 times | Joined on Oct 2009 @ Pennsylvania, US
#27
Yes. It'll move the following to /opt/pymaemo/*:
/usr/lib/python2.5
/usr/share/pyshared
/usr/lib/pyshared
/usr/share/python-support
/usr/lib/python-support

It will then use mount to bind the old path to the new path. With what it does, there is no possible way python will continue to work unless it moves everything prior to binding old paths to the new.

EDIT: One final point of clarification... The way pymaemo-optify works, once your python install has been optified all files will appear to be in both the old and new locations, but they are really only in the new /opt/pymaemo/ location.

Last edited by rewt; 2010-01-13 at 20:59.
 

The Following 2 Users Say Thank You to rewt For This Useful Post:
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#28
I just tried the following:
sudo gainroot
apt-get install pymaemo-optify

and went from 29.9MB to 45.6MB free on the rootfs. Python apps are still working fine.
 
Posts: 65 | Thanked: 21 times | Joined on Feb 2008
#29
Originally Posted by rewt View Post
Yes. It'll move the following to /opt/pymaemo/*:
/usr/lib/python2.5
/usr/share/pyshared
...
I think this answers the question I was going to ask -- but it's always good to confirm these things. I wanted a quick and dirty way to check which version of python I have (optified or not).

If my device doesn't even have a pymaemo directory under /opt that means my version of python is not optified and the re-install detailed at the top of this topic would free up a nice piece of rootfs space.

Yes?
__________________
Just another perl hacker coding python in a bottle.

Last edited by dvergin; 2010-01-13 at 21:06.
 
Posts: 65 | Thanked: 21 times | Joined on Feb 2008
#30
Originally Posted by Slocan View Post
I just tried the following:
sudo gainroot
apt-get install pymaemo-optify

and went from 29.9MB to 45.6MB free on the rootfs. Python apps are still working fine.
This is much less hassle than the uninstall-reinstall method.

Is this now the recommended way to do the shift to optified python?
__________________
Just another perl hacker coding python in a bottle.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:51.