Updating ports
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sun Dec 23 03:03:20 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
RW wrote:
> Something like
>
> portupgrade -fr perl
>
> is pretty hard to restart efficiently.
A good trick is to use the date comparison functionality portupgrade
provides. So you can do something like:
portupgrade -fr perl -x '>=perl'
meaning: update everything that depends on perl except any packages
installed after perl. That is restartable.
When you're doing forced upgrades of everything, as is necessary for
example when upgrading from 6.x to 7.0 then instead of doing
portupgrade -fa
it's better to do:
portupgrade -f '<2007-12-23'
where 2007-12-23 is the date you did the system update. That command
can be restarted without wastefully re-recompiling a bunch of stuff --
although you should avoid updating any ports prior to but on the same
day as the system upgrade.
Cheers,
Matthew
- --
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHbkBv8Mjk52CukIwRCI8qAJ4wIIonoNf2QTeNcNvEhVrU+QnKtACeL/m/
T3UifmkMWme9wj9Q4J4ol7E=
=you9
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list