CONTENTS
Lastmodified 2015-10-03 (土) 16:49:21
一旦、pkg2ngをして、pkgngに移行した後、pkg コマンドをupgradeするなどすると、pkg2ngをしてね、みたいなコメントがでますが、
/var/db/pkg以下に、古いpkgのディレクトリがあると、portversion のdbが、そのディレクトリ名のバージョンになってしまう様です。
root@piano2nd:/var/db/pkg # ll total 64044 -rw-r--r-- 1 root wheel 246 Aug 23 15:51 FreeBSD.meta drwxr-xr-x 2 root wheel 512 Feb 20 2014 apache22-2.2.25/ drwxr-xr-x 2 root wheel 512 Feb 20 2014 apr-1.4.8.1.5.2/ drwxr-xr-x 2 root wheel 512 Sep 23 2013 aspell-0.60.6.1_2/ drwxr-xr-x 2 root wheel 512 Sep 22 2013 autoconf-2.69/ drwxr-xr-x 2 root wheel 512 Sep 22 2013 autoconf-wrapper-20130530/ drwxr-xr-x 2 root wheel 512 Sep 22 2013 automake-1.14/ drwxr-xr-x 2 root wheel 512 Sep 22 2013 automake-wrapper-20130530/ drwxr-xr-x 2 root wheel 512 Sep 23 2013 bash-4.2.45/ drwxr-xr-x 2 root wheel 512 Mar 21 2014 bdftopcf-1.0.4/ drwxr-xr-x 2 root wheel 512 Sep 23 2013 bigreqsproto-1.1.2/ drwxr-xr-x 2 root wheel 512 Feb 13 2014 bind99-9.9.5_1/
この例では、apache22-2.2.25、apr-1.4.8.1.5.2などの古いディレクトリを消去してから pkg2ngを施行すると、portversionのdbは変化しない。
まぁ、pkg2ngを二回してしまうのが悪いっちゃぁ悪いんですが・・・(^^ゞ
因みに、/var/db/pkgは、以下の様になっているのが宜しいようで・・・。
root@piano2nd:/var/db/pkg # ll total 63012 -rw-r--r-- 1 root wheel 246 Aug 23 15:51 FreeBSD.meta -rw-r--r-- 1 root wheel 16351232 Sep 27 16:07 local.sqlite -rw-r--r-- 1 root wheel 44197888 Aug 22 06:26 repo-FreeBSD.sqlite -r--r--r-- 1 root wheel 3836409 Oct 3 03:56 vuln.xml
Total access 2048:本日 3:昨日 0