From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 15:34:23 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50A6616A4CE for ; Fri, 3 Sep 2004 15:34:23 +0000 (GMT) Received: from mail.rtc.ro (mail.rtc.ro [212.93.139.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 36E3A43D1D for ; Fri, 3 Sep 2004 15:34:22 +0000 (GMT) (envelope-from cristi.tauber@sbhost.ro) Received: (qmail 31553 invoked from network); 3 Sep 2004 18:21:35 +0300 Received: from unknown (HELO ?212.93.139.11?) (212.93.139.11) by mail.rtc.ro with SMTP; 3 Sep 2004 18:21:35 +0300 From: Cristi Tauber To: Matthew Seaman , FreeBSD Questions In-Reply-To: <20040903145656.GE23032@happy-idiot-talk.infracaninophile.co.uk> References: <1094221571.3917.1448.camel@deepblue.rtc.ro> <20040903145656.GE23032@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain Message-Id: <1094225672.4661.6.camel@deepblue.rtc.ro> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 03 Sep 2004 18:34:32 +0300 Content-Transfer-Encoding: 7bit Subject: Re: ports vs source X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 15:34:23 -0000 Yes i know something ... like the avantages of rpm and another linux package managers. But .. I want apache 1.3.31 with php-4.3.4 and mysql 4.0.20 (let's say) ... from ports ... i understand that I can %choose% what version i want to install ?? Is that correct ? Cristi On Fri, 2004-09-03 at 17:56, Matthew Seaman wrote: > On Fri, Sep 03, 2004 at 05:26:11PM +0300, Cristi Tauber wrote: > > > Can anyone tell me which are the avantages of installing from ports > > rather than installing from tar balls ? I am kind of new to BSD, and I'm > > familiar with linux install from tar & stuff. I know to give the > > switches to configure to tune the source for installation ... but how i > > can find the parameters for port install ? I mean ... let's say i want > > to install php and i have to give the path to mysql, apache and others > > graphical libraries ... how can I do that with ports ? > > Any link or explications about this subject is appreciated. > > FreeBSD ports /is/ installing from source. Except that all of the > boring stuff like working out what dependencies you need, what flags > are required to find the appropriate shlibs, even where to download > the software from: all that stuff is handled automatically for you. > > If you want to setup a webserver running PHP code against a MySQL > back-end database, on a virgin FreeBSD system you can just: > > # cd /usr/ports/www/mod_php4 > # make install > # cd /usr/ports/databases/php4-mysql > # make install > > And all of the PHP stuff, plus apache plus mysql will be installed for > you. Well, in practice you'ld want to set a few variables on the make > command lines so that you got the right variant of apache (2.0.50 vs > 1.3.31 vs 1.3.31+mod_ssl-2.8.19 amongst others) and the right version > of MySQL (choose from 3.23.58, 4.0.20, 4.1.4 or 5.0.0). > > The other massive advantage of installing via ports is the packaging > system. It keeps track of all of the files and directories > etc. installed by each port so that you can do things like create a > pkg tarball of the installed port as a backup or to install quickly > onto another machine. You can also de-install ports cleanly, and in > conjunction with tools like portupgrade(1) the ports system makes > tasks like managing software updates a breeze. > > Cheers, > > Matthew