首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >卸载显示意外包

卸载显示意外包
EN

Unix & Linux用户
提问于 2021-11-25 17:02:24
回答 1查看 33关注 0票数 1

在过去的几周里,我已经从一台服务器转到了多台服务器。我现在准备卸载,让我们从原来的服务器加密/ Certbot。(我有设置SSL终止HA代理。)

我试过apt remove --purge letsencrypt了。但这显示了我仍然需要的软件包:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bsdmainutils cpp-8 dh-python libapache2-mod-php7.3 libasan5 libbind9-161 libbison-dev libboost-iostreams1.67.0 libboost-system1.67.0 libc-dev-bin libcwidget3v5 libdns1104 libdns1110 libevent-2.1-6 libf2fs-format4 libf2fs5 libgfortran5
  libicu63 libip6tc0 libiptc0 libirs161 libisc1100 libisc1105 libisccc161 libisccfg163 libisl19 liblinear3 libllvm7 liblua5.2-0 liblwres161 libmemcachedutil2 libmpdec2 libperl5.28 libprocps7 libpython3.7 libpython3.7-minimal
  libpython3.7-stdlib linux-libc-dev ncal perl-modules-5.28 php-symfony-debug php7.3 php7.3-bcmath php7.3-fpm php7.3-mysql php7.3-pgsql php7.3-soap php8.0-memcached python3-asn1crypto python3-future python3-mock python3-pbr python3.7
  python3.7-minimal usb.ids
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  letsencrypt*
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
After this operation, 30.7 kB disk space will be freed.
Do you want to continue? [Y/n]

我在the 7.3的末尾,只剩下一个脚本在使用它。我不太会Python。请有人解释一下决定计算机不再需要的软件包列表的逻辑吗?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2021-11-25 17:16:06

apt跟踪每个包的安装是因为它是显式请求的,还是因为它是作为依赖项被自动拉入的。当所有需要的软件包本身都被移除时,自动安装的软件包就成为自动删除的候选程序。

要确定为什么包在特定的上下文中可以自动移动,就需要了解系统的历史;这里没有足够的信息可以说明。

然而,我们没有理由担心:apt告诉您,这些包是自动删除的候选程序,而不是要删除它们。只有当您要求apt删除包(例如,apt autoremove)时,包才会被删除。实际上,如果您确认了问题中的命令,那么只有letsencrypt将被删除。

您可以通过将它们标记为手动安装在将来避免这种情况,例如使用

代码语言:javascript
复制
sudo apt-mark manual bsdmainutils
票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/679072

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档