I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that?
dpkg --list
lists all files or just the filename.
I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that?
dpkg --list
lists all files or just the filename.
Find the relevant file in
/var/lib/apt/lists/
ending inPackages
, and perform this command:By the way, my
extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
is empty.EDIT
You could also parse
apt-cache
output. This script lists all packages with server and repo information:Sorting conveniently the output you can get the infos you're looking for.
I would just check directly on the server-side, like that:
I made a terrible script for that:
Something like this Python script should find all packages installed on your machine from that site (see this answer for the script that shows all non-Ubuntu packages):