The Handbook doc on "pkg" is badly out of date

Allan Jude freebsd at allanjude.com
Wed Jan 15 22:12:20 UTC 2014


On 2014-01-15 17:05, Warren Block wrote:
> On Wed, 15 Jan 2014, Paul Hoffman wrote:
>
>> On Jan 15, 2014, at 12:24 PM, Warren Block <wblock at wonkity.com> wrote:
>>
>>> The mysterious messages were due to a a default configuration file
>>> which I think is not installed with the latest version of pkg.
>>
>> It was in the "pkg" I got this morning, which reminded me of this sad
>> workflow.
>
> I installed the port.  I don't know how often the packages are updated.
>
>>> I switched a 9.2 system over to pkg a couple of days ago, and did
>>> what the Handbook says--really, just install pkg and run pkg2ng--and
>>> did not see those messages.
>>
>>
>> You might have this backwards. I'm pretty sure that the handbook
>> shows the old configuration information, and the Wiki shows the new.
>
> I don't understand how.  The Handbook mentions pkg.conf but does not
> show any entries for it, while the wiki shows a sample file.  Again, I
> believe the file changed, and it was the presence of the obsolete
> version that caused the messages.  The current port only installs
> pkg.conf.sample.
>
> Maybe it would help to be more specific: what needs to be changed in
> the Handbook version?  Without pkg.conf, the current version of pkg
> does not complain, so that seems okay.
> _______________________________________________
> freebsd-doc at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-doc
> To unsubscribe, send any mail to "freebsd-doc-unsubscribe at freebsd.org"
In 10.x and later, there is a /etc/pkg/freebsd.conf that contains the
default package site, and the format of pkg.conf changed

If you get the bootstrapped version of pkg on 9 that is still pkg 1.1.4
or whatever, it installs a pkg.conf that is the 'old' format
Upgrading to pkg 1.2 may cause extra warnings. If removing
/usr/local/etc/pkg.conf makes them go away, then that was the problem.

-- 
Allan Jude


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20140115/78ce774c/attachment-0001.sig>


More information about the freebsd-doc mailing list