From owner-freebsd-questions Fri Mar 29 15:30:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id 925BC37B419 for ; Fri, 29 Mar 2002 15:30:01 -0800 (PST) Received: from localhost (localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.11.6/8.11.6) with ESMTP id g2TNG8d17648; Fri, 29 Mar 2002 15:16:08 -0800 (PST) (envelope-from andrsn@andrsn.stanford.edu) Date: Fri, 29 Mar 2002 15:16:08 -0800 (PST) From: Annelise Anderson To: Zach Barnett Cc: questions@FreeBSD.Org Subject: Re: Packages and Ports In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 29 Mar 2002, Zach Barnett wrote: > I'm new to Freebsd, and I've been trying to learn about packages and ports. > The manuals I'm using are the "Freebsd Handbook" and "The Complete > Freebsd". Both do an ample job of explaining how to install both items, > but I would like a little more "meat" if you will. Could someone please > boil down the differences between the two, how they interrelate, and the > pros and cons of each? > Packages and ports are two ways to install the same software. Packages are already built (for a particular version or release of FreeBSD). With ports, you download the source code and it gets built on your own computer. The "ports collection" (in /usr/ports) is the framework or skeleton for telling the system what software you want. You cd to the application you want and type "make install". For packages you use pkg_add . Once installed, the software is the same, unless you decide to alter the default building of the software when you build a port. Being able to do so is one of the benefits of the ports approach. Each software application creates a "work" directory where it puts its files and the output of the build. It is sometimes useful to explore this directory if you want to do something special when building the port. Also once installed, the software, whether you installed it as a port or as a package, is listed in /var/db/pkg, the registry of installed software. At that point it's all "packages" to FreeBSD. Packages are good if you don't want to build the software on your own machine (it may take a long time for a large application) or you don't have the space to build it. But in the end the convenience of the ports collection and the information it provides make it the first choice of most people. Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message