Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 May 2011 21:59:10 +0000
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        Polytropon <freebsd@edvax.de>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Does running ``# portupgrade -arRp '' prompt for options or updates everything without prompts?
Message-ID:  <BANLkTim=mtDsLJQq1K28iaH6tXbLvFnOSA@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1105061441520.32589@wonkity.com>
References:  <BANLkTinDDSsZFFAYQ=tpLOLdu4Wfog3ZpQ@mail.gmail.com> <alpine.BSF.2.00.1105051931240.28646@wonkity.com> <BANLkTikaY-=iLtvG9rdHfLpFFDpcZhQo1g@mail.gmail.com> <20110506190941.64bc8ee5.freebsd@edvax.de> <alpine.BSF.2.00.1105061153100.32123@wonkity.com> <BANLkTinSjeDAyh-vnN-RnR=zMm980HkayQ@mail.gmail.com> <BANLkTin_wHq-GLDzx9JDuTLQwuNJi+1i0Q@mail.gmail.com> <alpine.BSF.2.00.1105061441520.32589@wonkity.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, May 6, 2011 at 8:43 PM, Warren Block <wblock@wonkity.com> wrote:
> On Fri, 6 May 2011, Antonio Olivares wrote:
>>
>> On Fri, May 6, 2011 at 1:52 PM, Antonio Olivares
>>
>> Sorry for TOP POSTING :(, but do I run
>> # portmaster -a -f -D
>>
>> and do an in place update of all ports?
>> is this the recommended way or nuking and rebuilding?
>
> After the attempt to install every port, I'd remove all, update the ports
> tree, and install only the needed ports. =A0Right now you may have many
> installed that are not just unneeded but unwanted.
>

I am following the advice given in man portmaster:

<quote>
     Using portmaster to do a complete reinstallation of all your ports:
           1. portmaster --list-origins > ~/installed-port-list

     Print only the ports that have available updates.  This can be used as=
 an
     alias in your shell.  Be sure to fix the line wrapping appropriately.
           portmaster -L |
           egrep -B1 '(ew|ort) version|Aborting|installed|dependencies|
           IGNORE|marked|Reason:|MOVED|deleted|exist|update' | grep -v '^--=
'

           2. Update your ports tree
           3. portmaster -ty --clean-distfiles
           4. portmaster --check-port-dbdir
           5. portmaster -Faf
           6. pkg_delete -a
           7. rm -rf /usr/local/lib/compat/pkg
           8. Back up any files in /usr/local you wish to save,
              such as configuration files in /usr/local/etc
           9. Manually check /usr/local and /var/db/pkg
              to make sure that they are really empty
           10. Re-install portmaster
           11. portmaster `cat ~/installed-port-list`
</quote>

Mostly everything is step 11 :)  Will come back hopefully with a fully
updated machine.

Regards,

Antonio



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?BANLkTim=mtDsLJQq1K28iaH6tXbLvFnOSA>