You are not logged in.

#1 2014-07-24 11:52:59

anorax
Member
Registered: 2014-06-16
Posts: 14

Why don't I have to run pacman-key --init after installing Arch?

Hi,

when trying ArchBang I noticed that it's neccessary to create a new keyring and master key for pacman via pacman-key --init and pacman-key --populate. But I never had to do this when setting up a new Arch system (just Arch itself, no bang). Is it done automatically or has it already been done for the live image I boot from for installing? If so, what advantages could there be of NOT doing so like the ArchBang distributors aparrently have?

BTW: If this has already been answered elsewhere, I'v not been able to find it via Forum search or Google. In that case: Sorry smile And could you please give me the link?

Greetings

Offline

#2 2014-07-24 12:32:29

czubek
Banned
Registered: 2012-03-08
Posts: 141

Re: Why don't I have to run pacman-key --init after installing Arch?

I recently re-installed Arch and recall seeing the instructions/recommendations for "pacman-key --init" and "pacman-key --populate" in the pacman.conf file.

Offline

#3 2014-07-24 12:38:14

anorax
Member
Registered: 2014-06-16
Posts: 14

Re: Why don't I have to run pacman-key --init after installing Arch?

You're right. Just looked into it. Still, I don't remember having done that. Pacman worked right out of the box (apart from calling pacman -Sy) when I first used it after/during installation.

Offline

#4 2014-07-24 12:49:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Why don't I have to run pacman-key --init after installing Arch?

archlinux-keyring.install runs it: https://projects.archlinux.org/svntogit … ux-keyring

Offline

#5 2014-07-24 12:50:51

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Why don't I have to run pacman-key --init after installing Arch?

If you want to know why Archbang does/doesn't do things like Arch, you need to ask on the Archbang forum.

Offline

#6 2014-07-24 12:56:22

czubek
Banned
Registered: 2012-03-08
Posts: 141

Re: Why don't I have to run pacman-key --init after installing Arch?

I too was able to install programs prior to the pacman-key commands. It wasn't until I enabled multi-lib and added repo-ck that I remembered and performed the pacman-key commands. I can't explain why it worked.

There is a Pacman-key wiki here.

Offline

#7 2014-07-24 13:06:29

anorax
Member
Registered: 2014-06-16
Posts: 14

Re: Why don't I have to run pacman-key --init after installing Arch?

karol wrote:

There it is! Thanks smile And I suppose that is already set up in the live image. So when pacstrapping Arch do disk it takes it right over.

@tomk: You're absolutely right. But mainly I just wanted to know how it's done in Arch.

Offline

#8 2014-07-24 14:39:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,642

Re: Why don't I have to run pacman-key --init after installing Arch?

If this is solved, then do not forget to edit the fist post and add [SOLVED] to the beginning of the thread title.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2014-07-24 16:14:14

czubek
Banned
Registered: 2012-03-08
Posts: 141

Re: Why don't I have to run pacman-key --init after installing Arch?

@karol. Are you saying that archlinux-keyring.install does the same work as the pacman-key commands and is built-in to the install package?

Offline

#10 2014-07-24 16:28:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Why don't I have to run pacman-key --init after installing Arch?

archlinux-keyring.install is just a script, you can read what it does, line by line. It check some stuff, runs some commands.
Yes, it runs 'pacman-key --populate archlinux'.

Offline

#11 2014-07-25 08:33:15

anorax
Member
Registered: 2014-06-16
Posts: 14

Re: Why don't I have to run pacman-key --init after installing Arch?

But what about the initialization ('pacman-key --init')? Has that been done in the live image? If so, wouldn't the master key be always the same for every install from that image?

Offline

#12 2014-07-27 18:16:06

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Why don't I have to run pacman-key --init after installing Arch?

anorax wrote:

But what about the initialization ('pacman-key --init')? Has that been done in the live image? If so, wouldn't the master key be always the same for every install from that image?

Initialization is done in the live image using a systemd service.
Source:
https://projects.archlinux.org/archiso. … it.service

Offline

Board footer

Powered by FluxBB