I have gone through the using pkgng docs and googled this, but not only can I not find my mistake, I can't find anyone else with the same problem.
As I understand it, if I add
to /etc/make.conf portmaster(8) should use pkg(8). If I edit /etc/make.conf before installing any packages from ports, this should work without running
To confirm that whatever I'm doing wrong, I'm at least doing consistently, I've just tested this on a fresh installation of FreeBSD-9.2-RC4.
I made a fresh install. I then ran
I then edited /etc/make.conf (I created the file, actually, as this was the first entry), adding
. I confirmed that there were no typos. I then ran
Now that I had the ports tree, I changed directory into /usr/ports/ports-mgmt/portmaster and ran
I now ran
With this done I tried
Ergo, I am doing something wrong, but looking at the documents, and googling (with strings like pkgng portmaster, portmaster ignoring local.sqlite, and similar things) hasn't given me an answer. Therefore, I'd be grateful if someone would point out what I'm missing. (And, if they were really kind, tell me what documentation I've overlooked or misread.)
As I understand it, if I add
Code:
WITH_PKGNG=yes"
pkg2ng.To confirm that whatever I'm doing wrong, I'm at least doing consistently, I've just tested this on a fresh installation of FreeBSD-9.2-RC4.
I made a fresh install. I then ran
/usr/sbin/pkg which installed pkg.I then edited /etc/make.conf (I created the file, actually, as this was the first entry), adding
Code:
WITH_PKGNG=yes
portsnap fetch extract to build a ports tree.Now that I had the ports tree, I changed directory into /usr/ports/ports-mgmt/portmaster and ran
make install cleanI now ran
pkg info which showed that I had pkg(8) and portmaster(8) installed. (As well as dialog4ports(1), pulled in by portmaster(8).With this done I tried
portmaster -a. This should show that /usr/ports/ports-mgmt/pkg needs updating, as the earlier /usr/sbin/pkg pulls in an older version than exists in ports. However, it gives a message that no packages require an update. I then ran portmaster -L which shows me that 0 ports are installed. Ergo, I am doing something wrong, but looking at the documents, and googling (with strings like pkgng portmaster, portmaster ignoring local.sqlite, and similar things) hasn't given me an answer. Therefore, I'd be grateful if someone would point out what I'm missing. (And, if they were really kind, tell me what documentation I've overlooked or misread.)