Jailbreaking iPhone: Using apt-get on iPhone

After jail-breaking your iPhone, you can install CyDelete from Cydia. This also brings you apt-get and apt-cache.