Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2002 00:10:33 -0700
From:      David Bushong <david@bushong.net>
To:        The Unicorn <unicorn@blackhats.org>
Cc:        Allan McDonald <allan@ozdaq.com.au>, freebsd-stable@FreeBSD.ORG
Subject:   Re: ports upgrade
Message-ID:  <20020605071033.GK27537@bushong.net>
In-Reply-To: <20020605061402.GA89011@blackhats.org>
References:  <0F08B228C722D311B5FC00A0C9FB2C7322B488@casserver.ozdaq.com.au> <20020604231048.GF27537@bushong.net> <20020605061402.GA89011@blackhats.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Some suggestions on your script.

On Wed, Jun 05, 2002 at 08:14:02AM +0200, The Unicorn wrote:
> I use the following  script I once wrote. It is still  not perfect and I
> know it can be  highy optimised, but most (99.999%) of  the time it just
> does the  job. I  have a  similar script  to cvsup  and build  the whole
> world, create  a new kernel and  run mergemaster as well.  It just makes
> life easier.
> 
> ...
>
> cvsup -g -L 2 /etc/cvsup-file 2>&1                                  && \
>
If you set up /etc/make.conf right, you can make that:
cd /usr/ports && make update

>
> ...
>
> pkgdb -F < /dev/tty > /dev/tty                                      && \
>
If you have any held ports, this will quietly (in the lines whirring past)
skip them, and you won't necessarily have a fixed pkgdb; pkgdb -Ff is 
usually what I want.

>
> ...
>
> portversion -c | tee /root/tmp/do_update                            && \
>
Given how long your script will take to run, I'm not sure there's any reason
not to just: portupgrade -Ra

If for some reason you don't want to, you might want to at least:
portupgrade -C -R -c ...  This will help keep the pkgdb in order for ports
that depend on other ports that they didn't used to depend on.

Just some thoughts.

--David Bushong

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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