You are not logged in.

#1 2018-03-10 07:22:55

MountainX
Member
Registered: 2016-02-08
Posts: 371

[SOLVED] creating a local pacman repository - what are the options?

I have a fileserver on my small LAN. I am going to implement the read-write pacman cache described here: https://wiki.archlinux.org/index.php/Pa … rite_cache

I have one small custom package that is only used by computers on my LAN. To avoid having to manually install it on each computer, I'd like to set up a pacman repo so the package will be processed when I do the normal `pacman -Syu` update. However, I don't want to set up a webserver just for that purpose.

Since I will have the read-write pacman cache setup, the most trivial option would be to drop updated packages into /var/cache/pacman/ on the fileserver and then, on each machine, run:

pacman -u /var/cache/pacman/my-package-name-1.0.0-9-x86_64.pkg.tar.xz

However, is there an option that is almost this simple, but will allow updating the package when running `pacman -Syu`?

I know that setting up nginx isn't that hard, but for my use case it would be far better to avoid an http or ftp server for just one package that is used by only a few computers. Thanks for any ideas or suggestoins.

Last edited by MountainX (2018-03-11 00:56:14)

Offline

#2 2018-03-10 07:53:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [SOLVED] creating a local pacman repository - what are the options?

You can host a repo on your shared filesystem.   Use a "Server = file:///foo/bar/" type syntax in your pacman.conf.

Offline

#3 2018-03-11 01:42:39

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] creating a local pacman repository - what are the options?

Also you could set up a lightweight server using https://xyne.archlinux.ca/projects/pacserve/


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB