Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Apr 2008 08:56:57 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Subhro <subhro.kar@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Local package mirror
Message-ID:  <44lk3s1mue.fsf@Lowell-Desk.lan>
In-Reply-To: <b2807d040804030044v585176d2jab0e6f3977cadf2b@mail.gmail.com> (Subhro's message of "Thu\, 3 Apr 2008 13\:14\:12 %2B0530")
References:  <b2807d040804030044v585176d2jab0e6f3977cadf2b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Subhro <subhro.kar@gmail.com> writes:

> I am trying to get a Network install working on my local network. I
> have been able to successfully create a NFS export of the installation
> disk and perform a install from there. The target machines boot over
> PXE and fetch "stuff" from the NFS.
>
> However I am unable to figure out how to get the packages working. I
> have a list of about 180 packages which needs to be installed. But I
> am unable to figure out how to go about it. I would like to use
> precompiled packages, but the CD do not contain the packages I am
> looking for. One of the option is to mirror the whole package
> directory from the freebsd mirrors, but that story involves a lot of
> data transfer and bandwidth. Is there something obvious I am missing?
>
> Any help would be highly appreciated.

There are a number of ways to do this general sort of thing.  For the
base system approach, with pkg_add(1), setting PACKAGEROOT (or
possibly PACKAGESITE depending on exactly how you configure the server
for network fetch, or PKG_PATH if the clients have the NFS directory
mounted) should be good enough.

On the other hand, the way I do it is to have a master server, where I
build everything (or fetch everything, if I don't want to build it
myself).  Then the other machines mount /usr/ports from the master
server.  I use portupgrade to do the installs from the clients, which
knows how to use packages when available locally and only fetch them
if they aren't.

I hope this helps.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44lk3s1mue.fsf>