You are not logged in.

#1 2022-06-25 17:50:54

jlindgren
Member
Registered: 2011-02-27
Posts: 256

[SOLVED] List unsigned or locally-built packages with pacman

Is there an easy way to list unsigned (typically locally-built) packages with pacman?

I know that I can run "pacman -Qi" and manually search through the list for "Validated by : None", but I am hoping to find an easy way to list only those packages.

There was an old thread from 2013 [1] that suggested "pacman -Qm", but this doesn't quite do what I am looking for.  Specifically, if there is a (signed) package "foo" in the official repositories, but I have built and installed a local (unsigned) package of the same name, it isn't listed by "pacman -Qm".

[1] https://bbs.archlinux.org/viewtopic.php?id=159982

(edit: typo)

Last edited by jlindgren (2022-06-25 18:15:57)

Offline

#2 2022-06-25 18:10:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: [SOLVED] List unsigned or locally-built packages with pacman

sed -n '/%NAME%/{n;h};/%VALIDATION%/{n;/none/{x;p}}' /var/lib/pacman/local/*/desc

Last edited by Trilby (2022-06-25 18:12:03)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2022-06-25 18:15:40

jlindgren
Member
Registered: 2011-02-27
Posts: 256

Re: [SOLVED] List unsigned or locally-built packages with pacman

Slick! Thanks.

Offline

Board footer

Powered by FluxBB