Ports upgrade script

Warren Block wblock at wonkity.com
Sat Apr 16 16:06:53 UTC 2016


On Sat, 16 Apr 2016, Polytropon wrote:

> On Sat, 16 Apr 2016 16:34:16 +0200, JosC wrote:
>>
>> In een bericht van 16-4-2016 12:18:
>>>
>>> Portsnap isn't compatible with svn.
>>>
>> So I think I should revise the way I update my ports.
>> What I did with my 9.3 BSD was the following script (which worked
>> perfectly):
>>
>> !/bin/sh
>> cd /local/user/etc
>> svn update /usr/src
>> svn update /usr/ports
>> #
>> cd /usr/ports
>> make fetchindex
>> portsdb -fu
>> #
>> #
>> cd /usr/local/etc
>> portupgrade -na

Just adding: expect breakage if you do not routinely check 
/usr/ports/UPDATING before throwing portupgrade -a or portmaster -a at 
the new ports.

The ports team has really improved the situation, but once in a while 
there are still manual steps that must be taken before doing a mass 
upgrade of ports.

See http://www.wonkity.com/~wblock/docs/html/portupgrade.html for more 
detail.


More information about the freebsd-questions mailing list