You are not logged in.

#1 2012-10-02 09:11:17

aliasbody
Member
From: Portugal
Registered: 2010-12-16
Posts: 156
Website

How to know the licence of a package using yaourt

Hello Everyone,

I would like to know if there is a way to show the licence of a package using yaourt (or any similar application), I would love to adapt something like this to a distributions like Parabola Gnu/Linux.

Thanks in Advance,
Luis Da Costa


Arch Linux - They see me rollin', they hatin'

Offline

#2 2012-10-02 09:47:31

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,265

Re: How to know the licence of a package using yaourt

pacman -Qi <packagename> | grep Licences

for installed packages.

Or

yaourt -Si <packagename> | grep Licences

For packages in the repositories (and AUR)

Edit: I've found a discrepancy -- with "yaourt -Si", AUR packages appear to have "Licenses" as opposed to "Licences", so watch out for that. Not sure if it's exclusive to yaourt.

To counter that, you can use

yaourt -Si <packagename> | grep "Licen[cs]es"

EDIT EDIT: Good grief this was a mangled post, hopefully it makes sense now, haha.

Last edited by WorMzy (2012-10-02 12:41:43)


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#3 2012-10-02 12:27:31

Awebb
Member
Registered: 2010-05-06
Posts: 4,319

Re: How to know the licence of a package using yaourt

It's in the PKGBUILD. Saying that you install a package from the AUR without even looking at the PKGBUILD usually confronts you with us zaelots, telling you that you should at least check the PKGBUILD for obvious problems before installing the package. You have hereby been confronted with the usual lecture.

Offline

#4 2012-10-03 20:22:20

aliasbody
Member
From: Portugal
Registered: 2010-12-16
Posts: 156
Website

Re: How to know the licence of a package using yaourt

WorMzy wrote:
pacman -Qi <packagename> | grep Licences

for installed packages.

Or

yaourt -Si <packagename> | grep Licences

For packages in the repositories (and AUR)

Edit: I've found a discrepancy -- with "yaourt -Si", AUR packages appear to have "Licenses" as opposed to "Licences", so watch out for that. Not sure if it's exclusive to yaourt.

To counter that, you can use

yaourt -Si <packagename> | grep "Licen[cs]es"

EDIT EDIT: Good grief this was a mangled post, hopefully it makes sense now, haha.

Thanks you for your help big_smile


Arch Linux - They see me rollin', they hatin'

Offline

#5 2012-10-03 20:22:53

aliasbody
Member
From: Portugal
Registered: 2010-12-16
Posts: 156
Website

Re: How to know the licence of a package using yaourt

Awebb wrote:

It's in the PKGBUILD. Saying that you install a package from the AUR without even looking at the PKGBUILD usually confronts you with us zaelots, telling you that you should at least check the PKGBUILD for obvious problems before installing the package. You have hereby been confronted with the usual lecture.

I read the PKGBUILD, but I was searching for something to use before any instalation in order to create a sort of "fork" only proposing free software.


Arch Linux - They see me rollin', they hatin'

Offline

Board footer

Powered by FluxBB