Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2012 09:28:19 -0800
From:      Kevin Oberman <kob6558@gmail.com>
To:        Kurt Jaeger <lists@opsec.eu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: portupgrade -> portmaster after freebsd-update
Message-ID:  <CAN6yY1vKJDBBr2f5OohoDVgZPVW3=b2FrunOBnEoHW%2BupNME_Q@mail.gmail.com>
In-Reply-To: <20120303170411.GL44287@home.opsec.eu>
References:  <4F521BB8.1040102@glemsk.net> <20120303170411.GL44287@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 3, 2012 at 9:04 AM, Kurt Jaeger <lists@opsec.eu> wrote:
> Hi!
>
>> What is the proper portmaster commands in relation to freebsd-update?
> [...]
>
> The portmaster man page lists the following list of commands in the
> EXAMPLES section:
>
> =A0 =A0 Using portmaster to do a complete reinstallation of all your port=
s:
> =A0 =A0 =A0 =A0 =A0 1. portmaster --list-origins > ~/installed-port-list
> =A0 =A0 =A0 =A0 =A0 2. Update your ports tree
> =A0 =A0 =A0 =A0 =A0 3. portmaster -ty --clean-distfiles
> =A0 =A0 =A0 =A0 =A0 4. portmaster --check-port-dbdir
> =A0 =A0 =A0 =A0 =A0 5. portmaster -Faf
> =A0 =A0 =A0 =A0 =A0 6. pkg_delete -a
> =A0 =A0 =A0 =A0 =A0 7. rm -rf /usr/local/lib/compat/pkg
> =A0 =A0 =A0 =A0 =A0 8. Back up any files in /usr/local you wish to save,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0such as configuration files in /usr/local/etc
> =A0 =A0 =A0 =A0 =A0 9. Manually check /usr/local and /var/db/pkg
> =A0 =A0 =A0 =A0 =A0 =A0 =A0to make sure that they are really empty
> =A0 =A0 =A0 =A0 =A0 10. Re-install portmaster
> =A0 =A0 =A0 =A0 =A0 11. portmaster `cat ~/installed-port-list`

While this is the preferred procedure and I highly recommend it, it
does far more that the portupgrade procedure in the handbook. The man
page has a simpler (and more likely to leave old cruft lying around)
procedure, as well.
     Alternatively you could use portmaster -a -f -D to do an ``in place''
     update of your ports.  If that process is interrupted for any reason y=
ou
     can use portmaster -a -f -D -R to avoid rebuilding ports already rebui=
lt
     on previous runs.  However the first method (delete everything and rei=
n-
     stall) is preferred.
--=20
R. Kevin Oberman, Network Engineer
E-mail: kob6558@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vKJDBBr2f5OohoDVgZPVW3=b2FrunOBnEoHW%2BupNME_Q>