From owner-freebsd-questions@FreeBSD.ORG Mon Apr 12 12:30:58 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 BFFF716A4CF for ; Mon, 12 Apr 2004 12:30:58 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D345C43D5A for ; Mon, 12 Apr 2004 12:30:56 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i3CIUddK069038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Apr 2004 19:30:39 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i3CIUcNp069037; Mon, 12 Apr 2004 19:30:38 +0100 (BST) (envelope-from matthew) Date: Mon, 12 Apr 2004 19:30:38 +0100 From: Matthew Seaman To: scuba@centroin.com.br Message-ID: <20040412183038.GA68839@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , scuba@centroin.com.br, freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040407, clamav-milter version 0.70g cc: freebsd-questions@freebsd.org Subject: Re: Step-by-step to upgrade Perl 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: Mon, 12 Apr 2004 19:30:58 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 12, 2004 at 01:30:37PM -0300, scuba@centroin.com.br wrote: > I'd like to upgrad Perl to 5.8 using ports on FreeBSD 4.7, but > how to do that in order to completely overwrite the old version (5.5.3). > Which is the correct steps to upgrade Perl? No -- it's a lot easier than you seem to think. i) Install the perl5.8 port: # portinstall lang/perl5.8 - or - # cd /usr/ports/lang/perl5.8 # make install ii) Set the new version of perl to be the default. (This also turns off building perl as part of the base system): # use.perl port iii) Re-install any 3rd party modules, etc that you've installed so the new perl can access them. There should be a neater way of doing this... # find /usr/local/lib/perl5/{site_perl/5.005,5.00503} -type f -prin= t0 | \ xargs -0 -n 1 pkg_which | sort -u > /tmp/perl-ports # vi perl-ports [ Sanity check the results: take out any non-ports (like '?'), ports that are now bundled with perl or that you no longer wish to have installed ] # portupgrade -f `cat /tmp/perl-ports` Et voila. New version of perl installed and ready to go. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAeuBOdtESqEQa7a0RApMZAJ9NcIKI8ZS4eZdSlj3z45hdrp78xACfdv13 IQZ49ZmxA4ANuR4L6lI7qvI= =kiiC -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--