List of licenses of Debian components [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI'm looking for a list of all components in the Debian distribution (specifically Lenny) with indication of their respective l开发者_如何学JAVAicense (GPL, LGPL etc.), where might one find such a list?
Every Debian package contains the copyright and license information in the /usr/share/doc/$PACKAGENAME/copyright
file. Unfortunately, there is no format specified for the file, so you'll need to do a lot of manual work, or a lot of guessing baśed on pattern matching, to figure out what the licenses are for a package.
There is work going on to specify a format for this. See DEP5.
Edit: DEP5 is now formalized as http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ but it's still an optional format, and not every package uses it.
The Debian package list is available here. I think that parsing this list, and using a little xpath magic, you can find for each package its license.
精彩评论