Featured posts Show

Backup Cydia Apps – iPhone

I previously wrote a post on scripting the install of Cydia apps but I since found a much better way to handle the problem. Its a lot cleaner but it still doesn’t backup cydia apps data. Instead it creates a list of stuff thats been installed and makes it really easy to reinstall it all.

Step 1: Backup Cydia Apps

To do this we’re going to need to fire up the terminal and create a file to store our list. This can all be handled with one command.

dpkg --get-selections > myapps.txt

Putting this code into terminal will create a text file called “myapps.txt” which contains all the selections you’ve made in Cydia. Use an ftp client to save this file to your computer and you’re done.

Most people at this point are now going to upgrade their phone, etc.

Step 2: Restore Cydia Apps

Now you’ve got a fresh iphone with a fresh install of Cydia. You’ll need terminal and probably SSH installed first before you proceed. Once done upload your “myapps.txt”. Using terminal navigate to the directory containing that file and issue the following commands. Note: the $ at the beginning of each line is just the prompt and not part of the commands.

$dpkg --set-selections < myapps.txt
$apt-get -u dselect-upgrade
$rm /private/var/mobile/Library/Caches/com.apple.mobile.installation.plist
$killall SpringBoard

You’re all done! If you want to understand what each command does then read on.

Analysis

dpkg --set-selections < myapps.txt

This grabs everything that was selected in myapps.txt and loads it into the package manager.

apt-get -u dselect-upgrade

This basically says “upgrade all current packages and install anything thats been selected. This is what actually installs all the cydia apps.

rm /private/var/mobile/Library/Caches/com.apple.mobile.installation.plist

This step is vital. This file is basically a cache of which applications are installed. This command deletes that cache which will be automatically regenerated with all of our selections in place.

killall SpringBoard

This kills the Springboard or iphone interface. It will automatically relaunch and generate a new com.apple.mobile.installation.plist. All done!

32
Post comment as twitter logo facebook logo
Sort: Newest | Oldest

do this BEFORE doing the first sync, if you do this after SYNC your apps will dissapear.

In cydia you wanna install aptitude to get the apt-get command line stuff :)

Hey man I did everything that you wrote but after I restored it just showed my the SpringBoard blanc (All my AppStore apps were away) but after some time they appeared again but no Cydia apps were showing

Oh yeah and it also said sh: apt-get: command not found

In order for Cydia to work apt-get has to be installed. Is Cydia installed and functional?

yeah how else should i get mobile terminal and openssh?

I searched around and some people are saying that the newer firmwares don't have apt-get added to path. The suggested solution is to use Cydia to install Aptitude and Erica Utilities. After a reboot try again.

Someone said that if that doesn't work get Cydia in development mode and find the Apt console package. Good luck.
http://modmyi.com/forums/general-iphone-chat/64701...

Hey dan, I like that social bookmarking thing popping at the top on your blog. would you mind telling me how you did it.. thanks.

Gladly, it's a wordpress plugin I wrote, you can find it here http://wordpress.org/extend/plugins/active-shar...

will the backup be available when iOS4 is installed?

Assuming all the packages are upgraded to work with iOS4 and you save the backup.txt to your computer before upgrading your phone (and of course you hack it again and install cydia) then yes, it should work fine.

apt-get seems to be missing says command not found running 3.1.3 with latest cydia any ideas in terms of downloads needed. I assume a certain package needs to be installled. These "apt" like packages are installed on my iphone
apr-lib
apt7-key
apt7-lib

That's very strange. In order for cydia to work apt-get is required. Try looking around inside /etc for it.

Thanks for this, Wish I knew this a couple days ago. One question though. When I run the script to install all, what about the packages that need a reboot?

What was the name of the jail breaker that is not quick pwn?

Not gonna lie, that is pretty epic. (And why don't you just through on a shitty interface on this and sell it in Cydia again?) Truly thanks!

Trackbacks

  1. [...] Interesting read on backing up cydia apps via command line [...]

  2. [...] See the rest here: Backup Cydia Apps – iPhone | Today Was Awesome [...]

  3. Great Clips Coupons…

    [...]right here are a few hyper-links to online sites which we connect to since we believe there’re seriously worth visiting[...]…

  4. Yesturdays Arbeit für Morgen – ein Blick auf einige Beispiele…

    Beachtet dieses Beispiel, über gezeigt Megan halign an Twitter und gefunden ihm vor um zu sein sehr informativ und auch der Punkt…

  5. Yesturdays work for tomorrow – a look at some examples…

    Was shown this example, via jon McCormick on Facebook and found it to be very informative and too the point…

  6. Online Article…

    [...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…

  7. Fans Buy says:

    Check This Out…

    [...]Here are some of the sites we recommend for our visitors[...]…

  8. Fb Fans says:

    Sites We Like…

    [...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]…

  9. Olly says:

    Travail de Yesturdays pour le demain – un regard à quelques exemples…

    A été montré cet exemple, par l’intermédiaire de David hardvalder dessus linkedin et trouvé lui pour être très instructif et trop le point…

  10. Yesturdays Arbeit für Morgen – ein Blick auf einige Beispiele…

    Gerade beachtet dieses Beispiel, über gezeigt David McCormick an Twitter und stellen Sie sich es vor um zu sein sehr informativ und auch der Punkt…

  11. Het werk van Yesturdays voor morgen – een blik op sommige voorbeelden…

    Enkel opgemerkt dit voorbeeld, via arnold Messer linkedin en geloof het om te zijn uiterst informatief en ook het punt…

  12. aalii…

    wholesale pandora jewelryIf you want to look trendy and be part one of the fashion world…

  13. Related.. Trackback…

    [...]the time to read or visit the content or sites we have linked to below the[...]…

  14. Today’s Free App of the Day…

    Groupon app users using an Droid or iPad can appreciate a free one I found titled The Coupons App. Right now there is a 65% coupon at Peebles. $15 off coupon at Fred Meyer. A FREE combo meal coupon to Applebee’s and an appetizer coupon from Sbarro! ht…

  15. xxx videos says:

    … [Trackback]…

    [...] Informations on that Topic: todaywasawesome.com/backup-cydia-apps-iphone/ [...]…

  16. Sifisdndsk says:

    2011…

    Hello my friend! I wish to say that this post is awesome, nice written and include approximately all vital infos. I’d like to see more posts like this….