From owner-freebsd-questions@freebsd.org Sat Apr 16 18:22:33 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D55CB11509 for ; Sat, 16 Apr 2016 18:22:33 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.70.90]) by mx1.freebsd.org (Postfix) with ESMTP id 26BFC1B07 for ; Sat, 16 Apr 2016 18:22:32 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 1BA07CB8CA0; Sat, 16 Apr 2016 13:00:07 -0500 (CDT) Received: from 76.193.16.109 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Sat, 16 Apr 2016 13:00:07 -0500 (CDT) Message-ID: <57356.76.193.16.109.1460829607.squirrel@cosmo.uchicago.edu> In-Reply-To: <2e223983-d2ff-fd97-caba-732fd92aa20b@cloudzeeland.nl> References: <2daca22c-7719-0776-fbe8-3c37021298bf@cloudzeeland.nl> <2e223983-d2ff-fd97-caba-732fd92aa20b@cloudzeeland.nl> Date: Sat, 16 Apr 2016 13:00:07 -0500 (CDT) Subject: Re: Ports upgrade script From: "Valeri Galtsev" To: "JosC" Cc: "Anton Sayetsky" , "FreeBSD Questions" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2016 18:22:33 -0000 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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++