From owner-freebsd-questions@FreeBSD.ORG Thu May 22 16:14:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 677FB4A6 for ; Thu, 22 May 2014 16:14:11 +0000 (UTC) Received: from fep12.mx.upcmail.net (fep12.mx.upcmail.net [62.179.121.32]) by mx1.freebsd.org (Postfix) with ESMTP id BE3572200 for ; Thu, 22 May 2014 16:14:09 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep12-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20140522161407.HHVN62019.viefep12-int.chello.at@edge03.upcmail.net> for ; Thu, 22 May 2014 18:14:07 +0200 Received: from [192.168.1.160] ([86.101.30.243]) by edge03.upcmail.net with edge id 54E71o00d5EjbRA034E7eD; Thu, 22 May 2014 18:14:07 +0200 X-SourceIP: 86.101.30.243 Message-ID: <537E224C.9010000@shopzeus.com> Date: Thu, 22 May 2014 18:14:04 +0200 From: =?ISO-8859-1?Q?Nagy_L=E1szl=F3_Zsolt?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: pkg upgrade not working properly [was: pkgng messed up] References: <5374C16E.6000000@shopzeus.com> <44k39n2kg1.fsf@lowell-desk.lan> <5375B772.2050700@shopzeus.com> <537C4D66.6010306@shopzeus.com> <537C53E9.50905@FreeBSD.org> <537CD47A.6050802@shopzeus.com> <537CD7E3.6020501@freebsd.org> <537CF453.7090105@shopzeus.com> In-Reply-To: <537CF453.7090105@shopzeus.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2014 16:14:11 -0000 2014.05.21. 20:45, Nagy László Zsolt wrote: > >> You need to identify every package generating these sort of conflicts, >> and then tell pkg that it should use a different port (identified by >> port origin) for any upgrades using 'pkg set' like so: >> >> pkg set -o category/old-port:category/new-port >> >> So in the case of replacing postgresql93-client with postgresql90-client >> you run: >> >> pkg set -o >> databases/postgresql93-client:databases/postgresql90-client >> >> Now when you run your 'pkg upgrade' it will tell you it is upgrading >> (sic) postgresql93-client to postgresql90-client. > > Thank you. It is funny I have already tried this but in the other > direction e.g. > > pkg set -o > databases/postgresql90-client:databases/postgresql93-client > > I guess I did that because it was that way with the old portmaster. > > This trick helped me with postgresql, but not with perl. Here is the > problem: > > pkg set -o lang/perl5.16:lang/perl5.12 > pkg upgrade > > Then I still get these messages: > > pkg: WARNING: locally installed perl-5.12.4_4 conflicts on > /usr/local/man/man1/xsubpp.1.gz with: > - perl5-5.16.3_9 > > Which is silly because the locally installed perl is NOT 5.12 but 5.14: > > root@backup:/usr/ports # perl -version > > This is perl 5, version 14, subversion 4 (v5.14.4) built for > amd64-freebsd > > And hey, perl5.12 is not under ports/lang anymore. What can I do with > this? > All right, I guess nobody knows the answer. I give up on this one. Very bad first impression on pkg! Next question: how do I remove all packages and reinstall all of them completely, from binaries? Is this possible with the pkg command? Or should I use pkg_delete