maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Root space - What is "optifying"? (https://talk.maemo.org/showthread.php?t=40131)

slender 2010-01-13 09:16

Re: Root space
 
----------nothing------

RevdKathy 2010-01-13 09:17

Re: Root space
 
How do I work out what to uninstall? I know witter and FM radio are python (though I have the radio from extras, not testing).

mivoligo 2010-01-13 09:27

Re: Root space
 
Quote:

Originally Posted by texaslabrat (Post 467053)

I don't think you'd free up much just by disabling a repository...I can't imagine the little db files taking up that much space.

I've just disabled extras-testing and extras-devel and my used space changed from 81% to 76%. It's not so bad. :)

mece 2010-01-13 09:32

Re: Root space
 
Quote:

Originally Posted by RevdKathy (Post 467909)
How do I work out what to uninstall? I know witter and FM radio are python (though I have the radio from extras, not testing).

apt-get gave me a nice list and removed the apps for me automagically.

mece 2010-01-13 09:35

Re: Root space
 
Quote:

Originally Posted by slender (Post 467908)
2.2 Enable extras-testing and extras-devel from app manager and wait app manager to refresh.

:)

if you do that you might end up with the non-optified python again, making the whole exercise pointless. I might be wrong though. Install, for example fm radio from extras first, to get python set up properly. then enable whatever and install the rest.

Rob1n 2010-01-13 09:51

Re: Root space
 
Quote:

Originally Posted by mece (Post 467938)
if you do that you might end up with the non-optified python again, making the whole exercise pointless. I might be wrong though. Install, for example fm radio from extras first, to get python set up properly. then enable whatever and install the rest.

No, you should be okay. The new python optification package would look to be creating new python directories in /opt, then bind mounting them into /usr. This means you need to remove all python apps before hand (which this process does, but which is why python isn't there as a normal update), but anything installed afterwards will install into /opt without any changes having to be made.

mece 2010-01-13 09:55

Re: Root space
 
Quote:

Originally Posted by Rob1n (Post 467963)
No, you should be okay. The new python optification package would look to be creating new python directories in /opt, then bind mounting them into /usr. This means you need to remove all python apps before hand (which this process does, but which is why python isn't there as a normal update), but anything installed afterwards will install into /opt without any changes having to be made.

I was thinking of this scenario:
you enable devel (after removing python) and install witter from there, and in the process python is also installed, but from devel and not from extras, and then you end up with a non optified python again. (If devel python version is non optified. i actually don't know this)

Rob1n 2010-01-13 10:06

Re: Root space
 
Quote:

Originally Posted by mece (Post 467967)
I was thinking of this scenario:
you enable devel (after removing python) and install witter from there, and in the process python is also installed, but from devel and not from extras, and then you end up with a non optified python again. (If devel python version is non optified. i actually don't know this)

No, the optified version has a higher version, so will always be picked in preference. In fact, there shouldn't even be a non-optified version of python in -devel or -testing now.

stayloa 2010-01-13 10:12

Re: Root space
 
Quote:

Originally Posted by mece (Post 467903)
For those who have installed python apps from testing or devel. The python in extras is now optified, which gives you a nice 20 megs extra in rootfs.

I had to manually remove some stuff to get it updated.

Here's what I did:

This will most likely remove some programs. You will see a list of what will be removed and asked to verify. Please note that you might not have the same programs installed as I did. FM Radio, Quicknote and Witter are a couple of python apps that will be removed.


1. disable extras-testing and extras-devel from app manager, and close app manager.

2. in xterm as root:

apt-get remove python
apt-get remove python2.5
apt-get remove python-osso
apt-get autoremove
apt-get clean

now you should have much more space.

3. Install FM Radio from extras. A new optified version of python will be installed.

4. Install whatever programs that were removed. They should now use the optified python libraries.

Check with df -h that you see the opt mounts for python added to the list.


Thank you very much for this guide - thought I'd post my results from running through it as it has turned out to be a really useful exercise.

I started with around 19mb free space on root.

I ran the commands and uninstalled everything (including several apps from extras-testing and devel). With those 2 repos still disabled, I had 59.7m free.

I then enabled extras-testing and devel. This took me down to 45.1m.

I ran 11 updates from all repos (no python apps). Was now down to 44.9m.

I reinstalled wiicontrol and mediabox (with 2 new plugins) from extras-devel - both python. Down to 44.4m.

I then disabled the two repos again. Back to 58.5m.

So it appears that just enabling the two "cautionary" repos does reduce space on root by about 10 meg. The new python is certainly being applied to the reinstalled devel apps which is great. I'd imagine that 44.4m itself is enough, but by keeping those repos disable unless I'm dipping, I've practically gained 30meg! So thanks again!

NvyUs 2010-01-13 10:16

Re: Root space
 
Quote:

Originally Posted by mece (Post 467903)
For those who have installed python apps from testing or devel. The python in extras is now optified, which gives you a nice 20 megs extra in rootfs.

I had to manually remove some stuff to get it updated.

Here's what I did:

This will most likely remove some programs. You will see a list of what will be removed and asked to verify. Please note that you might not have the same programs installed as I did. FM Radio, Quicknote and Witter are a couple of python apps that will be removed.


1. disable extras-testing and extras-devel from app manager, and close app manager.

2. in xterm as root:

apt-get remove python
apt-get remove python2.5
apt-get remove python-osso
apt-get autoremove
apt-get clean

now you should have much more space.

3. Install FM Radio from extras. A new optified version of python will be installed.

4. Install whatever programs that were removed. They should now use the optified python libraries.

Check with df -h that you see the opt mounts for python added to the list.

thanks very much for this tip, worked a treat i had decent amount of space already but you can never have too much


All times are GMT. The time now is 07:14.

vBulletin® Version 3.8.8