Difference between revisions of "Pacserve"

From ArchWiki
Jump to: navigation, search
Line 12: Line 12:
now install pacserve:
now install pacserve:
  # pacman -S pacserve
  # pacman -Sy pacserve
and enable / start the daemon:
and enable / start the daemon:

Revision as of 22:15, 19 June 2013

Pacserve allows to easily share pacman packages between computers. This is very useful, if you have a slow internet conenction, but multiple machines running Arch Linux.


You can either install pacserve manually from the AUR, or with the following method:

from Xyne's repository

add this to your /etc/pacman.conf, replace (x86_64 with i686 or any if necessary):

# A repo for Xyne's own projects: http://xyne.archlinux.ca/projects/
SigLevel = Required
Server = http://xyne.archlinux.ca/repos/xyne

now install pacserve:

# pacman -Sy pacserve

and enable / start the daemon:

# systemctl enable pacserve.service
# systemctl start pacserve.service

in case you use iptables, you'll probably want this service: pacserve-ports


Instead of pacman, use the pacsrv wrapper to perform an update/install packages etc. It will automatically download all packages from the LAN, if someone hosts them with pacserve there. Otherwise it will just download them from the internet mirrors, as usually. For example:

pacsrv -Syu
pacsrv -S openssh