0

I need to create a table with all installable packages on first column and its license in the second.

e.g.:

  • Gedit | GPL
1
  • Installable? Installed?
    – user85164
    May 2, 2013 at 10:07

1 Answer 1

1

Apt doesn't really support licencing queries like that but you always try aptitude -F "%p %s" search "?not(?installed)" That will tell you what section of the repository it's in.

There is also

packages=dpkg --get-selections | awk '{ print $1 }'
for package in $packages; do echo "$package: "; cat /usr/share/doc/$package/copyright;echo ""; echo ""; done > ~/licenses.txt

From This Question

Not the answer you're looking for? Browse other questions tagged .