Date: Thu, 28 Feb 2002 11:43:15 -0800 From: Kent Stewart <kstewart@owt.com> To: phaedrus@alltel.net Cc: Rickard =?ISO-8859-1?Q?Borgm=E4ster?= <doktorn@realworld.nu>, freebsd-questions@FreeBSD.ORG Subject: Re: Updating installed packages/ports Message-ID: <3C7E8853.9040509@owt.com> References: <20020228123530.30240eb8.doktorn@realworld.nu> <200202281601.g1SG1Ui05783@h216-170-019-170.adsl.navix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C7E8853.9040509>