portupgrade -> portmaster Rosetta Stone?
m.seaman at infracaninophile.co.uk
Sat Feb 25 19:24:08 UTC 2012
On 25/02/2012 18:21, Royce Williams wrote:
> To ease the transition, does anyone know of a Rosetta Stone table, or
> "portmaster for native speakers of portupgrade"?
It's not too hard to switch. Read the portmaster(8) man page -- most of
the central stuff is actually fairly close to what portupgrade does.
A few differences:
will update anything foo/bar depends on, that is out of date (a bit like
portupgrade -R), and it will always reinstall the foo/bar port.
portmaster -r foo-0.99
will update anything out of date that depends on the foo-0.99 port.
When you get a shlib-bump, a common idiom is:
portmaster -fr libfoo-1.0
which forces an update of everything that depends on libfoo-1.0.
One important difference is the -R flag -- in portupgrade, that means
'recurse through what this port depends on,' which doesn't have an
equivalent flag in portmaster because that's the default behaviour.
Instead, to portmaster, -R means 'restart a previously interrupted
session from where you got to before.'
If you want portmaster to completely ignore a port, touch
/var/db/pkg/foo-0.99/+IGNOREME -- there's no arrays of ports to do
special things with as there are in portupgrade.conf
portmaster doesn't save old shlibs in /usr/local/lib/compat/pkg by
default -- you have to use the -w flag for that, or a setting in
portmaster.rc portmaster doesn't need you to be continually running a
command like pkgdb as it does a pretty good job of keeping everything
consistent just as it goes along. If you get messages about 'malformed
dependency' you should try 'portmaster --check-depends' to clear it up.
But all you really need to know is that for routine updates, first
update your ports tree using portsnap or csup or banging two rocks
together or whatever your favourite method is and then just run
'portmaster -a' Answer anything it asks you, and then sit back and
watch it go to work.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120225/7b86fe0d/signature.pgp
More information about the freebsd-ports