You are not logged in.

#1 2021-09-10 14:13:35

xmkx
Member
Registered: 2021-06-08
Posts: 19

30 PCs with Archlinux. How to update them all on demand.

How to update 30 PC stations with Archlinux installed. I have one master computer from which I should push command to update.
30 stations will have the same purpose so same software on every PC. Two cases:
1. Standalone Archlinux installation directly on hardware
2. Archlinux in VMs at Windows 10 host.

Offline

#2 2021-09-10 14:30:00

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: 30 PCs with Archlinux. How to update them all on demand.

How about a simple script which just ssh's into each machine and updates them?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-09-10 16:44:51

Maniaxx
Member
Registered: 2014-05-14
Posts: 732

Re: 30 PCs with Archlinux. How to update them all on demand.


sys2064

Offline

#4 2021-09-10 17:36:17

teckk
Member
Registered: 2013-02-21
Posts: 518

Re: 30 PCs with Archlinux. How to update them all on demand.

You can do that manually, easily.

I download packages to a temp dir on one machine, pacman -Syuw --cachedir
Start a little web server on that directory.

Then copy those packages to the pacman cache on all other machines. wget -P /var/cache/pacman/pkg/ http://192.168.0.2:8100

Then update each machine with pacman -Syu

If there is different hardware, some machines may get 2 or 3 more little packages from the mirror.

I then go to the first machine and move the packages from the temp dir to /var/cache/pacman/pkg/ update it with pacman -Syu

I then clear out all but last 3 packages in the cache on all machines paccache -r

That way I only download packages once, and all the machines pacman cache are almost identical.

And I have an update script using select which does that, which I have on all machines.

Offline

#5 2021-09-10 18:43:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: 30 PCs with Archlinux. How to update them all on demand.

I think Xyne wrote something that shares pacman cache across a network.  Search the wiki?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB