maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   (Help!)Backing up applications into a .deb file (https://talk.maemo.org/showthread.php?t=77956)

Meegomonster 2011-09-27 16:20

(Help!)Backing up applications into a .deb file
 
Hi.
Is it possible to backup our current applications separately in the .deb format so that we don't have to keep downloading them after a format?

I don't mean backing up the whole OS image, just the apps.

I saw a similar thread but the method used didn't work for me.

Any input is appreciated.

michaaa62 2011-09-27 19:09

Re: (Help!)Backing up applications into a .deb file
 
Edit: I am not quite sure what you are trying to do.

EITHER install dpkg-repack
Code:

apt-get update && apt-get install dpkg-repack
to get your applications converted to .deb files. You have to know the exact name of the package to repackage it. Do not forget the hundreds of dependency libs that are necessary to rebuilt the OS.

OR
To get a list of all the packages installed
Code:

dpkg -l|awk '/^ii/{ print $2 }' > apps_installed.txt
To download the packages into /var/cache/apt/archives aka. /opt/var/cache/apt/archives
Code:

apt-get update && apt-get install -dy --reinstall --force-yes$(<apps_installed.txt)
Save this directory to some place. To install later, change into this directory
Code:

dpkg *.deb
There will be a couple of missing dependency errors, but after a dozen or so runs the command will get it sorted out. Those extra commands also try to sort out problems
Code:

dpkg--configure -a
and if things get not sorted you need an internet connection to do
Code:

apt-get install -f

Meegomonster 2011-09-28 14:13

Re: (Help!)Backing up applications into a .deb file
 
thanks a lot! i'll give it a try & see how it goes. :)

MohammadAG 2011-09-28 15:16

Re: (Help!)Backing up applications into a .deb file
 
Code:

maemo-list-user-packages | awk '{print $1}' | xargs  > apps_installed.txt
might be a bit more useful if you only need user/ packages :)


All times are GMT. The time now is 02:06.

vBulletin® Version 3.8.8