[CentOS] Licences

Wed Dec 7 16:37:04 UTC 2005
Connie Sieh <csieh at fnal.gov>

On Thu, 8 Dec 2005, Feizhou wrote:

> Ugo Bellavance wrote:
> > Hi,
> > 
> >     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?
> 
> rpm -qi packagename

And if you want to see just the name and the license 

  rpm -q --queryformat "%{name}\t%{license}\n" packagename

And if you want to see it for everything installed

  rpm -qa --queryformat "%{name}\t%{license}\n"

> 
> Look for what comes after License:
> > 
> >     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.
> > 
> > Thanks,
> 
> Not everything is GPL.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
-Connie Sieh