From owner-freebsd-ports Wed May 26 15:59: 6 1999 Delivered-To: freebsd-ports@freebsd.org Received: from stennis.ca.sandia.gov (stennis.ca.sandia.gov [146.246.243.44]) by hub.freebsd.org (Postfix) with ESMTP id 52F7B14D58 for ; Wed, 26 May 1999 15:58:57 -0700 (PDT) (envelope-from bmah@stennis.ca.sandia.gov) Received: (from bmah@localhost) by stennis.ca.sandia.gov (8.9.3/8.9.3) id PAA04234; Wed, 26 May 1999 15:58:49 -0700 (PDT) Message-Id: <199905262258.PAA04234@stennis.ca.sandia.gov> X-Mailer: exmh version 2.1.0 04/14/1999 X-Exmh-Isig-Comptype: repl X-Exmh-Isig-Folder: Lists/freebsd-ports To: Chris Piazza Cc: Oscar Bonilla , ports@FreeBSD.ORG Subject: Re: Right way to upgrade a port In-Reply-To: Your message of "Wed, 26 May 1999 15:20:48 PDT." From: bmah@CA.Sandia.GOV (Bruce A. Mah) Reply-To: bmah@CA.Sandia.GOV X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Url: http://www.ca.sandia.gov/~bmah/ Mime-Version: 1.0 Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-902768339P"; micalg=pgp-md5; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 26 May 1999 15:58:49 -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --==_Exmh_-902768339P Content-Type: text/plain If memory serves me right, Chris Piazza wrote: > On 26-May-99 Oscar Bonilla wrote: > > I was just wondering what is the right way to upgrade a port... > > say i have foobar-1.2 and the port has been upgraded to foobar-2.0 > > > > do I > > > > 1. pkg_delete foobar-1.2 > > cd /usr/ports/misc/foobar > > make install > > > > 2. cd /usr/ports/misc/foobar > > make install > > > > > how do you guys do it and why? > > I think the True Way is #1. Doing #2 has a few nasties such as leaving old > files around and having a very polluted /var/db/pkg. I agree. > > p.s. wouln't it be cool if you could install on top of the old > > version and later remove the new version just to find out that the > > old version still works. :) > > I have a feeling that that would require a lot of hard drive space > for backups :-). There could be the odd chance that would work. > Say, if the new version installed everything in a different place! This has come up one or two times in the past...that's what GNU stow was designed to handle. For more information look for "stow" in the mailing list archives. While I feel that adding some stow-like features to our ports/packages system (to cover exactly this situation) would be a Good Thing (TM), it's not immediately obvious (to me anyways) what all the implications would be. The devil is in the details.... Bruce. --==_Exmh_-902768339P Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: 2.6.2 iQCVAwUBN0x8qKjOOi0j7CY9AQHRNgP+OVafBaBRSapCzZdflk2NGzvf0JTCBS/4 j1AdcLVjxEDYi+K5YPpBEwwRsZ7Vn44Mq+jnwzqw8xGN3ewlyIEJDhOUDpHLqHP8 66g5ecF2yuzDx7knqtiCI+VaZa5Xyi31bsUzSkIBgVQX/vlUejksG9vLTNscohOh a5Mucgp5WRc= =B+10 -----END PGP MESSAGE----- --==_Exmh_-902768339P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message