You are not logged in.
Hi,
is there any possibility to see if a package is released under a nonfree licence like the ati-fglrx driver or so?
In contrast to other distributions arch has no nonfree repository. But I also couldn't find some flag or something like that telling me that a package is not free.
Offline
$ pacman -Qi flashplugin | grep Licenses
Licenses : customThis might be a starting point for a script ![]()
Offline
Thanks for the hint! I wrote a little script to give the infos:
#!/usr/bin/env ruby
$VERBOSE=true
puts
puts ' nonfree,unknown or insufficent tagged packages'
puts
free_licences = ['GPL','LGPL','GPL2','LGPL2','GPL3','LGPL3','MIT','BSD','MPL','FDL','WTFPL','zlib','PerlArtistic','vim','ISC']
packagelist = %x[pacman -Qqe].split("\n")
count = 0
packagelist.each do |package|
package_hash={:name=>'',:licence=>''}
nonfree = false
%x[pacman -Qi #{package}].each_line do |line|
case line
when /^Name\s+:\s/: package_hash[:name] = $'.chomp.rstrip
when /^Li\w+\s+:\s/
package_hash[:licence] = $'.chomp.rstrip
licences = package_hash[:licence].split.map {|x| x.split('/')}
licences.flatten.each do |lic|
nonfree = true if not free_licences.include?(lic.sub(/^custom:/,'').chomp.rstrip)
end
end
end
if nonfree == true
count+=1
printf(" %s",package_hash[:name])
0.upto(20-package_hash[:name].length) {printf(' ')}
printf("%s\n",package_hash[:licence])
end
end
puts
puts "number of all installed packages : #{packagelist.size}"
puts "number of eventually nonfree packages: #{count} (#{count*100/packagelist.size}%)"It seems that many packages are insufficent tagged:
nonfree,unknown or insufficent tagged packages
artwiz-fonts Nichts
bzip2 custom
catalyst custom
codecs Nichts
conky custom
db custom
e17-icons Unknown
elitaire-svn custom
erlang custom
eterm custom
ewl-svn custom
file custom
flashplugin custom
flex custom
gen-init-cpio custom:none
gnuplot custom
iwlwifi-3945-ucode custom
licenses custom:none
mplayer-all-skins unknown
openssh custom
popt custom
pwgen Nichts
shadow custom
strace custom
sudo custom
tango-icon-theme CCPL-Attribution-ShareAlike-2.5
tcp_wrappers custom
ttf-dejavu custom
ttf-ms-fonts custom:microsoft
tvbrowser GPL LGPL BSD CCPL:by-sa APACHE
ubuntulooks Nichts
unrar custom
unzip custom
virtualbox-ose GPL custom
xf86-input-evdev custom
xf86-input-keyboard custom
xf86-input-mouse custom
xf86-input-synaptics custom
xf86-video-vesa custom
xorg-fonts-100dpi Nichts
xorg-fonts-75dpi Nichts
xorg-res-utils Nichts
xorg-server custom
xorg-twm Nichts
xterm Nichts
zsh custom
number of all installed packages : 271
number of eventually nonfree packages: 46 (17%)What do you guys think about giving nonfree packages a special tag/mark to recognize them?
Last edited by Rorschach (2009-03-03 17:18:48)
Offline
This has been discussed before, I can't remember if here or on the MLs. You may want to start with a search to see what the response was, if I could remember I'd tell you.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline