[CentOS] Licences

Wed Dec 7 16:52:46 UTC 2005
Will McDonald <wmcdonald at gmail.com>

>        I'm looking for a way to determine the licenses of packages we're using.
>
>        Is there a command (rpm, yum, up2date...) that will take the package
> name as argument and return me the licence?
>
>        Or is everything included with Centos 4 GPL?  That is the only licence
> I found in the repositories...  I remember that RH had the habit of
> putting all the applicable licences on the distros' CD.

rpm -qai | grep -E '^Name|License:'

Will.