FreeBSD:软件安装:修订间差异
imported>Riguz 无编辑摘要 |
无编辑摘要 |
||
(未显示1个用户的4个中间版本) | |||
第1行: | 第1行: | ||
搜索软件包 | 搜索软件包 | ||
<source lang="bash"> | <source lang="bash"> | ||
portsnap fetch | |||
portsnap extract | |||
portsnap update | |||
portsnap fetch update | |||
pkg search git | pkg search git | ||
pkg search -o git | pkg search -o git | ||
第15行: | 第21行: | ||
<source lang="bash"> | <source lang="bash"> | ||
pkg install curl | pkg install curl | ||
</source> | |||
升级 | |||
<source lang="bash"> | |||
pkg upgrade | |||
</source> | </source> | ||
删除 | 删除 | ||
<source lang="bash"> | <source lang="bash"> | ||
pkg delete curl | |||
</source> | |||
<source lang="bash"> | |||
# solve: pkg: repository meta has wrong version 2 | |||
pkg delete -f pkg | |||
pkg install pkg | |||
</source> | </source> | ||
[[Category:Linux/Unix]] | [[Category:Linux/Unix]] |
2021年2月4日 (四) 02:28的最新版本
搜索软件包
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