码迷,mamicode.com
首页 > 其他好文 > 详细

FreeBSD系统更新与软件安装

时间:2016-01-17 21:37:33      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

一、系统更新(类似yum update、apt-get update)

1、取回源

portsnap fetch

2、解压

portsnap extract

3、更新

portsnap update

二、安装软件包

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

查询软件包:

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

安装软件包:

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

卸载软件包:

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

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

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

FreeBSD系统更新与软件安装

标签:

原文地址:http://www.cnblogs.com/imzye/p/5137771.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!