作者 主題: 2006.7.3 有關 portupgrade 的問題 ~ 提醒大家一下  (閱讀 4367 次)

0 會員 與 1 訪客 正在閱讀本文。

bojack

  • 懷疑的國中生
  • **
  • 文章數: 60
    • 檢視個人資料
擷錄一下 /usr/ports/UPDATING 的部份文字
引用

    20060703:
    AFFECTS: users of sysutils/portupgrade
    AUTHOR: sem@FreeBSD.org

    Because portupgrade had a problem with detecting Berkley DB version 2
    or newer, and the default database format is now set to use these
    versions, you can end up with a portupgrade that does not work with
    older databases. A quick fix is to remove the databases, type:
    『rm /var/db/pkg/pkgdb.db /usr/ports/INDEX*.db’.
    portupgrade will recreate them automatically. It does absolutely no harm.

    If you do not want remove the databases, you should detect what database
    type do you use, and set the port options for portupgrade accordingly.
    Follow these instructions:

    - run 『pkgdb -fu’ *before* upgrading and take a look on the output.
    You can see database format there as: format:XXX, where XXX is your
    current database format.
    - Go to portupgrade port directory and configure the port with
    `make config’ command. If you have bdb_* format, then turn on the BDB4
    option. If you have bdb1_* format, then turn off BDB4 and turn on
    the BDB1 option. If you have dbd_hash format, then turn off all options.
    - Upgrade portupgrade.

    Note: if you change database format with changing port options,
    you should remove the ruby-bdb* port that you don’t need anymore.
    Alternatively, you can hard code database format in your pkgtools.conf.

若在 2006.7.3 更新完 portupgrade 後的人,記得要做下面動作喔 ~
引用
Shell > cd /var/db/pkg
Shell > rm pkgdb.db
Shell > pkgdb -fu

hook

  • 可愛的小學生
  • *
  • 文章數: 15
    • 檢視個人資料
2006.7.3 有關 portupgrade 的問題 ~ 提醒大家一下
« 回覆 #1 於: 2006-08-12 10:51 »
bojack 筆誤 修正一下

Shell > cd /var/db/pkg
Shell > rm pkgdb.db
Shell > pkgdb -fu

bojack

  • 懷疑的國中生
  • **
  • 文章數: 60
    • 檢視個人資料
2006.7.3 有關 portupgrade 的問題 ~ 提醒大家一下
« 回覆 #2 於: 2006-08-12 11:00 »
引述: "hook"
bojack 筆誤 修正一下

Shell > cd /var/db/pkg
Shell > rm pkgdb.db
Shell > pkgdb -fu


已修正 ... Thanks  :)