keep ports up to date.
Martin Klaffenboeck
martin.klaffenboeck at gmx.at
Thu May 8 13:32:48 PDT 2003
Am 2003.05.08 21:21 schrieb(en) Mezz bsdforums.org:
>>> 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
> -------------------------------------
I know, but I want to make sure that I have the possibility to choose
what I want to update, and there are some ports I really want to update
by hand. (tmda for example) So I have the
vi /root/work/update
line for removeing some ports I want to update by hand. (Normally I do
that before I close the vi)
Martin
More information about the freebsd-gnome
mailing list