|
|||||||||
|
|||||||||
|
|
|
|||||||
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
|||
|
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: 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. 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. |
| Sponsored links Remove advertisements | |
|
|
|
|
|
||||
|
The script can be enhanced
Backup list of installed packages before firmware upgrade Code:
dpkg -l | grep ^ii | awk '{print $2}' > installed_packages.txt
Code:
dpkg -l | grep ^ii | awk '{print $2}' > installed_packages_afterupgrade.txt
diff installed_packages_afterupgrade.txt installed_packages.txt | grep ^\> | awk '{print $2}' > difference_installed_packages.txt
Code:
apt-get install `cat difference_installed_packages.txt` Last edited by javacom; 08-28-2008 at 01:28 AM. |
|
|||
|
I was able to get the .txt no problem but evertime I ran apt-get install after it would give me a error saying the .txt couldn't be found but it was in the same directory I was issuing the command
|
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
there is a gui for Mac called iBaReS
I just used it, and it is very very fast to make backups that include Installer and Cydia and AppStore apps http://www.hackint0sh.org/forum/showthread.php?t=48881 |
|
|||
|
@Rello: Did you use this script and apt-get to reload the apps or did you use iBares from the link jon_slider included?? Because I tried it and got the .txt file ok but apt-get install would not see my .txt as I will in the same directory as it.
Last edited by alpineflip; 08-27-2008 at 11:17 PM. |
| Sponsored links Remove advertisements | |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.hackint0sh.org/f126/50173.htm
|
||||
| Posted By | For | Type | Date | |
| If I upgrade to 2.2, will i lose all my cydia apps? - Mac Forums | This thread | Refback | 01-14-2009 07:23 PM | |
|
|