Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

e.g.:

  • Gedit | GPL
share|improve this question
    
Installable? Installed? –  user85164 May 2 '13 at 10:07
add comment

marked as duplicate by Mitch, Eric Carvalho, Thomas W., 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.

1 Answer

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
add comment

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