forked from tldr-pages/tldr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dnf: add Chinese translation (tldr-pages#12802)
- Loading branch information
Red Guard
authored
May 22, 2024
1 parent
d796aff
commit cf7a36e
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# dnf | ||
|
||
> RHEL, Fedora 和 CentOS 的软件包管理工具(yum 的替代品)。 | ||
> 对于其他包管理器中的等效命令,请见 <https://wiki.archlinux.org/title/Pacman/Rosetta>. | ||
> 更多信息:<https://dnf.readthedocs.io>. | ||
- 更新已安装的包到最新可用版本: | ||
|
||
`sudo dnf upgrade` | ||
|
||
- 通过关键词搜索包: | ||
|
||
`dnf search {{关键词1 关键词2 ...}}` | ||
|
||
- 显示软件包的描述: | ||
|
||
`dnf info {{包}}` | ||
|
||
- 安装软件包(使用 `-y` 自动确认所有提示): | ||
|
||
`sudo dnf install {{包1 包2 ...}}` | ||
|
||
- 删除软件包: | ||
|
||
`sudo dnf remove {{包1 包2 ...}}` | ||
|
||
- 列出已安装的包: | ||
|
||
`dnf list --installed` | ||
|
||
- 查找哪些包提供给定命令: | ||
|
||
`dnf provides {{命令}}` | ||
|
||
- 查看所有过去的操作: | ||
|
||
`dnf history` |