We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca74abb commit 6f40d92Copy full SHA for 6f40d92
1 file changed
docs/ops/package.md
@@ -95,6 +95,18 @@ The following packages will be REMOVED:
95
96
某些软件会根据文件名的字典序来决定配置的优先级,因此这里使用 `99` 作为前缀,确保这个配置文件在其他配置文件之后被读取。
97
98
+!!! tip "为什么某个包会被安装"
99
+
100
+ 由于推荐关系的存在,有时候在安装某个包时,会带上一些看起来无关的包。可以使用[下文介绍的 aptitude](#apt-frontend) 的 `why` 命令查看,例如确认为什么 `apt install lightdm` 会安装 `plymouth`:
101
102
+ ```console
103
+ $ aptitude why lightdm plymouth
104
+ p lightdm Depends lightdm-gtk-greeter | lightdm-greeter
105
+ p lightdm-gtk-greeter Recommends desktop-base
106
+ p desktop-base Recommends plymouth-label
107
+ p plymouth-label Depends plymouth (= 24.004.60-5)
108
+ ```
109
110
### 搜索包 {#search}
111
112
Debian 与 Ubuntu 均提供了网页端搜索软件包的服务:[Debian 软件包](https://packages.debian.org/)、[Ubuntu Packages Search](https://packages.ubuntu.com/)。不过,使用 apt 工具搜索来快得多。
0 commit comments