Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > Free Toolchain Software

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-23-2008, 08:10 PM
lh99
Status: Offline
Member
 
Join Date: Aug 2007
Posts: 54
Rep Power: 6
lh99 is on a distinguished road
Default Quickly reload all Cydia installed apps after upgrade/restore

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
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.

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`
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.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-24-2008, 01:36 AM
reycat
Status: Offline
Member
 
Join Date: Sep 2007
Posts: 46
Rep Power: 0
reycat is on a distinguished road
Default

Thanks a lot, lh99.

I had been wondering how to do this. I've been looking for info about custom payloads for Pwnage, but I like this better 'cause it also works with QuickPwn.

Thank you again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-24-2008, 03:39 AM
lordofdaflies's Avatar
lordofdaflies
Status: Offline
Respected Member
 
Join Date: Dec 2007
Location: INDIA
Posts: 1,097
Rep Power: 69
lordofdaflies is a jewel in the roughlordofdaflies is a jewel in the roughlordofdaflies is a jewel in the rough
Default

Could u give us a tutorial for dummies.......and more info on what has to be deleted from the txt file and where do u place the text file back, etc

PS - NICE this makes life so much better
__________________
:iphone: iPhone 8GB 1.0.2 OTB --> 2.1 Pwnage Tool
MacBook Pro OS X SNOW Leopard and Sony Vaio Windows XP :hack:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 08-24-2008, 04:21 AM
javacom's Avatar
javacom
Status: Offline
Developer
 
Join Date: Mar 2008
Posts: 304
Rep Power: 23
javacom will become famous soon enoughjavacom will become famous soon enough
Default

The script can be enhanced

Backup list of installed packages before firmware upgrade
Code:
dpkg -l | grep ^ii | awk '{print $2}' > installed_packages.txt
Retrieve and create a list of differences in the installed packages after firmware upgrade
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
Install the differences in iPhone
Code:
apt-get install `cat difference_installed_packages.txt`

Last edited by javacom; 08-28-2008 at 01:28 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 08-26-2008, 02:24 AM
netuser
Status: Offline
Member
 
Join Date: Nov 2007
Posts: 98
Rep Power: 7
netuser is on a distinguished road
Default

will e great if anyone make a gui application to do that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 08-26-2008, 05:32 PM
alpineflip
Status: Offline
Senior Member
 
Join Date: Aug 2007
Posts: 113
Rep Power: 9
alpineflip is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 08-27-2008, 04:21 AM
jon_slider
Status: Offline
Senior Member
 
Join Date: Sep 2007
Posts: 373
Rep Power: 23
jon_slider will become famous soon enough
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 08-27-2008, 07:58 PM
Rello
Status: Offline
Supporter
 
Join Date: Aug 2007
Posts: 162
Rep Power: 11
Rello is on a distinguished road
Default

This is SO COOL

I just restored my Cydia packages like nothing.
definately very smooth process
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 08-27-2008, 09:20 PM
alpineflip
Status: Offline
Senior Member
 
Join Date: Aug 2007
Posts: 113
Rep Power: 9
alpineflip is on a distinguished road
Default

@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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 08-28-2008, 04:19 PM
teefix
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 6
Rep Power: 0
teefix is on a distinguished road
Default

Hi all

I tried this and it failed. In which path do i have to execute this command?

thank you
teefix
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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



All times are GMT +2. The time now is 09:46 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105