[HEADSUP] current switched by default to pkgng

Lev Serebryakov lev at FreeBSD.org
Sat Nov 3 09:01:02 UTC 2012

Hello, Baptiste.
You wrote 3 ноября 2012 г., 3:56:22:

BD> The BSDmc project (http://code.google.com/p/bsdmc/) uses nanobsd
BD> and pkgng, have a look in particular at the
BD> following diff: http://code.google.com/p/bsdmc/source/detail?r=75
BD> Maybe you can find something helpful for you in there :)

   Unfortunately, it diverged with nanobsd long time ago and have
completely custom package installation function, very complex and
unobvious. Now I have only one problem with replacing `pkg_add' with
`pkg add' (I've implemented bootstrap of chrooted environment): `pkg
add' doesn't have `-F' flag, and attempt to add package twice (first
time as dependency and second time because simple nanobsd script
doesn't sort packages and add all of them, so required package could
be again added after dependant package) leads to non-success return
code :(

   Also, I could not find any documentation about system `pkg' command:
`man pkg' shows nothing, `pkg -h' doesn't work, etc. So it is
unobvious, where could I read about ASSUME_ALWAYS_YES, PACKAGESITE and
other variables, needed for automatic (non-interactive,
non-networked) bootstrap. Way to construct proper URL for pkg.txz
(with ABI, etc) from script is not clear, too, and automatic
downloading doesn't work in chrooted environment, as it doesn't have
configured resolver.

// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>

More information about the freebsd-current mailing list