FreeBSD package - 版本錯亂

在FreeBSD中,常常使用pkg_version -v指令來查看是否有軟體套件需要更新, 有時候會看到如下的狀況:
# pkg_version -v
autoconf-2.68 ! Comparison failed
automake-1.11.1 ! Comparison failed
libtool-2.2.10 > succeeds index (index has 2.2.6b)
這代表軟體套件內部資料庫有狀況, 此時可以下pkgdb -F指令來修護之:
# pkgdb -F
---> Checking the package registry database
[Updating the pkgdb in /var/db/pkg ... - 50 packages found (-0 +7) ....... done]
Stale origin: 'devel/autoconf268': perhaps moved or obsoleted.
-> The port 'devel/autoconf268' was moved to 'devel/autoconf' on 2010-12-08 because:
"Autotools cleanup"
Fixed. (-> devel/autoconf)
Stale origin: 'devel/automake111': perhaps moved or obsoleted.
-> The port 'devel/automake111' was moved to 'devel/automake' on 2010-12-08 because:
"Autotools cleanup"
Fixed. (-> devel/automake)
Stale origin: 'devel/libtool22': perhaps moved or obsoleted.
-> The port 'devel/libtool22' was moved to 'devel/libtool' on 2010-12-08 because:
"Autotools cleanup"
Fixed. (-> devel/libtool)

之後再下pkg_version -v就會得到正確的結果了。

留言

這個網誌中的熱門文章

D-BUS學習筆記

Cisco Switch學習筆記: EtherChannel

Cisco Switch學習筆記: interface的封包錯誤統計