From owner-freebsd-questions Mon Nov 23 22:13:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA12464 for freebsd-questions-outgoing; Mon, 23 Nov 1998 22:13:54 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from stennis.ca.sandia.gov (stennis.ca.sandia.gov [146.246.243.44]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA12458 for ; Mon, 23 Nov 1998 22:13:53 -0800 (PST) (envelope-from bmah@stennis.ca.sandia.gov) Received: (from bmah@localhost) by stennis.ca.sandia.gov (8.9.1/8.9.1) id WAA26256; Mon, 23 Nov 1998 22:13:50 -0800 (PST) Message-Id: <199811240613.WAA26256@stennis.ca.sandia.gov> X-Mailer: exmh version 2.0.2 2/24/98 To: "Bryan Bunch" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Ports Question In-Reply-To: Your message of "Mon, 23 Nov 1998 23:00:00 CST." <000f01be1767$4aad6320$652ed7d1@bryanbun.bhm.bellsouth.net> 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 Content-Type: multipart/signed; boundary="==_Exmh_1089618910P"; micalg=pgp-md5; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 23 Nov 1998 22:13:50 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --==_Exmh_1089618910P Content-Type: text/plain; charset=us-ascii If memory serves me right, "Bryan Bunch" wrote: > After you have installed a port and notice that there is a updated version > in ports-current, what is the best way to upgrade? Is there any argument > that you can pass to make (make upgrade??). Or do you have to do a pkg_del > and then install the new port? I am asking b/c I noticed that wen you > install the new port there are usually two entries in the /var/db/pkg > directory. In general, you'll want to pkg_delete the old version, then install the new port. Here are a couple of caveats: 1. In some cases, it's fairly acceptable to have multiple versions of a port installed. One example is Tcl/Tk. Unfortunately there isn't a hard-and-fast rule for this. 2. pkg_delete might not want to let you delete a package if something is depending on it. You may need to use "pkg_delete -f" (RTFM) to force deletion of the files in spite of this fact. I've certainly done upgrades by simply installing the new version, but then I managed to get both pkg_delete (and myself) really confused when it came time to remove files from either/both versions. > Do you just manually remove the old entry, and will the newer > version overwrite any config files that the old version was using? In all cases I've seen, newer versions of ports leave the old configuration files alone. > Do you remove the old work directory in the ports tree, then do a make > install? I would do a make clean in the old ports directory, then make install. If you have enough disk space, consider making the package of a port before doing the pkg_delete. That way, if you get into trouble installing the new version, you can quickly do a pkg_add of the old version and get back somewhere close to the state you were in. (Usually when building a port, I'll do something like "make; make install; make package; make clean".) Hope this helps, Bruce. --==_Exmh_1089618910P Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: 2.6.2 iQCVAwUBNlpOnajOOi0j7CY9AQHGqwP/aa/v+kXdPmG7giEQU/PEIF0dg3qdXwRm L7lpKF1xN/54Ug3d4ft8ZI98RTdUVqTvY+JOaFBt5zvFBtt8oEF+Fw4+KMhynjsf cOEkK0OZzz+0BTkAPp56Laz9eJUTNOaszmLB7nG6jcJv1OWOgzJhptcr2tReHbey FGaUEcYeFGg= =fwk/ -----END PGP MESSAGE----- --==_Exmh_1089618910P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message