You are not logged in.

#1 2012-04-03 00:00:42

syngin
Member
From: Melbourne
Registered: 2011-03-29
Posts: 39

[SOLVED] Network Shared Pacman Cache problems

Hi all,

I've got a couple of Arch servers and an Arch workstation that I'm working on; only the workstation has internet access and I need to keep the servers up to date and be able to install packages.

At the moment, the servers have the workstation's pacman package and cache directories mounted via SSHFS, but I've got problems with keys (pacman not being able to look up keys) and system upgrades. Nothing that I can't work around, but I'm thinking there must be a more "professional" way to get this done.

TL;DR - What's the best way to set up internetless Arch servers with a network pacman repo/cache?

Last edited by syngin (2012-04-03 07:00:21)

Offline

#2 2012-04-03 00:27:46

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

Re: [SOLVED] Network Shared Pacman Cache problems

Something I don't get here - you have internet access on one box, which is networked with the other boxes. Are you aware that you can provide internet access to all boxes?

To clarify - I'm asking beause of your missing-keys issue, sharing the cache is not affected.

Offline

#3 2012-04-03 00:34:49

syngin
Member
From: Melbourne
Registered: 2011-03-29
Posts: 39

Re: [SOLVED] Network Shared Pacman Cache problems

Yep, well capable of doing that which is why I'm asking - I can't do that without having to have difficult conversations with the security team here. And, no, I don't need to be told about the lack of security implications in doing this smile

As far as keys, I've just set the SigLevel to "Never" as I trust the packages on my workstation, but this all feels a little hinky.

Offline

#4 2012-04-03 00:49:22

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

Re: [SOLVED] Network Shared Pacman Cache problems

Import the keys over sneakernet then.

Offline

#5 2012-04-03 01:30:05

syngin
Member
From: Melbourne
Registered: 2011-03-29
Posts: 39

Re: [SOLVED] Network Shared Pacman Cache problems

Which leads me to believe that the best way to manage internetless servers and pacman is pretty much what I'm doing now, correct?

Offline

#6 2012-04-03 05:42:06

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Network Shared Pacman Cache problems

I'm guessing your best bet (without invoking the wrath of your security department) is to keep doing what you're doing indeed. In order to setup pacman keysigning, there's always the option to download the keys from your workstation, save them to a file on a share where your servers can access them and them import them via pacman-key.


Burninate!

Offline

#7 2012-04-03 05:46:34

syngin
Member
From: Melbourne
Registered: 2011-03-29
Posts: 39

Re: [SOLVED] Network Shared Pacman Cache problems

Cheers, I'll check it out. What's the best bet for system upgrades? Currently pacman -Su wants real repos...

Offline

#8 2012-04-03 05:57:09

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Network Shared Pacman Cache problems

If I'm not mistaken, you can configure a "local repo" by putting something among the lines of the following in your /etc/pacman.conf (in the repo section):

[repo name]
Server = file:///var/cache/pacman/pkg

Replace the path with your exact mountpoint of the remote pacman cache obviously.


Burninate!

Offline

#9 2012-04-03 05:58:53

syngin
Member
From: Melbourne
Registered: 2011-03-29
Posts: 39

Re: [SOLVED] Network Shared Pacman Cache problems

Ahh, so obvious. Thanks.

Offline

Board footer

Powered by FluxBB