Re: ports upgrade

2002-06-04 Thread David Bushong

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 [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: ports upgrade

2002-06-04 Thread David Bushong

The sysutils/portupgrade port handles this well.

--David Bushong

On Wed, Jun 05, 2002 at 08:53:28AM +1000, Allan McDonald wrote:
> Hi,
> there has been discussions on this list re-upgrading with make world etc,
> and there is an execellent section on the docs about how this is done.. I
> haven't had any problems with this.
> 
> Is there a recommended procedure to upgrade various ports, eg all installed
> ports on ones system.
> I know about the  ports-supfile  and I use that before installing a new port
> that I think I need.  But for ports that I have already installed, is there
> any set procedure to upgrade them all at once? or do a pkg_remove {port} and
> re-install a fresh port individually for each port that is installed.
> 
> I hope this post is not too far out of the guidelines for freebsd-stable
> 
> 
> Regards,
> 
> Allan McDonald
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message