From owner-freebsd-questions Tue Mar 18 11:13:42 2003 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 AAFB637B401 for ; Tue, 18 Mar 2003 11:13:40 -0800 (PST) Received: from mail2.uits.uconn.edu (mail2.uits.uconn.edu [137.99.25.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 829F643FB1 for ; Tue, 18 Mar 2003 11:13:39 -0800 (PST) (envelope-from matt@forsetti.com) Received: from [137.99.80.149] (d80h149.public.uconn.edu [137.99.80.149]) by mail2.uits.uconn.edu (8.11.6/8.11.6) with ESMTP id h2IJDQx12629; Tue, 18 Mar 2003 14:13:26 -0500 Subject: Re: pkg_upgrade ? From: Matthew Smith To: Mike Meyer Cc: David.Bear@asu.edu, freebsd-questions@FreeBSD.ORG In-Reply-To: <15991.24017.741532.962785@guru.mired.org> References: <20030318095553.F18308@asu.edu> <15991.24017.741532.962785@guru.mired.org> Content-Type: text/plain Organization: Message-Id: <1048014804.2249.26.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 18 Mar 2003 14:13:24 -0500 Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.8, required 6, AWL, BALANCE_FOR_LONG, IN_REP_TO, QUOTED_EMAIL_TEXT, REFERENCES, SUBJ_ENDS_IN_Q_MARK) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 2003-03-18 at 12:56, Mike Meyer wrote: > In <20030318095553.F18308@asu.edu>, David Bear typed: > > I do have cvsup installed, and can run cvsup to update my ports > > collection. My question is if I already have a package installed, > > running cvsup, the make install again for a preexisting port will mess > > up the pkg-data base right? > > Wrong. If you are installing a port a second time, "make install" will > refuse to install the port because it's already installed. If you are > installing an updated port, then the pkg-data will be in a different > place because the port has a different name. The latter case may leave > parts of the first port laying around unused, and deinstalling it will > probably break the second port. > > > > So, if I only want to upgrade a single > > port, is the recommended way > > 1) pkg_deinstall > > 2) cvsup ports collection > > 3) pkg_install again (or make install) > > This seems rather poor as I don't want to have all the downtime > > between deinstalling and installing again. > > Try this: > > 1) cvsup ports collection > 2) make > 3) pkg_deinstall > 4) make install > > > If I cvsup ports and then make install, is there a fix to update the > > pkg data base? > > It's not needed. > >