Not sure it this is already well known, but there are many benefits to Cydia's use of Debian APT. One is that you can install packages from the command line.
I decided to upgrade my jailbroken 2.0 3G iPhone to 2.0.2 today using QuickPwn, excited that I wouldn't have to restore and reload all my media, settings, etc as with Pwnage. Unfortunately, the firmware upgrade process still deletes all non-AppStore apps and I'd rather not spend time selecting and installing all my apps/themes in Cydia after the upgrade. Instead, I just captured all installed packages from the command line (through an SSH session) using:
This makes a text file list of all APT's packages, which I copied to my laptop using SFTP. After the upgrade, I used Cydia to install SSH and made sure that all of the Cydia sources that I'd used previously were installed.Code:dpkg- l | awk '{print $2}' > installed_packages.txt
installed_packages.txt contains a header of unnecessary information, so these need to be deleted prior to copying the file back to the iPhone. Once done and copied, I just ran the following from the directory that contains the modified installed_packages.txt.
APT installed everything I had before in one sweep (it took 10 minutes or so), and all installed packages now appear in Cydia's listing under the "Manage" tab.Code:apt-get install `cat installed_packages.txt`
Just thought that others might appreciate saving some time in the upgrade process. I'm sure someone else could write an app to do this automatically, or even better, a restore feature built into Cydia.



LinkBack URL
About LinkBacks








Reply With Quote

Bookmarks