You are not logged in.

#1 2016-10-21 08:15:50

ua4000
Member
Registered: 2015-10-14
Posts: 418

[SOLVED]Share /var/cache/pacman/ in the home-network with rsync daemon

Hi, since I have now several x86_64 machines, I would like to share the pacman updates in the home-network.

Does this construct work, two-times rsync directly on /var/cache/pacman/pkg:

rsync [...] .../nas-storage/ /var/cache/pacman/pkg 
pacman -Syyu 
rsync [...] /var/cache/pacman/pkg  .../nas-storage/

And a security concern: Does pacman check the signature of the /var/cache/pacman/pkg files always before installing, also the files that did come by rsync?

Thanks very much!

Last edited by ua4000 (2016-10-21 16:35:24)

Offline

#2 2016-10-21 08:19:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]Share /var/cache/pacman/ in the home-network with rsync daemon


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-10-21 08:44:36

ua4000
Member
Registered: 2015-10-14
Posts: 418

Re: [SOLVED]Share /var/cache/pacman/ in the home-network with rsync daemon

Thanks, I already read all tips from https://wiki.archlinux.org/index.php/Pa … cman_cache including Pacserve.

But before using some solution or AUR software, I want to understand the the problem myself and find the "manual" way first.

So my questions remains: Is pacman aware of .pkg.tar.xz files placed directly by rsync, and will pacman check them against the keyring?

Thanks very much :-)

Offline

#4 2016-10-21 08:55:46

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

Re: [SOLVED]Share /var/cache/pacman/ in the home-network with rsync daemon

Pretty sure settings in pacman.conf surrounding sig checks are honored regardless of cache location.  If the NAS is up 24/7 why not just use an NFS mount for all boxes to /var/pacman/cache


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

Offline

#5 2016-10-21 16:34:29

ua4000
Member
Registered: 2015-10-14
Posts: 418

Re: [SOLVED]Share /var/cache/pacman/ in the home-network with rsync daemon

Thanks for your reply!

My NAS has no NFS - yet (lack of time) - but it's an arch machine too :-)

But I got my rsync setup up and running. Seems working very smooth - the .pkg.tar.xz files are now synced in both ways from client to NAS server. I used the new wiki https://wiki.archlinux.org/index.php/Rsync#rsync_daemon

best regards
ua4000

Offline

Board footer

Powered by FluxBB