From owner-freebsd-ports Tue Aug 1 12:58:26 2000 Delivered-To: freebsd-ports@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.prod.itd.earthlink.net [207.217.121.12]) by hub.freebsd.org (Postfix) with ESMTP id 3922137B609 for ; Tue, 1 Aug 2000 12:58:23 -0700 (PDT) (envelope-from rivas45@sprintmail.com) Received: from sprintmail.com (sdn-ar-004njnbruP324.dialsprint.net [168.191.61.230]) by harrier.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id MAA26371; Tue, 1 Aug 2000 12:58:11 -0700 (PDT) Message-ID: <39872BCF.64207C4E@sprintmail.com> Date: Tue, 01 Aug 2000 15:58:07 -0400 From: Eric Rivas X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Renaud Waldura Cc: ports@FreeBSD.ORG Subject: Re: Updating ported software References: <20000801123256.A1400@ebola.biohz.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Renaud Waldura wrote: > > Dear freebsd-ports, > > I'm still confused as to what the Right Method for updating ports is. > I manage to update my "ports" collection just fine, using cvsup, > but I'm not sure I understand what I'm supposed to do from there. > > I hope you won't mind my explaining with an example. I first installed > my favorite port "foo" in version 1.0. I did so by installing the > "Ports collection" from sysinstall, going to /usr/ports/tools/foo, and > running "make install". I then have the binary foo in version 1.0 and I'm > happy. > > I then updated my ports with cvsup, and now the Makefile for foo says it > is in version 1.1, but the foo binary itself is still in version 1.0. Hence > my first question: is there a way to automatically rebuild updated ports? > > OK, so now I want to update foo, the binary. I found this message in > the list archives: > http://www.freebsd.org/cgi/getmsg.cgi?fetch=2130511+2132232+/usr/local/www/db/text/2000/freebsd-questions/20000116.freebsd-questions > > that basically says to run: > > 1) make clean [delete source code] > > 2) make deinstall [uninstall binary package(s)] > > 3) make install [build and install from new port] > > but after running "make clean", "make deinstall" fails saying it doesn't > find the right version of the port to uninstall. It tries to uninstall > foo version 1.1 using the updated Makefile, when the version of the foo > that is actually installed is 1.0. > > "Make install" works just fine and rebuilds & installs the updated port, but > does so by (I'm guessing) overwriting the old version 1.0. My second > question is: how do I uninstall an updated port before rebuilding it? > > Thank you very much for shining some light on this issue, > > --Renaud > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message Before you install the new version you need to uninstall the old version. Do a "pkg_info | grep " to get the old ports complete name and version number. Then do (as root) a "pkg_delete ". That should get rid of the old version. After this you can install the newer version as you described above. For example to update mutt: $ pkg_info | grep mutt # Get the old port version mutt-1.2 "The Mongrel of Mail User Agents" (part Elm, Pine, mh) $ su # su to root Password: root# pkg_delete mutt-1.2 # deinstall the old one root# cd /usr/ports/mail/mutt/ # cd to port dir root# make install clean # install mutt Hope I was helpful. -- Eric J. Rivas WWW: http://home.sprintmail.com/~rivas45/ ICQ: 61930546 "I can't wait till I'm out of school, so I can start learning things!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message