iPhone World

A faster way to install Cydia applications

by Vaelek on Jul.19, 2009, under Tips & Tricks

First of all, Cydia is awesome, no question about that. But if you have anything but a 3GS, it can be painfully slow to load and that can be a deterrent for keeping things updated. Let’s have a look at a much faster way. Enter Apt.

You will need SSH enabled on your iPhone/iTouch to begin with. If you do not, you must install OpenSSH from Cydia and probably the SSH Toggle for SBSettings. Also you’ll need to install Apt from Cydia. Look for ‘Apt 0.7 Strict’.

Now go ahead and SSH into your device. Be aware that you cannot use the apt tools while Cydia is running. The commands you will use the most frequently are as follows:

  • apt-get update
    • Updates the repositories. Equivalent to refreshing in Cydia.
  • apt-get upgrade
    • Installs any updates available.
  • apt-cache search <search string>
    • Search the repositories
  • apt-get install <packagename>
    • Install a package. If there are dependencies, you will be prompted to continue.
  • apt-get remove <packagename>
    • Uninstall a package
  • dpkg –l
    • Lists all installed packages
  • respring
    • Respring your device from the command line

A couple of things to note is that for install and remove, you can list multiple packages separated by a space. When searching, the beginning of each line is the package name. Sometimes it will be a single word, though usually it will follow the patter com.companyname.appname. 

Even if you only ever plan on using Cydia for managing your packages, I would highly recommend installing Apt (along with syslog). Ever installed something that really screwed your phone? Ever been stuck in a reboot or respring loop? I know I have, and it’s no fun. What option do you have other than restoring? Well, if you’ve got Apt at your disposal you can connect via SSH and remove the offending package if you know what it is. Otherwise you can do the old ‘tail –f /var/log/syslog’ and watch for clues as to the which app is responsible.

Somebody please correct me if I’m wrong, but as far as I can tell, there is no difference in using apt vs Cydia other than having to manually respring or reboot as Cydia is able to detect which if either is necessary.

7 comments for this entry:

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

  1. allen

    i'll give it a try, i would like to remove packages without having to connect to cydia so i can upgrade cracked cydia packages.

  2. Steve Stonebraker

    fuck yeah dude! You are the shit! Thank you for this info, apt-get is now working!

  3. satishiphone

    Also you’ll need to install Apt from Cydia. Look for ‘Apt 0.7 Strict’.
    i am not able to find Apt 0.7 Strict can please tell me which package should i add?

  4. Vaelek

    If you search for 'strict' it will be right at the top

  5. cheeto81

    i searched for "strict" and it is not in the list at all

  6. Vaelek

    Nice find :) My filter level has been set to hacker since day one and I always forget others may not have it set.

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...