keep ports updated

Kevin Oberman oberman at es.net
Thu Nov 9 15:58:03 UTC 2006


> Date: Thu, 9 Nov 2006 13:51:37 +0100
> From: Riemer Palstra <riemer at palstra.com>
> Sender: owner-freebsd-current at freebsd.org
> 
> On Thu, Nov 09, 2006 at 03:46:24AM -0800, gahn wrote:
> > I have 6.1 installed and trying to get those ports up
> > to date. I did run "portupgrade -v" and the results show all of them
> > were "up-to-date with port". but it is not true; for example, nagios
> > is still 2.0 instead of 2.5.
> 
> Running portupgrade is good, but only half of the process :)
> 
> > how could I truely get those ports up to date as listed on freebsd.org
> > site?
> 
> You also need to get your ports tree to stay up to date, try using
> portsnap, csup or cvsup (in that order). As it probably will be the
> first time you run it, portsnap fetch, portsnap extract, and after that,
> regularly run portsnap fetch, portsnap update.

I don't know about portsnap, if you use csup (V6.1 or newer) or cvsup,
you should delete your ports tree first! (rm -rf /usr/ports/*). 

These programs keep a record of what files have been updated and their
versions and they will not know about any files already in your ports
tree but no longer in CVS. This can leave you system with orphans that
might include patch files which might cause builds to fail, or worse,
cause apps to mis-behave.

You only have to do this once. csup will take care of this from that
point on.

I don't know if the same is true of portsnap, but it may be. (Gotta try
it one of these days, but we have a local CVS mirror that works very
well, so I just have not had much incentive.)
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 224 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20061109/901ee408/attachment.pgp


More information about the freebsd-current mailing list