FreeBSD:软件安装:修订间差异
imported>Riguz 无编辑摘要 |
无编辑摘要 |
||
(未显示另一用户的1个中间版本) | |||
第2行: | 第2行: | ||
<source lang="bash"> | <source lang="bash"> | ||
portsnap fetch | portsnap fetch | ||
portsnap extract | |||
portsnap update | |||
portsnap fetch update | |||
pkg search git | pkg search git | ||
第27行: | 第31行: | ||
<source lang="bash"> | <source lang="bash"> | ||
pkg delete curl | 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