maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   Upgrading firmware & keeping applications (https://talk.maemo.org/showthread.php?t=13347)

scottfranklin 2007-12-18 13:36

Upgrading firmware & keeping applications
 
Since there's no such thing as a stupid question...

How do people handle firmware upgrades, stored data, and installed applications? Does flashing to the new OS erase all these, or is it like installing a new kernel (that leaves /etc/ and /usr/bin and especially /home relatively unscathed?

I would hate to think that every time Nokia releases a new firmware I have to re-install my apps (and re-enter my google calendar paths. SHUDDER.)

Thanks,

Scott

Khertan 2007-12-18 14:04

Re: Upgrading firmware & keeping applications
 
Just use the backup utilities, it will save your data and restore your apps.

Tuxedosteve 2007-12-18 14:05

Re: Upgrading firmware & keeping applications
 
It's a shame it isn't what they said they were going to do though. Do they still have plans for updates that don't require a full wipe? At the moment the app restorer can't tell the difference between apps installed from a repo and apps that were installed from deb.

Texrat 2007-12-18 14:27

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by Tuxedosteve (Post 110230)
It's a shame it isn't what they said they were going to do though. Do they still have plans for updates that don't require a full wipe? At the moment the app restorer can't tell the difference between apps installed from a repo and apps that were installed from deb.

The plan as published is that the NEXT major update will allow incremental upgrades.

Tuxedosteve 2007-12-18 14:29

Re: Upgrading firmware & keeping applications
 
OS2009 then? Fair enough.

TheGogmagog 2007-12-18 17:44

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by Khertan (Post 110227)
Just use the backup utilities, it will save your data and restore your apps.

Except most of the repositories are bogged down with the new release, so if you manage to get 2008, you won't be able to recover your programs for a while.

dblank 2007-12-18 19:07

Re: Upgrading firmware & keeping applications
 
I keep all .deb files on a memory card, that way I can just do something like:
dpkg -EG -i *.deb

Applications installed via repositories can be copied (or moved, to clear up internal flash memory) from /var/cache/apt/archives/

tobiasj 2007-12-18 19:39

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by dblank (Post 110499)
I keep all .deb files on a memory card, that way I can just do something like:
dpkg -EG -i *.deb

Applications installed via repositories can be copied (or moved, to clear up internal flash memory) from /var/cache/apt/archives/

That is just such a cool idea I can not even begin to tell you. However, when I go to /var/cache/apt/archives/ there isn't anything in there. there is a file named Lock and an empty folder called partial. (yes, ls -all) I have installed a number of programs via repositories and this would have been a great way to rebuild after a reflash. Am I maybe looking in the wrong /var/cache/apt/archives/ or something?

-John

dblank 2007-12-18 19:54

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by tobiasj (Post 110537)
Am I maybe looking in the wrong /var/cache/apt/archives/ or something?

That's definitely where they are on mine (OS2008 Beta), try installing some small app via repository and see if a .deb pops up?

Maybe they get removed automatically at some point to save space.

tobiasj 2007-12-18 19:58

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by dblank (Post 110554)
That's definitely where they are on mine (OS2008 Beta), try installing some small app via repository and see if a .deb pops up?

Maybe they get removed automatically at some point to save space.

Ahh, therein lies the problem I believe. I am not on 2008 yet. It must be a OS2008 thing. Oh well, I was hoping to use this to go to OS2008 and if necessary back to 2007. it is funny that the directory structure would be the same if it isn't used on 2007. Oh well, I will poke around and see what I can find.

Thanks!

-John

tobiasj 2007-12-18 20:17

Re: Upgrading firmware & keeping applications
 
Ok, having done a find -name *.deb at root, the only files I found were the .debs in my install folder on MMC2. it appears that OS2007 does NOT store the install files at least not as .deb.

On to the next idea...


-John

dblank 2007-12-18 20:19

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by tobiasj (Post 110559)
it is funny that the directory structure would be the same if it isn't used on 2007.

I'm pretty sure OS2007 dumps them there too by default, what does "apt-config dump | grep Cache"

say?

Mine shows:
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";

tobiasj 2007-12-18 20:23

Re: Upgrading firmware & keeping applications
 
Nokia-N800-39:/# apt-config dump | grep Cache
-sh: apt-config: not found

Mine can not find the apt-config executable. Now that is odd..


-John

dblank 2007-12-18 21:05

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by tobiasj (Post 110575)
Mine can not find the apt-config executable. Now that is odd..

I just looked at an old backup of my OS2007 install, and apt-config isn't there either, but there was a bunch of crap in /var/cache/apt/archives

Did you try installing something today via repository and checking /var/cache/apt/archives immediately after downloading?

It has to store em some place! I just think they're being nuked at some point afterwards.

L0cutus 2007-12-18 22:20

Re: Upgrading firmware & keeping applications
 
also i have os2008(release) and i have nothing into /var/cache/apt/archives
i've see that ONLY apps installed via "apt-get install" go there, other installed via
application manager does not.

trantor 2007-12-18 23:00

Re: Upgrading firmware & keeping applications
 
You have to enable Redpillmode, then you'll get a new checkbox called "Clear apt cache" in your Programmanager's options dialog. I think this might be the solution.

dblank 2007-12-19 00:37

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by trantor (Post 110718)
You have to enable Redpillmode, then you'll get a new checkbox called "Clear apt cache" in your Programmanager's options dialog. I think this might be the solution.

Yeah I think you've got it, I almost exclusively use apt-get install from the command line, forgot about that whole application manager thing :)

free 2007-12-19 01:45

Re: Upgrading firmware & keeping applications
 
The clean way to get the list of installed package and transfer the list to another machine and install this list is with this:
dpkg --get-selections > list.txt

then to sync the list on another device:
dpkg --set-selections < list.txt

Yes, in theory it's as easy as this

:)

L0cutus 2007-12-19 06:22

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by free (Post 110835)
The clean way to get the list of installed package and transfer the list to another machine and install this list is with this:
dpkg --get-selections > list.txt
then to sync the list on another device:
dpkg --set-selections < list.txt
Yes, in theory it's as easy as this
:)

this lists ALL applications installed not only the one i've installed...
any way to get only applications i've installed and then download only
all the needed packages on disk ?

thanks :)

free 2007-12-19 11:52

Re: Upgrading firmware & keeping applications
 
Quote:

this lists ALL applications installed not only the one i've installed...
any way to get only applications i've installed and then download only
all the needed packages on disk ?
If anyone finds the dpkg logfile, it would be easy to do; based on the date.
Otherwise, application installed by user=application currently installed - application initially installed.
Now you have to know which ones were initially installed...

What's the problem with getting the full list?

tobiasj 2007-12-19 12:58

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by trantor (Post 110718)
You have to enable Redpillmode, then you'll get a new checkbox called "Clear apt cache" in your Programmanager's options dialog. I think this might be the solution.

Yup, that should be it in my case, according to 'the manual':

After activating the red pill mode, the following additional settings are available in "Tools > Settings".

*

Clean apt cache

If activated, the equivalent of "apt-get clean" is performed after every install or update. (This is the behavior for blue-pill mode.)

Which as I just went into red pill mode and checked, this was turned on (which I turned off) and I will now install something and see if it sticks which I am sure it will.

Thanks!

-John

tobiasj 2007-12-19 13:01

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by free (Post 110835)
The clean way to get the list of installed package and transfer the list to another machine and install this list is with this:
dpkg --get-selections > list.txt

then to sync the list on another device:
dpkg --set-selections < list.txt

Yes, in theory it's as easy as this

:)


So the dpkg --set-selections < list.txt command will install (or attempt to install) everything in the list as it parses it? It would be simple enough for me to pare down this list to just the things I want installed.

Where and how would it try to find the packages?

-John

bluesubaru 2008-02-01 00:19

Re: Upgrading firmware & keeping applications
 
Reviving this thread to see if anyone has answers to the above question.

free 2008-02-01 09:24

Re: Upgrading firmware & keeping applications
 
Quote:

Originally Posted by tobiasj (Post 111069)
Where and how would it try to find the packages?

-John

It will download them from internet...


I repeat one single sentence:

Quote:

Yes, in theory it's as easy as this
The mentionned method is the way to transpose an installation from one PC to another. For upgrades it's a bit more complicated. If transitions are not thought, then it probably won't work..

Needs to be tested.


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

vBulletin® Version 3.8.8