apt-get install with’ – ‘删除?
我正在寻找一些包( nautilus-terminal
),并意外地做到了这一点:
$ sudo apt-get install nautilus- Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apturl apturl-common libgail-3-0 linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: gnome-session-flashback nautilus nautilus-sendto nautilus-share ubuntu-desktop 0 upgraded, 0 newly installed, 5 to remove and 69 not upgraded. After this operation, 2 031 kB disk space will be freed. Do you want to continue? [Y/n] ^[[^C
这是非常危险的,因为删除比输入失败的简单破折号更难以输入错误。
这相当于apt-get remove
吗? 我找不到任何相关的文档。 编辑:除了俯瞰手册页…
来自man apt-get
:
安装 安装后跟一个或多个所需的包 安装或升级。 每个包都是包名,而不是包 完全限定的文件名(例如,在Debian系统中, apt-utils将是提供的参数,而不是 的apt-utils_1.2.10_amd64.deb)。 所需的所有包裹 还将检索为安装指定的包 安装。 /etc/apt/sources.list文件用于定位 想要的包裹。 如果连字符附加到包名称(带有 没有中间空间),如果确定的包将被删除 已安装。 类似地,加号可用于指定a 包安装。 后面这些function可用于覆盖 apt-get的冲突解决系统做出的决定。