Bug 180658

Summary: [handbook] add detail to pkgng part of the handbook
Product: Documentation Reporter: Michael W Lucas <mwlucas>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Michael W Lucas 2013-07-19 17:30:00 UTC
The pkgng setup for 9.1 tells users to use the pkg command to convert
to pkgng. The pkg command is not suitable for scripting or automated
installs, as it requires human intervention. You can still use pkg_add
-r pkg to perform the conversion, however.

Fix: 

I don't have a current docs hacking environment set up, but I figured
if I wrote some text and sent it in an active committer would happily
take it. At least, that's what we did back in FreeBSD's Bronze
Age. ;-)

I would recommend some text like this.

FreeBSD 9.1 and later includes a utility for interactive
"bootstrapping" of pkgng.  This bootstrap utility downloads and
installs pkgng. To bootstrap the system, run:

# /usr/sbin/pkg

For non-interactive pkgng installs use the pkgng package, as used in
older FreeBSD versions.
How-To-Repeat: 
Try to write an Ansible playbook to convert from pkg_add to pkgng
while using pkg.
Comment 1 Benedict Reuschling freebsd_committer freebsd_triage 2013-10-06 16:42:41 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Michael,

Dru Lavigne recently updated the pkgng part of the handbook with the
instructions you are referring to. Can you check to see whether that
will solve the PR?

Thanks & best regards

Benedict Reuschling
FreeBSD Documentation Committer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJRhPEACgkQTSZQLkqBk0ihqgCeMhIHT9Mc6PWA93MN8hXWCZvP
IZAAn0xc3b9wTIu+nASp/hPefSoxyEC+
=SWkD
-----END PGP SIGNATURE-----
Comment 2 mwlucas 2013-10-07 00:57:42 UTC
Looks good to me, go ahead & close. Thanks!

On Sun, Oct 06, 2013 at 05:42:41PM +0200, Benedict Reuschling wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Michael,
> 
> Dru Lavigne recently updated the pkgng part of the handbook with the
> instructions you are referring to. Can you check to see whether that
> will solve the PR?
> 
> Thanks & best regards
> 
> Benedict Reuschling
> FreeBSD Documentation Committer
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> 
> iEYEARECAAYFAlJRhPEACgkQTSZQLkqBk0ihqgCeMhIHT9Mc6PWA93MN8hXWCZvP
> IZAAn0xc3b9wTIu+nASp/hPefSoxyEC+
> =SWkD
> -----END PGP SIGNATURE-----

-- 
Michael W. Lucas  -  mwlucas@michaelwlucas.com, Twitter @mwlauthor 
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e
coupon code "ILUVMICHAEL" gets you 30% off & helps me.
Comment 3 Benedict Reuschling freebsd_committer freebsd_triage 2013-10-07 07:34:07 UTC
State Changed
From-To: open->closed

The issue was fixed by an update to the pkgng chapter of the handbook. 
Thanks for filing the PR. closed!