You are not logged in.

#1 2014-04-11 23:18:46

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

pacman auto key import

Is there some flag to pacman by which pacman will automatically import new gpg keys that are needed?
Or a way to determine, prior to running pacman upgrade, that new keys need to be imported, and do that as a separate command?
I'd like to script something and my script just bailed out on me with any unexpected "downloading required keys...
:: Import PGP key ... [Y/n] Y"

Offline

#2 2014-04-11 23:22:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: pacman auto key import

Maybe use pacman-key first?

Offline

#3 2014-04-11 23:34:35

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

Re: pacman auto key import

Is that what you mean?
# pacman-key --refresh-keys
(never have used pacman-key directly)

Offline

#4 2014-04-12 00:47:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: pacman auto key import

Pretty sure that is the one.  It has been a while since I hvae needed it though, so I don't recall if there is a confirmation dialog or not.  Typically the archlinux-keyring package will have everything you need.  There has been exceptions of course, but for the most part it works just fine as is.

Offline

#5 2014-04-12 01:17:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: pacman auto key import

You can configure /etc/pacman.d/gnupg/gpg.conf to automatically download the keys.

Offline

#6 2014-04-12 07:56:11

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: pacman auto key import

I'd just run

# pacman -Sy archlinux-keyring
# pacman -Su

and everything will be fine.

Offline

Board footer

Powered by FluxBB