5.4.1. Getting Started with pkg

John Vinopal john at vinopal.com
Wed Oct 8 22:07:23 UTC 2014


Hi there,

I have a suggest improvement to the handbook.
https://www.freebsd.org/doc/handbook/pkgng-intro.html

Section "5.4.1. Getting Started with pkg" should discuss an issue with 
pkg2ng, namely that packages converted in this manner do not have 
correct meta-data regarding their "automatic" or "directly-installed" 
status.  Here is a suggested paragraph that will illuminate the issue 
for people upgrading via pkg2ng.

After <span class="application">pkg2ng</span> has finished, converted 
packages are marked as "non-automatic". Non-automatic packages are those 
directly installed, while "automatic" packages are installed as a 
dependency.  The older package system did not record this meta-data.  In 
order to use tools such as <code class="command">pkg autoremove</code>, 
you must manually set the "automatic" state for dependencies.  For 
example, <code class="command">pkg set -A 1 perl-5.14</code>.  See 
pkg(8) for more information.

Thanks for your hard work!

-john



More information about the freebsd-doc mailing list