FreeBSD:软件安装:修订间差异
imported>Riguz 创建页面,内容为“搜索软件包 <source lang="bash"> pkg search git pkg search -o git whereis git echo /usr/ports/*/*git* </source> Category:Linux/Unix” |
无编辑摘要 |
||
(未显示1个用户的6个中间版本) | |||
第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 | ||
whereis git | whereis git | ||
echo /usr/ports/*/*git* | echo /usr/ports/*/*git* | ||
</source> | |||
已安装的软件包 | |||
<source lang="bash"> | |||
pkg info | |||
</source> | |||
安装 | |||
<source lang="bash"> | |||
pkg install curl | |||
</source> | |||
升级 | |||
<source lang="bash"> | |||
pkg upgrade | |||
</source> | |||
删除 | |||
<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