/usr/local/etc/pkg.conf

I'm trying figure out when /usr/local/etc/pkg.conf gets created... If for example you set up your own repository using /usr/local/etc/pkg/repos/my-repo.conf and you haven't yet run pkg install xyz should the command work?

Actually looking at /usr/local/etc/pkg.conf it suggests that the file is not really necessary, so what is it for? Just to override default settings?
 
I'm trying figure out when /usr/local/etc/pkg.conf gets created...
When you first install ports-mgmt/pkg.
If for example you set up your own repository using /usr/local/etc/pkg/repos/my-repo.conf and you haven't yet run pkg install xyz should the command work?
Yes, pkg(7) will bootstrap from a custom repository, then restart pkg(8) to run the install. Note the difference between pkg(7) and pkg(8).

Just to override default settings?
Exactly.
 
No, periodic is part of base.
You're right, but they are referring to the files in /usr/local/etc/:
Code:
$ pkg list pkg | grep /etc/
/usr/local/etc/bash_completion.d/_pkg.bash
/usr/local/etc/periodic/daily/411.pkg-backup
/usr/local/etc/periodic/daily/490.status-pkg-changes
/usr/local/etc/periodic/security/410.pkg-audit
/usr/local/etc/periodic/security/460.pkg-checksum
/usr/local/etc/periodic/weekly/400.status-pkg
/usr/local/etc/pkg.conf.sample
 
You're right, but they are referring to the files in /usr/local/etc/:
Code:
$ pkg list pkg | grep /etc/
/usr/local/etc/bash_completion.d/_pkg.bash
/usr/local/etc/periodic/daily/411.pkg-backup
/usr/local/etc/periodic/daily/490.status-pkg-changes
/usr/local/etc/periodic/security/410.pkg-audit
/usr/local/etc/periodic/security/460.pkg-checksum
/usr/local/etc/periodic/weekly/400.status-pkg
/usr/local/etc/pkg.conf.sample
You'r too fast. I didn't had time to correct my own error.
 
Back
Top