From owner-freebsd-questions Thu Feb 28 11:43:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by hub.freebsd.org (Postfix) with ESMTP id A944637B41B for ; Thu, 28 Feb 2002 11:43:25 -0800 (PST) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id LAA11296; Thu, 28 Feb 2002 11:43:17 -0800 Message-ID: <3C7E8853.9040509@owt.com> Date: Thu, 28 Feb 2002 11:43:15 -0800 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: phaedrus@alltel.net Cc: Rickard =?ISO-8859-1?Q?Borgm=E4ster?= , freebsd-questions@FreeBSD.ORG Subject: Re: Updating installed packages/ports References: <20020228123530.30240eb8.doktorn@realworld.nu> <200202281601.g1SG1Ui05783@h216-170-019-170.adsl.navix.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Dave Cantrell wrote: > On Thu 28 Feb 02 05:35, you wrote: > >>I've now completed the system upgrade 4.3-4.5 using make buildworld >>etc. Now, which is the best way to upgrade my ports and packages? >> >>Removing everything with pkg_delete and then installing new packages >>with pkg_add or making from ports is of course one way. Not the >>easiest but still. >> >>What do you recommend? >> >> > The way I understand things work, if you keep the Ports Tree up to date (via > CVSUP, etc.), then a simple "pkg_version -v > pkg_version.txt" will bounce > your installed packages/ports as listed in /var/db/pkg against the Ports Tree > and give you a file telling you the ports installed, which are up to date > with the Tree, and which need to be upgraded, and to what version. > > However, this way tells you nothing about dependencies, unfortunately. The other thing that cvsup does not do at this point is update your /usr/ports/INDEX. INDEX is updated infrequently and you really should update it everytime you cvsup the ports. Regenerating it can be slow on even the very fast machines. I have shell scripts that invoke cvsup and include the command for portsdb to update INDEX in the script. I tee all of my cvsup operations to keep local copies of what I changed and when. The odds of my correctly including all of the options depends on the time of day and possibly the position of the moon :). I figure I can have a typo in a complicated command line and never see it. If I typo the script name, the system simply complains and doesn't run the script. > > To my (admittedly) limited knowledge, just because you upgrade from 4.X to > 4.X+1 doesn't necessarily mean you need to upgrade (all) the ports/packages. > If this is incorrect, someone please let me know, because I am about to > upgrade from 4.4 to 4.5 myself There are a couple of ports that you need to keep current. If I can immediately name one, Murphy would say there must be another :). I use lsof and you have to keep it current. When you are out of date on lsof, it will tell you about it. Kent -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message