Freebsd

如何在 FreeBSD 上安裝 portmaster?

  • June 17, 2020

我正在嘗試在 FreeBSD 上安裝 portmaster,但我收到有關埠格式的錯誤:

root@freebsd:/usr/ports/ports-mgmt/portmaster # make install clean
===>  portmaster-3.17.8_1 pkg(8) must be version 1.6.0 or greater, but you
have 1.4.12. You must upgrade the ports-mgmt/pkg port first.
*** Error code 1

Stop.
make: stopped in /usr/ports/ports-mgmt/portmaster

如何將埠文件升級到最新版本?

  1. 更新您的埠樹
portsnap fetch update
  1. 導航到pkg目錄
cd /usr/ports/ports-mgmt/pkg

或者

cd /usr/ports/port-mgmt/pkg

對於舊版本。 3. 建構和安裝pkg

make config-recursive install distclean

引用自:https://unix.stackexchange.com/questions/248671