Topic: Print contents of specific apt repos
Cadged this from someone else and tweaked it a bit.
#!/bin/bash
# ~/bin/searchrepo.sh
cd /var/lib/apt/lists/
cat *$1* | grep "^Package: " | sed 's/^Package: //' | sort -uUsage - "searchrepo.sh string"
Example - "searchrepo.sh multimedia" - prints all packages contained in repos with string "multimedia" in their name.
Useful with output piped thru grep to search for specific packages.
Last edited by spoovy (2011-01-24 01:10:50)