![]() |
2010-07-27
, 03:43
|
Posts: 540 |
Thanked: 387 times |
Joined on May 2009
|
#2
|
![]() |
2010-07-27
, 04:44
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#3
|
I assume N900 user? Additionally I assume Maemo5? This won't work for anything downloaded from ovi store fyi.
Save the .deb packages locally and copy them somewhere.
Then you can simply copy them back to the N900 and dpkg -i *.deb
As far as the packages you have installed go (provided you have not done a apt-get clean)
Something like this to backup to another computer
# scp /var/cache/apt/archives/*.deb user@server:/home/user/maemo/
Later
# scp user@server:/home/user/maemo/* /home/user/MyDocs/
# dpkg -i /home/user/MyDocs/*.deb
If you want to just download packages to install later then you can:
# apt-get -d install unzip
# dpkg -i /var/cache/apt/archives/unzip_5.52-14-maemo6_armel.deb
![]() |
2010-07-27
, 05:04
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#4
|
![]() |
2010-07-27
, 05:15
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#5
|
![]() |
2010-07-27
, 05:18
|
Posts: 540 |
Thanked: 387 times |
Joined on May 2009
|
#6
|
The Following User Says Thank You to linuxeventually For This Useful Post: | ||
![]() |
2010-07-27
, 05:21
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#7
|
The Following User Says Thank You to ossipena For This Useful Post: | ||
![]() |
2010-07-27
, 06:31
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#8
|
Unzip what just an example of a package. That is all.
By harddrive, do you mean a random harddrive (on a desktop for instance) or are you referring to the eMMC (internal SD card) in the N900? I suppose you could even simply save the files to a microSD card.
Yeah so when you install packages they are first downloaded by the package manager and saved to the location /var/cache/apt/archives/ temporarily before they are installed.
They aren't deleted from the location usually unless you delete them manually or with autoclean (or similar).
Anyway, you can just go ahead and copy them to your sd card (I'm not sure where it's mounted in your case; I'm an N810 user and not too familiar with the N900; my suggestions are generic debian-based instructions)
# mkdir /media/mmc1/debz
# cp /var/cache/apt/archives/*.deb /media/mmc1/debz/
might work for you but again I'm not sure that's the right mount point.
Now if you want to be sure you are getting all the debian packages, you can be sure to
# apt-get -d install foo
# cp /var/cache/apt/archives/*.deb /media/mmc1/debz/
# apt-get install foo
Hope that helps
EDIT: For people that just want a list of installed packages (that way you can just go somewhere that has free wifi access and download all the packages in one shot after reflashing)
Backup:
foo=`dpkg -l | grep ii | awk '{ print $2 }'`; echo $foo > /media/mmc1/copymesomewheresafe
Restore:
bar=`cat /media/mmc1/copymesomewheresafe`; apt-get install $bar
![]() |
2010-07-29
, 02:43
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#9
|
Unzip what just an example of a package. That is all.
By harddrive, do you mean a random harddrive (on a desktop for instance) or are you referring to the eMMC (internal SD card) in the N900? I suppose you could even simply save the files to a microSD card.
Yeah so when you install packages they are first downloaded by the package manager and saved to the location /var/cache/apt/archives/ temporarily before they are installed.
They aren't deleted from the location usually unless you delete them manually or with autoclean (or similar).
Anyway, you can just go ahead and copy them to your sd card (I'm not sure where it's mounted in your case; I'm an N810 user and not too familiar with the N900; my suggestions are generic debian-based instructions)
# mkdir /media/mmc1/debz
# cp /var/cache/apt/archives/*.deb /media/mmc1/debz/
might work for you but again I'm not sure that's the right mount point.
Now if you want to be sure you are getting all the debian packages, you can be sure to
# apt-get -d install foo
# cp /var/cache/apt/archives/*.deb /media/mmc1/debz/
# apt-get install foo
Hope that helps
EDIT: For people that just want a list of installed packages (that way you can just go somewhere that has free wifi access and download all the packages in one shot after reflashing)
Backup:
foo=`dpkg -l | grep ii | awk '{ print $2 }'`; echo $foo > /media/mmc1/copymesomewheresafe
Restore:
bar=`cat /media/mmc1/copymesomewheresafe`; apt-get install $bar
![]() |
2010-07-29
, 03:21
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#10
|
Can we download apps from a server etc to save on our harddrive. So when we reflash the phone we don't have to chew up extra data downloading them?
Stephen