FreeBSD:软件安装

来自WHY42

搜索软件包

portsnap fetch
portsnap extract 
portsnap update

portsnap fetch update

pkg search git
pkg search -o git
whereis git
echo /usr/ports/*/*git*

已安装的软件包

pkg info

安装

pkg install curl

升级

pkg upgrade

删除

pkg delete curl


# solve: pkg: repository meta has wrong version 2
pkg delete -f pkg
pkg install pkg