CyIPList

View source code.
Download deb for iPhone 5 and smaller devices.
Download deb for iPhone 6 and bigger devices.

CyIPList displays a list of Cydia installed packages. Only user installed packages and dev tools are listed, default packages are not. (Categorisation is currently in beta so some dev tools may appear under user installed.) Output is shown on screen and saved to /var/mobile/cyiplist.txt.

You will need gawk and Core Utilities (not Core Utilities (/bin)) from Cydia. grep is also used but it is a default package. Optional tools are wget and APT 0.7 Strict.

Run in Terminal as:

Options:

cyiplist       to compile a new list
cyiplist -l    to print the saved list
cyiplist -u    to update the script (requires wget)
cyiplist -h    to show the help menu
cyiplist -a    to run a variety of apt-get commands (requires APT 0.7 Strict)
cyiplist -ha   more information about -a

For the absolutely barebones version (v1.0), run

rm -f /var/mobile/cyiplist.txt
echo "$(cat /private/var/lib/dpkg/status | grep "Name:" | awk '{$1=""; print $0}')" >> /var/mobile/cyiplist.txt
sort -f "/var/mobile/cyiplist.txt" -o "/var/mobile/cyiplist.txt"
echo -e "$(cat /var/mobile/cyiplist.txt)\n\n$(cat "/var/mobile/cyiplist.txt" | wc -l) installed packages listed in /var/mobile/cyiplist.txt.\n"
rm -f /var/mobile/cyiplist_tmp

The above snippet works without APT 0.7 Strict, but previously uninstalled packages may get listed and some developer packages without a Name: header will not.

Screenshot:

Changelog:
v1.0.0
– Initial. Does not list packages without a name header.
v1.0.1
– Lists all packages. Too many packages.
– Sorted in alphabetical order.
v1.0.2
– Added cache cleaning and removal of unused packages.
– Stopped gsc.* and cy+* packages from showing up on list.
– Stopped uninstalled packages from showing up on list.
v1.1.0
– Cleaned the status file to remove “purge ok not-installed” packages.
– Fixed empty lines in list and overcounting of installed packages.
– Added option to run apt-get functions from one command (cyiplist apt-get).
Bugged.
v1.1.1
– Fixed bug introduced in v1.1.0
v1.1.2
– Found out the status file cannot be overwritten.
– Used another way to filter out the “purge ok not-installed” packages.
– Fixed empty lines in list and overcounting of installed packages.
– Added option to run apt-get functions from one command (cyiplist apt-get).
v?.?.?
– Completely neglected to update release notes.
– Added dependency check during this period, did some organisation, and other stuff.
v2.0.0
– Stopped default packages from showing up on list. Still needs work as this is done manually.
– Added categorisation of installed packages into “user installed” and “dev tools/shared libraries”.
– Modified to v2.b for iPhone 5 and smaller devices (single column output).
v2.0.1
– Tidying up and minor fixes.
v2.1.0
– Fixed dependency check on APT 0.7 Strict so it actually is optional as I said it is.
– Added an update function, help menus, and error handling.
– v2.1b for iPhone 5 and smaller devices single column output).