You are not logged in.
What is the recommended way to get pacman to authenticate against a web server hosting a private pacman repository?
I ask this because I maintain a number of packages that contain prearmed licenses for certain software that I use.
I am transitioning to hosting that repository on a potentially public server, as such I need to lock down access.
Cheers,
Last edited by jshield (2018-06-05 12:52:16)
Offline
I'm not sure what the recommended approach is, but one way would be to switch your XferCommand in pacman.conf to the wget variant and then create the following /root/.netrc file...
machine example.com login <username> password <password>I've never tried this myself but it should work ![]()
Another option would be to skip using a web server and http altogether if it's going to be private access only, just use something like sshfs to mount the remote repo then use a file:/// declaration in your pacman config.
Offline
Yeah, the builtin download agent does not support authenticated download, but external XferCommand works fine with whatever downloader you would like.
BTW I suggest using curl --netrc-file
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
I forgot about .netrc, it appears that pacman supports it out of the box possibly due to it being linked against libcurl.
Cheers for that.
@Slithery I contemplated using sshfs, and I may yet still, however I don't have ssh enabled on the server, as I manage it through the console provided by the VPS provider, and there is an agent that pulls jobs from my CI server to build packages.
Offline