Page 1 of 5 12345 LastLast
Results 1 to 10 of 47
Discuss Quickly reload all Cydia installed apps after upgrade/restore at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Not sure it this is already well known, but there are many benefits to Cydia's ...
  1. #1
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    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.



  2. #2
    Advanced Array

    Join Date
    Sep 2007
    Posts
    47
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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

  3. #3
    Board Hero Array lordofdaflies's Avatar

    Join Date
    Dec 2007
    Location
    INDIA
    Posts
    1,134
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    76

    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
    MacBook Pro OS X SNOW Leopard
    iPhone 4 16GB iOS 4.2
    iPad WiFi 64GB iOS 4.2
    BlackBerry Curve 3G (9300)

  4. #4
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    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.

  5. #5
    Professional Array

    Join Date
    Nov 2007
    Posts
    98
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    will e great if anyone make a gui application to do that


  6. #6
    Senior Professional Array

    Join Date
    Aug 2007
    Posts
    134
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    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

  7. #7
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    381
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    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

  8. #8
    Supporter Array

    Join Date
    Aug 2007
    Posts
    164
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    This is SO COOL

    I just restored my Cydia packages like nothing.
    definately very smooth process

  9. #9
    Senior Professional Array

    Join Date
    Aug 2007
    Posts
    134
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    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.

  10. #10
    Newbie Array

    Join Date
    Jan 2008
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hi all

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

    thank you
    teefix


 

 
Page 1 of 5 12345 LastLast

Similar Threads

  1. [2.0][2G] Icons of installed apps through Cydia don't appear on Springboard
    By andreip in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 09-08-2008, 11:47 PM
  2. Replies: 6
    Last Post: 08-09-2008, 01:35 PM
  3. Replies: 7
    Last Post: 06-15-2008, 02:30 AM
  4. Replies: 3
    Last Post: 02-29-2008, 04:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:51 AM.
twitter, follow us!