Repair pkgng

Kevin Oberman rkoberman at gmail.com
Wed Apr 9 03:52:30 UTC 2014


On Tue, Apr 8, 2014 at 12:44 PM, Melvyn Sopacua <melvyn at magemana.nl> wrote:

> Hi,
>
> On Wed, 2 Apr 2014, Jakob Breivik Grimstveit wrote:
>
>
>  /var/db/pkg only contains these files:
>>
>> $ find /var/db/pkg
>> [...]
>> /var/db/pkg/libyaml-0.1.6
>> /var/db/pkg/libyaml-0.1.6/distfiles
>> /var/db/pkg/gcc-ecj-4.5
>> /var/db/pkg/gcc-ecj-4.5/distfiles
>> /var/db/pkg/cmake-modules-2.8.10.2
>> /var/db/pkg/cmake-modules-2.8.10.2/distfiles
>> [...]
>>
>
> Why do you have files that portmaster sticks in /var/db/ports in
> /var/db/pkg?
> Did you perhaps switch those directories on restore or have a faulty
> value in PORT_DBDIR?
> If so, does +CONTENTS exist in /var/db/ports/libyaml-0.1.6?
>

No, once you run pkgng, these files are in /var/db/pkg. The only files in
/var/db/ports are options files.

What a large number of people seem to miss is that pkgng no longer uses
/var/db/pkg/PORTNAME. It uses only /var/db/pkg/local.sqlite. All of the
stuff that used to be in the /var/db/pkg/PORTNAME directories like
+CONTENTS is obsolete. If you have it, it's leftovers from before
converting to pkgng except for distfiles.
-- 
R. Kevin Oberman, Network Engineer, Retired
E-mail: rkoberman at gmail.com


More information about the freebsd-ports mailing list