tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgdb



On Thu, 17 Dec 2020, John D. Baker wrote:

  # cd /usr/pkg/pkgdb.refcount
  # find . -type f -exec grep -l "/var/db/pkg" {} \; \
| sh -c 'while read f ; do echo "sed '\'s,/var/db/pkg,/usr/pkg/pkgdb,g\'' $f > /tmp/foo ; rm $f ; mv /tmp/foo $f" ; done' | sh -v

(Improved quoting for 'sed' command.)

It appears that packages updated after the pkg_install/pkgsrc changes for
the new PKG_DBDIR will receive new entries in "pkgdb.refcount" reflecting
the new PKG_DBDIR.  Entries for older versions/PKGREVISIONs or packages
not updated are left unchanged.

Running 'pkg_admin rebuild{,-tree}' seems not to have any effect on the
old pkgdb.refcount entries, but appears to be harmless.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index