Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 May 2003 14:21:26 -0500
From:      "Mezz bsdforums.org" <reigncracks@hotmail.com>
To:        martin.klaffenboeck@gmx.at
Cc:        cjm@ava.com.au
Subject:   Re: keep ports up to date.
Message-ID:  <Sea2-F63hXNjXwUUv1l0000e394@hotmail.com>

next in thread | raw e-mail | index | archive | help
>>You should
>>install
>>sysutils/portupgrade, and get used to using it to keep your installed
>>ports up-to-date.
>
>I'm using this script by hand daily:
>
>--------- ports_uptodate.sh ----------
>#!/bin/sh
>  if [ "$1" != "-s" ]; then
>         cd /usr/ports
>         cp INDEX.ports INDEX
>         make update
>         cp INDEX INDEX.ports
>         marcusmerge -u
>         portsdb -uU
>fi
>  pkgdb -F
>portversion -l "<" | awk '{ print($1); }' > /root/work/update
>vi /root/work/update
>  portupgrade `cat /root/work/update`
>pkgdb -F
>-------------------------------------

You can cut the portversion to portupgrade like this:

-------------------------------------
....
....
pkgdb -F
portupgrade -ra
pkgdb -F
-------------------------------------

Cheers,
Mezz

>Martin

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Sea2-F63hXNjXwUUv1l0000e394>