Ports upgrade script

Valeri Galtsev galtsev at kicp.uchicago.edu
Sat Apr 16 18:22:33 UTC 2016


On Sat, April 16, 2016 9:34 am, 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
> #
>
> So this part I replaced now with:
>
> portsnap fetch update
>
> kind of lost how to continue now...

It looks like there is a typo in the first line, it probably should read

#!/bin/sh

("#" seems to be missing).

I'm sure, there are many answers that you received already. Here is just
what I do to update everything that comes from ports:

portsnap fetch exctract

portupgrade -acy

that's all. It may be useful to also install portdowngrade  - in case you
ever need to roll something back to the version you had before you run
portupgrade.

Valeri



>
> BR, Jos
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>


++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++


More information about the freebsd-questions mailing list