Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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


  • Gedit | GPL
share|improve this question

marked as duplicate by Mitch, Eric Carvalho, Thomas Ward, Luis Alvarado May 2 '13 at 14:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Installable? Installed? – user85164 May 2 '13 at 10:07
up vote 1 down vote accepted

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.