You are not logged in.
Hello, i have been searching for a package that can verify if the installed packages and libraries are licensed under open source and free software distribution guidelines licenses. I have been asking myself if something like this exist as Arch linux, by default, doesnt necessarily comply with GNU guidelines. Do you know if that exists?
Offline
if the installed packages and libraries are licensed under open source and free software distribution guidelines licenses.
If I understand question correctly,
$ expac "%n: %L"Offline
You can inspect the licenses with pacman
LC_ALL=C pacman -Qi | awk '/^Name/{name=$3} /^License/ {print name "\t" $3}'Then you can filter your packages accordingly. The GNU project has comments on a lot of licenses.
Edit: Added external link.
Last edited by lmn (2026-07-20 19:49:36)
Offline
LC_ALL=C pacman -Qi | awk '/^Name/{name=$3} /^License/ {print name "\t" $3}'
This will print only first word of licenses in the list.
Variant with sed prints full licenses list:
pacman -Qi | sed -n '/^Name/{s/^.*: \(.*\)$/\1/;h}; /^Licenses/{s/^.*: \(.*\)$/\1/;x;G; s/\n/: /;p}'Last edited by dimich (2026-07-20 19:58:08)
Offline
Offline
Thanks very much for the help! I appreciate it!
I may say that this command does not give me any output
pacman -Qi | sed -n '/^Name/{s/^.*: \(.*\)$/\1/;h}; /^Licenses/{s/^.*: \(.*\)$/\1/;x;G; s/\n/: /;p}'
Offline
I may say that this command does not give me any output
pacman -Qi | sed -n '/^Name/{s/^.*: \(.*\)$/\1/;h}; /^Licenses/{s/^.*: \(.*\)$/\1/;x;G; s/\n/: /;p}'
Probably because of localization.
LC_ALL=C pacman ...should work.
Offline