Aug 28

I found a nice user entry on a german iPhone forum giving some examples how to quickly restore all Cydia applications after a full iPhone firmware upgrade or a restore. No more searching around in Cydia for all the packages you had installed before. A few preparational steps and you could save a lot of time later on.

Create and backup a list of all your Cydia installed packages:

(1) Login via SSH into your iPhone (check old posts to know how to do that)

(2) Create a list of all your via Cydia installed packages by using this command:
dpkg -l | grep ^ii | awk '{print $2}' > /private/var/mobile/Media/installed.txt

(3) Copy the file “installed.txt” to your computer using SFTP or e.g. DiskAid.

Thats it. Now you can safely resotre or upgrade you phone. Make sure, Cydia is installed by using QuckPwn or PwnageTool.

Re-install all packages:

(1) Make sure you install OpenSSH with Cydia. Open Cydia, search for the OpenSSH package and install it. Then install all Repositories you had installed before: Open Cydia, go to “Sections” and open up “Repositories” and choose all you used before. Otherwise Cydia will not find all packages to restore.

(2) Copy the file “installed.txt” back to your device using using SFTP or DiskAid.

(3) Login into your iPhone using root:

ssh -l root (IP-number of your iPhone)

(4) This was edited and updated, so only new packages will be installed. Enter:
dpkg -l | grep ^ii | awk '{print $2}' > /private/var/mobile/Media/installed-new.txt
then
diff /private/var/mobile/Media/installed-new.txt /private/var/mobile/Media/installed.txt | grep ^\> | awk '{print $2}' > /private/var/mobile/Media/installed-todo.txt
then
apt-get install `cat /private/var/mobile/Media/installed-todo.txt`

(5) You will not see all installed applications, because the iPhone did not re-spring. So the easiest solution would be a “reboot” –> reboot now!

That should be all :)

written by TwiPhone \\ tags: , , , ,

5 Pings to “How to re-install all your Cydia packages in one run (after an upgrade or restore) – updated”

  1. iPhone4World » Blog Archive » How to re-install all your Cydia packages in one run (after an upgrade or restore) Says:

    [...] Another examples how to quickly restore all Cydia applications after a full iPhone firmware upgrade or a restore. A few preparational steps and you could save a lot of time later on.Guide taken from twiphone.com. [...]

  2. hopelessly.addicted » Blog Archive » How to restore Cydia apps Says:

    [...] http://www.twiphone.com/2008/08/28/how-to-re-install-all-your-cydia-packages-in-one-run-after-an-upg... [...]

  3. salvare ci Says:

    [...] So the easiest solution would be a

  4. salvare tutte le repo per non reinserirle dopo un ripristino? - iPhone Italia Forum Says:

    [...] tutte le repo per non reinserirle dopo un ripristino? dal momento che seguendo questo fantastico metodo non ho troppi sbattimenti dopo un ripristino, vorrei sapere se anche la prima [...]

  5. How to reinstall all you Cydia App in one run « Airborn’s Bla-Bla-uri Says:

    [...] How to reinstall all you Cydia App in one run Detalii aici [...]


17 Responses to “How to re-install all your Cydia packages in one run (after an upgrade or restore) – updated”

  1. 1. amgupt01 Says:

    I wish I read this before I restored!

    This is pretty awesome.

  2. 2. ML Says:

    Perhaps you can now read on a French or Dutch forum how to save the Sprinboard’s icons positioning? :)

  3. 3. twiphone Says:

    ML,

    thats a big question as well. So far no solution from my side since I am not sure if it is saved in the SpringBoard preferences or at some other point. I will have a look at it soon but I cannot promise you a quick response. So far I got screenshots of my SpringBoard and I re-arrange everything manually …

  4. 4. qupid26 Says:

    Tried to do ths n it seems I am running into a little problem. After running th last command it keeps going to th screen saying host has not answered. I dnt kno why n wld really appreciate th help. Thnx

  5. 5. twiphone.com Says:

    quipid, are talking about the restore? or the backup procedure?

  6. 6. leomonkeyguru Says:

    Same here with WinSCP and terminal window during restore…

  7. 7. TwiPhone Says:

    Ok. This tutorial show how to do a full backup of your phone. You will find all data files, all app files and all settings. But this will not restore since the moment you start the resorre there are quite a few files already n use by the running iPhone. So -no full restore- But you could use this to restore parts of your phone.

    I urge you to use the new iTunes 8 backup/restore with Firmware 2.1. It worked for me (no problems at all.)

    To restore your Cydia applications you should install an application called “APTBACKUP”, then backup you Cydia Application list. Then do a iTunes backup. After the iTunes restore re-install “APTBACKUP” and run the Cydia restore. I will probably write a small post about this in 2 days.

    Check here:
    http://iphone.sleepers.net/moreinfo/AptBackup.php

  8. 8. leomonkeyguru Says:

    forget my previous post: GREAT THING! it worked!!! :D
    but… I’ve only executed (in order to test it) on iPhone this:
    dpkg -l | grep ^ii | awk ‘{print $2}’ > /private/var/mobile/Media/installed.txt
    then I copied on iPod the installed.txt file and I executed this on iPod
    apt-get install `cat /private/var/mobile/Media/installed.txt`
    Now I’ve got my iPod with a lot of iPhone thing that I don’t need but… GREAT THING!!! IT WOOOOOOOOOOOOORKED!!! :D

  9. 9. TwiPhone Says:

    :) great. and forget my post before – i was referring that to another blog entry ;) anyway – you can still try “aptbackup” as I mentioned before. I guess its doing roughly the same thing. But with a clean UI.

  10. 10. leomonkeyguru Says:

    mmm I prefer to see what it is doing… and, also, if I’m not wrong, you can use aptbackup only after a restore.
    I used your method after a restore, but after, also, some time of use of ipod :D

  11. 11. Tler Says:

    I can’t get the first command, step 4 of part 2, to work…
    Does anyone know why? thanks

  12. 12. twiphone Says:

    Make sure its all in one line :)

  13. 13. Tler Says:

    I checked, it was all one line.
    My firmware is 2.2.1 that’s I’m trying to fix…Does that mean anything?

  14. 14. leetsnail Says:

    Hi,

    I dont have wifi i am connecting thru usb cable and use i-FunBox similar to DiskAid to access files on the iphone.

    I have isntalled MobileTermninal, can i use it to create the installed list?
    I’m having trouble using this because i dont know what to hit after typing all this in there: dpkg -l | grep ^ii | awk ‘{print $2}’ > /private/var/mobile/Media/installed.txt

    thanks

  15. 15. help me Says:

    hey, i got everything up until “Login into your iPhone using root:

    ssh -l root (IP-number of your iPhone)” what does that mean? how do i do that?? i am already logged into mobile terminal as my login (which i had previously changed the password on) so do i have to log out of that? if so, HOW do i log out?? HELP PLEASE. Thanks.

  16. 16. TwiPhone Says:

    quite easy: You should login from yoir Computers Terminal, not from your iPhone. So open up “Terminal” on your Mac – or use “Putty” on your Windows PC (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html).

    Make sure you know the IP-adress of your phone – it has to be connected to your WifFi network. If you do not know how to find it, use Bonjour Brwoser on a Mac (http://www.tildesoft.com/Programs.html) – it will show you your iPhones IP adress, it should normaly read something like 192.168.x.x or 10.1.x.x (4 numbers divided by points)

    then you use this number to login into your iPhone:

    ssh -l root 192.168.x.x (or any other IP number your iPhone is using)

  17. 17. Car radio install Says:

    i know i have seen this, but i cannot current find a link i opologize. but there is a product that works like this. your antenna plugs into a device that then plugs into a wall outlet. then at any other wall outlet, you plug in a paired device with a filter to recieve that signal. essentially using your house wiring as the cable.

Leave a Reply

TwiPhone.com is Digg proof thanks to caching by WP Super Cache