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?
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,
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
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.
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@centos.org http://lists.centos.org/mailman/listinfo/centos
-Connie Sieh
Feizhou wrote:
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"
Thanks Connie.
Thanks all. A lot easier this way, :)
Ugo Bellavance wrote:
Hi, I'm looking for a way to determine the licenses of packages we're using.
Really quick hack (haven't checked it myself, might be rather ugly):
for i in `rpm -qa`; do echo $i; rpm -qi $i | grep -i license; done
Am Mi, den 07.12.2005 schrieb Ugo Bellavance um 17:25:
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 -q --qf '%{LICENSE}' <packagename>
rpm -qa --qf '%{NAME} is licensed under %{LICENSE}\n' | sort
Alexander
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.