From owner-freebsd-questions@freebsd.org Sat Apr 16 16:31:02 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 BAC15B10F0C for ; Sat, 16 Apr 2016 16:31:02 +0000 (UTC) (envelope-from bsduser@cloudzeeland.nl) Received: from ceto.cloudzeeland.nl (cloudzeeland.xs4all.nl [83.161.133.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloudzeeland.nl", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 845E71D30 for ; Sat, 16 Apr 2016 16:31:01 +0000 (UTC) (envelope-from bsduser@cloudzeeland.nl) Received: from ceto.cloudzeeland.nl (ceto.cloudzeeland.nl [10.10.10.30]) by ceto.cloudzeeland.nl (Postfix) with ESMTP id A1E2747B7876; Sat, 16 Apr 2016 18:30:58 +0200 (CEST) Received: from [10.10.10.34] (unknown [82.176.127.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by ceto.cloudzeeland.nl (Postfix) with ESMTPSA id 53DA147B77D6; Sat, 16 Apr 2016 18:30:58 +0200 (CEST) Subject: Re: Ports upgrade script To: John Levine , freebsd-questions@freebsd.org References: <20160416144120.10349.qmail@ary.lan> From: JosC Message-ID: Date: Sat, 16 Apr 2016 18:31:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20160416144120.10349.qmail@ary.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP on ceto.cloudzeeland.nl 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 16:31:02 -0000 In een bericht van 16-4-2016 16:41: > The usual approach is to use portmaster or portupgrade to upgrade your > installed ports. > > To install a new port you do what you've always done, go to the port's > directory under /usr/ports and type make install. > I feel a complete idiot now as this proves I was still using two different systems next to each other (if it works don't break it) for some years now. Now created a cronned batch for ports only: (1) Unattended (cron'd) #!/bin/sh cd /letc portmaster --clean-distfiles --no-confirm portsnap fetch update portmaster -L pkg version -l "<" (2) Only manual/in interactive mode: #!/bin/sh cd /usr/local/etc portmaster -y --clean-distfiles portmaster -y --clean-packages portmaster -y --check-depends portmaster -a Right? Thanks all for you input - it really was an eye opener. BR, Jos Chrispijn