2005-02-15

How to set up a local fink repository

I have one of our G5s set up to be the apt repository for the machines at my day job. It's running 10.3 client, so I added a file, /etc/httpd/users/fink with the following contents:


Alias /fink /sw/fink

<Directory /sw/fink>
Options Indexes FollowSymLinks
</Directory>


I did this as a separate user file rather than edit /etc/httpd/httpd.conf to prevent future OS updates from breaking my apt repository. If you're running the repository on OS X Server, I believe you need to put the file in /etc/httpd/sites, and the file name may need to be tweaked to avoid confusing the GUI tools.

To get client machines to use the repository, I added the following lines at the beginning of /sw/etc/apt/sources.list (change finkmachine to the machine name of your repository):


deb http://finkmachine.local./fink stable main crypto
deb http://finkmachine.local./fink unstable main crypto


It was cool to discover that apt would deal with rendezvous names painlessly.

Now all you have to do is remember to do fink scanpackages after you build anything new on the repository, and your clients can just apt-get update;apt-get upgrade periodically to stay up to date.

No comments:

Creative Commons License

This work is licensed under a Creative Commons License.
Copyright 2007-2010, Joseph P. Block, Some Rights Reserved.

Creative Commons Logo