You are not logged in.

#1 2011-03-04 18:08:46

marxom
Member
Registered: 2010-08-31
Posts: 3

Private repo

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

#2 2011-03-05 04:43:09

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Private repo

man pacman.conf wrote:

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.

man wget wrote:

--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.

Offline

#3 2011-03-05 09:25:06

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Private repo

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

#4 2011-03-05 11:00:22

marxom
Member
Registered: 2010-08-31
Posts: 3

Re: Private repo

Awesome, just what I was looking for, thank you!

Offline

Board footer

Powered by FluxBB