From owner-freebsd-questions@FreeBSD.ORG Fri Jul 2 17:57:21 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 660B0106566C for ; Fri, 2 Jul 2010 17:57:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9978FC0A for ; Fri, 2 Jul 2010 17:57:20 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx01.qsc.de (Postfix) with ESMTP id 4EEBF3DC85; Fri, 2 Jul 2010 19:57:12 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o62HvBfV002653; Fri, 2 Jul 2010 19:57:12 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 2 Jul 2010 19:57:11 +0200 From: Polytropon To: Ian Smith Message-Id: <20100702195711.83c1b40f.freebsd@edvax.de> In-Reply-To: <20100703024058.C54166@sola.nimnet.asn.au> References: <20100701234521.D8B2E10656E4@hub.freebsd.org> <20100703024058.C54166@sola.nimnet.asn.au> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Convert all packages to ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2010 17:57:21 -0000 Please let me add this: On Sat, 3 Jul 2010 03:37:14 +1000 (EST), Ian Smith wrote: > The only difference is that a package is a port built with its default > options. Sometimes that might not be suitable and you'll want to make > it with other options. One way to tell if something was installed by > making a port is that /var/db/ports will contain a directory for that > port with the file 'options', created or updated by 'make config'. A package is a precompiled port - as you said correctly, using the default options for that port. Nothing more or less. It *is* that simple. :-) > I don't know where these 'do not mix ports and packages' warnings come > from, but I suspect it's from people who think that they're different :) I think it may have come from PC-BSD, taking into mind their PBI system, like "do not mix PBI with ports or packages". :-) > And it's not true that packages are only built for releases; any port > that doesn't have (eg) distribution restrictions on binary packages will > find its way into the queue on the package build systems, and update the > Latest/ package, after every update. Correct again. Packages are updated regularly (with the corresponding port's default options), but it may (!) be interesting to incorporate daily changes of the ports tree and keep the own installed software up-to-date, in an absolutely bleeding-edge state. Personally, there are only few ports that I really want or need to install via ports. Specific optimization, e. g. due to limited hardware resources, as well as for example codecs to include (I'm talking about mencoder / mplayer here), or the pure absence of precompiled packages (like OpenOffice) requires this. > > > My original question's intention was to prevent me from having a > > > system where some packages were installed with 'pkg_add' while > > > others were installed with 'make'. > > > > portmaster is probably the easiest road to get you there. > > Sure, or portupgrade. The portupgrade set of tools also included pkgdb. If you plan to mix several methods of installing (e. g. portinstall, make install, pkg_add -r), use # pkgdb -aF before and after you installed (or removed) something. This will keep portupgrade's database up to date, so it takes into mind when you *didn't* use it to install (or remove) something. > I think both have -P switches to use packages > rather than make from source where the matching package is available, > which is pretty handy on less than awesome boxes for Big Things like > Xorg, KDE and the like .. not to mention Java .. Or OpenOffice, where this won't work. :-) But you're correct: For portinstall / portupgrade, -P (use package) and -PP (use packages only) can be used, and will also affect how to deal with dependencies. Finally, portinstall / portupgrade allow you to create a package from a port you've just installed, see -p in the manual. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...