Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jeremy1026

macrumors 68020
Original poster
Nov 3, 2007
2,215
1,029
I have had to restore my iPhone recently, which means I lost all of my Installer Sources. I started to re-add them via Installer, but it was taking so much time I looked into a way to do it on my computer. After a bit of searching through the file structures I figured out a way. This can be done on both a Mac and a PC.

What you will need:
An iPhone or iPod Touch with any firmware
It must be Jail-broken
A Mac or PC

What I recommend you have, but not required:
A .plist editor

What to do:
1. Install OpenSSH on your iPhone(iPod Touch) via Installer
2. SSH into your iPhone using your favorite FTP client
3. Navigate to "/var/mobile/Library/Installer"
4. In that folder there will be multiple .plist files, download "PackageSources.plist"
5. Open the .plist file and add in the new sources you want to add
6. Send the file back to your iPhone(iPod Touch)
7. Open Installer.app
8. Refresh your sources, and you they are good to go!
 
Thanks for the guide. :) Could come in handy.

I wish Cydia or Installer.app had some way of saving some kind of APT state file that could be used to restore all the apps you had before you restored your iPhone....
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.