You are not logged in.
Pages: 1
I manage some software for many Arch boxes in multiple locations. I maintain a small private repo for custom packages I use on those
boxes. These boxes are on many different networks, and in many cases are laptops that move around networks, including
public hotspots. I need to add some packages that have some paid for commercial applications to my repo but cannot have
the packages available to the general public.
Is there a way to setup pacman to access a repo with a username/password via http or ftp?
If not, has anybody any suggestions how I might be able to protect these packages while still having the easy of use of
pacman? I know I can set it up by to be accessible via VPN, I was just hoping for something a bit easier.
Last edited by marxom (2011-03-04 19:43:47)
Offline
XferCommand = /path/to/command %u
If set, an external program will be used to download all remote files. All instances of %u will be replaced with the download URL. If present, instances of %o will be replaced with the local filename, plus a “.part”
extension, which allows programs like wget to do file resumes properly.This option is useful for users who experience problems with built-in http/ftp support, or need the more advanced proxy support that comes with utilities like wget.
--user=user
--password=password
Specify the username user and password password for both FTP and HTTP file retrieval. These parameters can be overridden using the --ftp-user and --ftp-password options for FTP connections and the --http-user and
--http-password options for HTTP connections.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
FYI, you don't need the XferCommand. Just put the username/password in the mirror url:
[repo]
Server = http://username:password@server.com/path/to/repo
Offline
Awesome, just what I was looking for, thank you!
Offline
Pages: 1