From owner-freebsd-ports@freebsd.org Wed Dec 27 19:48:16 2017 Return-Path: Delivered-To: freebsd-ports@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 10495EA9150 for ; Wed, 27 Dec 2017 19:48:16 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C9CA9735E3 for ; Wed, 27 Dec 2017 19:48:15 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1eUHgX-0000OF-Jn; Wed, 27 Dec 2017 20:48:17 +0100 Date: Wed, 27 Dec 2017 20:48:17 +0100 From: Kurt Jaeger To: Christian Weisgerber Cc: freebsd-ports@freebsd.org Subject: Re: How to reinstall pkg(8) itself? Message-ID: <20171227194817.GJ2827@home.opsec.eu> References: <20171227155358.GI2827@home.opsec.eu> <20171227161245.GA42272@lorvorc.mips.inka.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171227161245.GA42272@lorvorc.mips.inka.de> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2017 19:48:16 -0000 Hi! > > > You have pkg(8) installed, but want to recompile and reinstall it. > > > How do you do this? > > > > cd /usr/ports/ports-mgmt/pkg > > make install > > ===> Installing for pkg-1.10.3_1 > ===> Checking if pkg already installed > ===> pkg-1.10.3_1 is already installed > You may wish to ``make deinstall'' and install this port again > by ``make reinstall'' to upgrade it properly. If it tells you to make deinstall make reinstall then I use that in almost every case and it fixes it. I don't remember a case where this did not fix it. -- pi@opsec.eu +49 171 3101372 3 years to go !