From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 19:55:20 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBB101065670 for ; Tue, 21 Sep 2010 19:55:20 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5CF058FC17 for ; Tue, 21 Sep 2010 19:55:19 +0000 (UTC) Received: by fxm9 with SMTP id 9so2161049fxm.13 for ; Tue, 21 Sep 2010 12:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=e03f6MuBqTwSOyRR7hTDkduM+ua4YHhiQeuCwcryLI0=; b=nx36mijU0yYGBcmp0nC0qxgEttjLvjxS6ESvFch2dwgd/uU2esfJOMBIolopLmmcFV eLmULYtI7hBN3eDGEjIBWtIcVWNr6O6Fk2WvdLSlFlUh46RltiJn0LpedZf1P52lNTi2 Rv6W0axcBV26E2zPSku4FeFYFtccg7J62rusI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Z3lr+YGG+yE3AO5x9o2jbH6eG5qz/dU2GEmpQ9nMBwbtrBwbf4J2YQWr3hiWC08a4s RGxqwrtkwAU6QtjzmdhU7HuB+DUEJojFuRcpr0OPWdxy7niV7kfjAAJuQ4oYpEhOkQy0 c7yxzd8ooPplksOpJ+4H2nXfRVsFH1y5BgrhQ= MIME-Version: 1.0 Received: by 10.223.107.15 with SMTP id z15mr5796892fao.62.1285098919181; Tue, 21 Sep 2010 12:55:19 -0700 (PDT) Received: by 10.223.57.20 with HTTP; Tue, 21 Sep 2010 12:55:19 -0700 (PDT) In-Reply-To: <90e6ba4883cb50e1500490c7b441@google.com> References: <90e6ba4883cb50e1500490c7b441@google.com> Date: Tue, 21 Sep 2010 14:55:19 -0500 Message-ID: From: Adam Vande More To: vrwmiller@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Media Packages Vs. Ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2010 19:55:20 -0000 On Tue, Sep 21, 2010 at 11:41 AM, wrote: > Hi all, > > I am performing PXE boots and automated installs of FreeBSD 8.1-RELEASE > with a custom sysinstall.cfg file which identifies packages that are to be > installed in addition to the distributions. We have need to install > compat6x-amd64 and I'd like to have this done during install. Unfortunately, > it does not appear that this package exists in the FreeBSD media from which > the install occurs. However, it is available through the ports collection. > You'll probably want to do something like this: http://bsdbased.com/2010/03/23/freebsd-binary-package-repository-howto FWIW, that's not the end all, be all to setting up your own package repository just a reasonably simple method. > > What is the relationship between the packages directory on the media and > the ports collection? http://www.freebsd.org/doc/handbook/packages-using.html Packages associated with a RELEASE also ultimately come from the ports tree. However, those RELEASE packages come from a ports tree that was put into slush, then frozen. This means those packages had more testing and tweaking. Is it possible to take a port, make a package of it and put it in the > packages directory of my own media? > Sure it's easy. When build a port you can issue a make package command, or you can use pkg_create to create packages from installed ported. A common approach to this is build all your updates in a jail, make packages of them, then delete package from the host and install the newly built ones from the jail. Very small, if any downtime. You can use the jail to create pkg's for a custom repository too. http://www.mail-archive.com/freebsd-questions@freebsd.org/msg228757.html -- Adam Vande More