FreeBSD系统更新与软件安装方法

1、系统更新fetch

freebsd-update fetch
freebsd-update install

2、软件源更新(相似yum update、apt-get update)ui

一、取回源spa

portsnap fetch

二、解压firefox

portsnap extract

三、更新code

portsnap update

3、编译安装软件包blog

更新后软件包列表在/usr/ports/目录中get

查询软件包:it

cd /usr/ports/
make search name=软件名
make quicksearch name=软件名

安装软件包:编译

cd /usr/ports/www/firefox
make install firefox

卸载软件包:class

cd /usr/ports/www/firefox
make deinstall firefox

与yum、apt-get、aptitude不一样,BSD软件安装为编译安装,时间比较长。

存在依赖的包,在安装过程当中会弹出蓝色选择安装界面。

4、非编译安装软件包(相似yum、aptitude)

pkg install 软件名
相关文章
相关标签/搜索