You are not logged in.

#1 2026-07-20 19:15:08

Nick10N
Member
Registered: 2026-07-20
Posts: 2

Package that verifies if other packages and libraries are open source

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

#2 2026-07-20 19:40:34

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 719

Re: Package that verifies if other packages and libraries are open source

Nick10N wrote:

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

#3 2026-07-20 19:47:21

lmn
Member
Registered: 2021-05-09
Posts: 92
Website

Re: Package that verifies if other packages and libraries are open source

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

#4 2026-07-20 19:57:32

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 719

Re: Package that verifies if other packages and libraries are open source

lmn wrote:

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

#5 2026-07-20 20:01:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,989

Offline

#6 2026-07-21 01:20:58

Nick10N
Member
Registered: 2026-07-20
Posts: 2

Re: Package that verifies if other packages and libraries are open source

Thanks very much for the help! I appreciate it!


I may say that this command does not give me any output

dimich wrote:
pacman -Qi | sed -n '/^Name/{s/^.*: \(.*\)$/\1/;h}; /^Licenses/{s/^.*: \(.*\)$/\1/;x;G; s/\n/: /;p}'

Offline

#7 2026-07-21 03:01:53

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 719

Re: Package that verifies if other packages and libraries are open source

Nick10N wrote:

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

Board footer

Powered by FluxBB