Portmaster/Portupgrade | pkg2ng

Matthew Seaman matthew at FreeBSD.org
Tue Oct 16 21:58:59 UTC 2012

On 16/10/2012 22:11, Jos Chrispijn wrote:
> The only issue I have is that this pkg2ng command doesn't work as this
> program* cannot be found so the command returns with a 'pkg2ng: Command
> not found.'
> Can someone tell me what I miss here?

Does this lead to enlightenment?

% pkg which `which pkg2ng`
/usr/local/sbin/pkg2ng was installed by package pkg-1.0.1

You did install ports-mgmt/pkg ?
/usr/local/sbin is on your $PATH? (or rather on root's $PATH)
Your shell is tcsh and you either have the autorehash variable set, or
manually ran rehash?

Beware that running pkg2ng converts your system to use pkgng.  This
makes the old pkg_tools commands (pkg_info, pkg_version, pkg_delete
etc.) useless -- they'll do nothing but whinge about a corrupted package
database. Once you've then started using pkgng to install or upgrade
packages, there isn't an easy way to revert to the old pkg_tools.  So be
sure you mean it if you choose to run it.



Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 264 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20121016/5cdec647/attachment.sig>

More information about the freebsd-ports mailing list