From owner-freebsd-questions@freebsd.org Thu Sep 26 15:59:44 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AD3C812B511 for ; Thu, 26 Sep 2019 15:59:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46fKPX4BKXz4RWj for ; Thu, 26 Sep 2019 15:59:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: matthew/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 563E915505 for ; Thu, 26 Sep 2019 15:59:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.212.184.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 77EE82162 for ; Thu, 26 Sep 2019 15:59:42 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/77EE82162; dkim=none; dkim-atps=neutral Subject: Re: ports and packages installed on one system, how to make pkg only To: freebsd-questions@freebsd.org References: <20190926151216.GB4027@bastion.zyxst.net> From: Matthew Seaman Message-ID: Date: Thu, 26 Sep 2019 16:59:27 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190926151216.GB4027@bastion.zyxst.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2019 15:59:44 -0000 On 26/09/2019 16:12, tech-lists wrote: > Possibly a silly question -: > > There is a system that has a mix of ports installed via the traditional > method > (local ports tree) *and* ports installed via pkg. > > I want the system to use pkg entirely for space and cpu reasons. > > Will pkg upgrade -f do what I want without having to go through each > installed port? In other words, will pkg upgrade -f act upon the ports that > have been compiled and installed via the local ports tree? > Or would portmaster be a better tool for this purpose? A pkg is what you get from compiling a port. Once the port is installed it's a pkg and there's no functional difference from a pkg installed from one of the package repositories. Or, in other words, just update your machine from the pkg repos. It will replace anything that's out of date, no problem. There's no particular need to force an update on all packages -- if it's already there and working OK, then my inclination would be to leave it be. Cheers, Matthew