Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Oct 2010 11:36:22 +0000
From:      "b. f." <bf1783@googlemail.com>
To:        Thomas Mueller <mueller6727@bellsouth.net>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Massive portupgrade without being interrupted by configuration screens?
Message-ID:  <AANLkTin_GET5sDk8WP1aRamLU3EFKnTqAQ-xGvUqaFz6@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
 > Are there any adverse side effects if I use portupgrade some of the
> time, and postmaster other times?

Probably not, if you keep your portupgrade portsdb and pkgdb
up-to-date, and you are not doing anything special with pkgtools.conf,
portmaster.rc, or environment variables.  But you don't really need
both, or, for that matter, either of them.  For instance, you could
just use the base system utilities and do something like:

pkg_version -qol '<' | cut -f 1 -d ' ' | xargs -o -t -I % make -C
/usr/ports/% config-recursive

(For a speed-up, if you are sure your INDEX is synchronized with the
rest of your ports tree, you could add the -I flag to the above
pkg_version call.)

> Reason for wanting to do all "make config"s beforehand is not only
> efficiency and ability to run unattended, but the ability to recover
> from a typo at the config dialog interface, which can be confusing,
> on when to press spacebar, tab, enter, up- and down-arrows.

This is what the portupgrade -C/-c flags are for.  if you want to do
the configuration as a completely separate step from the updating, for
whatever reason, you could run 'portupgrade -can', for example.

b.



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