0x1b
ls -l /var/db
total 57800
...
drwxr-xr-x 457 root wheel 13312 Dec 8 09:22 pkg
...
So, something was left behind after all.
find /usr/sbin -name pkg_*
zsh: no matches found: pkg_
find /usr/pkg/sbin -name pkg_*
zsh: no matches found: pkg_*
Yes, pkg_install is not there anymore.
ls -l /usr/pkg
total 204
...
drwxr-xr-x 458 root wheel 13312 Dec 8 09:51 pkgdb
drwxr-xr-x 6 root wheel 512 Dec 6 02:12 pkgdb.refcount
...
Good, these are in place now
ls -lp /usr/pkg/pkgdb | grep pkgin
drwxr-xr-x 2 root wheel 512 Dec 8 03:28 pkgin-20.8.0/
We need to address this and re-build pkgin. Later...
ls -lp /var/db/pkg | grep pkg
drwxr-xr-x 463 root wheel 13312 Dec 8 04:45 pkg/
drwxr-xr-x 2 root wheel 512 Dec 8 04:45 pkgconf-1.6.0/
-rw-r--r-- 1 root wheel 23699456 Dec 8 09:22 pkgdb.byfile.db
Hmm... so, these are the leftovers.
WARNING: I don't promisse this will work it would have been better to do it as described above. But, if you want to try... hope I got it all right
# mv /var/db/pkg /usr/pkg/pkgdb
# mv /var/db/pkgconf-1.6.0 /usr/pkg/pkgdb
# mv /var/db/pkg/pkgdb.byfile.db /usr/pkg/pkgdb
$ cd /usr/pkgsrc/
$ cvs up -dP
$ cd pkgtools/pkg_install
# make USE_CWRAPPERS=no install
$ cd /usr/pkg/sbin
# install -c pkg_add pkg_admin pkg_create pkg_delete pkg_info /usr/sbin/
$ cd /usr/pkgsrc/pkgtools/pkg_install
# make clean
# make clean-depends
# make distclean
EDIT: cd to /
and edit root's .profile
, moving /usr/pkg/sbin
before /usr/sbin
.
$ cd /usr/pkgsrc/pkgtools/pkgin
$ make
# make install
# make clean
# make clean-depends
# make distclean
Good luck!
EDIT: If, removing pkgin
fails we'll have to do it manually. Let me know how it goes.