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
5 Pings to “How to re-install all your Cydia packages in one run (after an upgrade or restore) – updated”
17 Responses to “How to re-install all your Cydia packages in one run (after an upgrade or restore) – updated”
-
1. amgupt01 Says:
August 29th, 2008 at 12:36 amI wish I read this before I restored!
This is pretty awesome.
-
2. ML Says:
September 4th, 2008 at 2:22 amPerhaps you can now read on a French or Dutch forum how to save the Sprinboard’s icons positioning?
-
3. twiphone Says:
September 5th, 2008 at 9:29 amML,
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. qupid26 Says:
September 7th, 2008 at 11:44 amTried 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. twiphone.com Says:
September 8th, 2008 at 7:24 pmquipid, are talking about the restore? or the backup procedure?
-
6. leomonkeyguru Says:
September 17th, 2008 at 11:11 amSame here with WinSCP and terminal window during restore…
-
7. TwiPhone Says:
September 17th, 2008 at 2:35 pmOk. 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. leomonkeyguru Says:
September 17th, 2008 at 4:09 pmforget my previous post: GREAT THING! it worked!!!

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!!!
-
9. TwiPhone Says:
September 17th, 2008 at 4:40 pm
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. leomonkeyguru Says:
September 18th, 2008 at 7:55 pmmmm 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
-
11. Tler Says:
March 15th, 2009 at 7:54 pmI can’t get the first command, step 4 of part 2, to work…
Does anyone know why? thanks -
12. twiphone Says:
March 15th, 2009 at 7:56 pmMake sure its all in one line
-
13. Tler Says:
March 15th, 2009 at 8:55 pmI checked, it was all one line.
My firmware is 2.2.1 that’s I’m trying to fix…Does that mean anything? -
14. leetsnail Says:
August 21st, 2009 at 5:52 amHi,
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.txtthanks
-
15. help me Says:
October 11th, 2009 at 7:34 amhey, 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. TwiPhone Says:
October 11th, 2009 at 9:28 amquite 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. Car radio install Says:
June 14th, 2010 at 12:50 pmi 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.

August 29th, 2008 at 12:10 am
[...] 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. [...]
September 1st, 2008 at 4:08 am
[...] http://www.twiphone.com/2008/08/28/how-to-re-install-all-your-cydia-packages-in-one-run-after-an-upg... [...]
September 15th, 2008 at 3:19 pm
[...] So the easiest solution would be a
October 4th, 2008 at 12:35 pm
[...] 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 [...]
June 23rd, 2009 at 1:27 pm
[...] How to reinstall all you Cydia App in one run Detalii aici [...]