Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

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

    Reply
    Meegomonster | # 1 | 2011-09-27, 16:20 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    michaaa62 | # 2 | 2011-09-27, 19:09 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by michaaa62; 2011-09-27 at 19:19.
    The Following 4 Users Say Thank You to michaaa62 For This Useful Post:
    Alfred, algiz, don_falcone, Meegomonster

     
    Meegomonster | # 3 | 2011-09-28, 14:13 | Report

    thanks a lot! i'll give it a try & see how it goes.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MohammadAG | # 4 | 2011-09-28, 15:16 | Report

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout