PDA

View Full Version : Upgrading firmware & keeping applications


scottfranklin
12-18-2007, 08:36 AM
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
12-18-2007, 09:04 AM
Just use the backup utilities, it will save your data and restore your apps.

Tuxedosteve
12-18-2007, 09:05 AM
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
12-18-2007, 09:27 AM
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
12-18-2007, 09:29 AM
OS2009 then? Fair enough.

TheGogmagog
12-18-2007, 12:44 PM
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
12-18-2007, 02:07 PM
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
12-18-2007, 02:39 PM
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
12-18-2007, 02:54 PM
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
12-18-2007, 02:58 PM
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
12-18-2007, 03:17 PM
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
12-18-2007, 03:19 PM
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
12-18-2007, 03:23 PM
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
12-18-2007, 04:05 PM
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
12-18-2007, 05:20 PM
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
12-18-2007, 06:00 PM
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
12-18-2007, 07:37 PM
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
12-18-2007, 08:45 PM
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
12-19-2007, 01:22 AM
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
12-19-2007, 06:52 AM
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
12-19-2007, 07:58 AM
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
12-19-2007, 08:01 AM
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
01-31-2008, 07:19 PM
Reviving this thread to see if anyone has answers to the above question.

free
02-01-2008, 04:24 AM
Where and how would it try to find the packages?

-John
It will download them from internet...


I repeat one single sentence:

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.