How to get all the installed package list with there license, source url? Such as following only shows name of the package only.
$ dpkg --get-selections
acpi-support install
acpid install
adduser install
adium-theme-ubuntu install
aisleriot install
alacarte install
For example in Fedora/CentOS (RED HAT LINUX BRANCH), you can see that:
$ yum info busybox
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
Available Packages
Name : busybox
Arch : i686
Epoch : 1
Version : 1.18.2
Release : 5.fc15
Size : 615 k
Repo : updates
Summary : Statically linked binary providing simplified versions of system commands
URL : http://www.busybox.net
License : GPLv2
Description : Busybox is a single binary which includes versions of a large number
: of system commands, including a shell. This package can be very
: useful for recovering from certain types of system failures,
: particularly those involving broken shared libraries.
Follow up:
/var/lib/apt/lists$ ls
extras.ubuntu.com_ubuntu_dists_natty_main_binary-amd64_Packages
extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources
extras.ubuntu.com_ubuntu_dists_natty_Release
extras.ubuntu.com_ubuntu_dists_natty_Release.gpg
lock
partial
security.ubuntu.com_ubuntu_dists_natty-security_main_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_Release
security.ubuntu.com_ubuntu_dists_natty-security_Release.gpg
security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_main_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_Release
us.archive.ubuntu.com_ubuntu_dists_natty_Release.gpg
us.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_Release
us.archive.ubuntu.com_ubuntu_dists_natty-updates_Release.gpg
us.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources
/var/lib/apt/lists. That information can be queried. Other informaton is package specific. Once installed, there is a common location (mentioned above). for documentation – Portablejim Dec 17 '11 at 11:23Homepageis not a required field in the package information so not all packages have it. There is no widely accepted standard format for copyright yet (DEP5 is at the candidate stage and not widely followed yet). You could try writing a parser to scan the copyright files and figure out what license the package is released under, but that will not be a simple task. – Blair Dec 18 '11 at 03:00yum infocommand, retrieve the license field and save it back to the file. Obviously there will be a number of misses (i.e., packages with different names/versions in their names and those which Fedora doesn't provide) but it could provide a reasonable starting point. If Fedora has a suitable online package list that could be used to get the details instead. – Blair Dec 18 '11 at 03:036tunnelis in the community repo whilea2psis in the extra repo andlinux-firmwareis in the core repo), and for different architectures (a2psis i686 whilelinux-firmwareis any, i.e., architecture-independent). There will still be misses, e.g., ArchLinux doesn't havelinux-headers-generic. – Blair Dec 18 '11 at 10:11/var/lib/apt/lists) you might be able to achieve the same thing without having to scrape the ArchLinux website... – Blair Dec 18 '11 at 10:14