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.
aptcommand linedpkg
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.
Best Answer
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.