FreeBSD下直接从网络安装ports软件

FreeBSD下只需要设定一个环境变量PACKAGEROOT

就能用命令pkg_add -r 直接从网络下载、安装ports里的软件

比如: setenv PACKAGEROOT ftp://ftp.freebsd.org/

或者

export PACKAGEROOT=ftp://ftp.freebsd.org/

这样的话就可以用命令 pkg_add -r lynx来装ports里的软件了(这里是lynx)

再或者自己做台server

ftp://ftp.freebsd.org/pub/FreeBSD/ 下的ports、packages目录mirror下来

就可以把PACKAGEROOT指向自己的机器

这样安装速度会快很多

我在公司就是这么做的

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word