From owner-freebsd-ports@freebsd.org Thu Nov 16 21:20:03 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 8EF44DE9630 for ; Thu, 16 Nov 2017 21:20:03 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from dnvrco-cmomta02.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F56A6AB93 for ; Thu, 16 Nov 2017 21:20:02 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.0.11] ([76.183.153.52]) by cmsmtp with ESMTPA id FRZpexSIMLrBHFRZseXDCB; Thu, 16 Nov 2017 21:20:05 +0000 Date: Thu, 16 Nov 2017 15:19:58 -0600 From: Paul Schmehl Reply-To: Paul Schmehl To: FreeBSD Ports Subject: Re: Package database problems Message-ID: In-Reply-To: <20171116203405.GC2827@home.opsec.eu> References: <27599F2948EE17B91E77EB7F@Pauls-MacBook-Pro.local> <82935A8FFB5163556E158535@Pauls-MacBook-Pro.local> <8A2775F734F780DEC994C467@Pauls-MacBook-Pro.local> <20171116194924.GB2827@home.opsec.eu> <20171116203405.GC2827@home.opsec.eu> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-CMAE-Envelope: MS4wfOe3jBqeISfhlUMz8pJ3m6oxSVkMGIpDVhEXZKa3xF+4qHqXhIpvLgYlaOKAzyaGriM2ZpBHOZJGL4RitPGsGPi++Foft6vxeVDdC08dTlG2DeKCslLF VSEPBvfoixyT8/Xlth1y+tri7thOcMpqEjjmqi9xo9qUHzQ9WrMOsMIB1Q36BCy/jOIh2/HhaOMEQg== 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: Thu, 16 Nov 2017 21:20:03 -0000 --On November 16, 2017 at 9:34:05 PM +0100 Kurt Jaeger wrote: > > You probably have to clean it up. > > I would do this: > - use the list of old-style packages in /var/db/pkg, together > with the output of pkg info, to generate a list of > packages that you need after clean up. > My list looks like this, approx. 2000 entries: > ------------- > [...] > devel/automake > devel/automake-wrapper > devel/automoc4 > devel/binutils > devel/bison > [...] > ------------- > - Then build all the packages from your list via poudriere, > and generate a repo of all those up2date packages. > - Then (this is dangerous, if done via remote, keep a few > ssh sessions running in parallel, if one fails): > mkdir /usr/local/OLD > cd /usr/local > mv * OLD/ > - Now no packages are installed > - re-add all the packages, restore the config from OLD/... > Ugh. >> I didn't setup this server to begin with. I recall, a >> while back, instructions for switching to pkgng. Is that what wasn't >> done? > > Yes, something like that. Should I run pkg2ng now? Would that help? Paul Schmehl, Retired As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell