제거 시 예기치 않은 패키지가 표시됨

제거 시 예기치 않은 패키지가 표시됨

지난 몇 주 동안 저는 단일 서버 설정에서 다중 서버 설정으로 전환했습니다. 이제 제거하겠습니다.암호화하자/인증서 로봇원본 서버에서. (나는 가지고있다SSL 종료 설정고가용성 에이전트.)

나는 노력했다 apt remove --purge letsencrypt. 그러나 이것은 여전히 ​​필요한 패키지를 보여줍니다.

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]

저는 PHP7.3의 마지막 단계에 있으며 이를 사용하는 스크립트는 1개만 남아 있습니다. 저는 파이썬에 별로 익숙하지 않습니다. 컴퓨터에 더 이상 필요하지 않은 패키지 목록을 결정하는 논리를 설명할 수 있는 사람이 있습니까?

답변1

apt명시적인 요청으로 인해 설치되었는지 또는 종속성으로 자동 도입되었는지 여부에 관계없이 모든 패키지를 추적합니다. 자동 설치가 필요한 모든 패키지가 자체적으로 제거되면 자동으로 설치된 패키지는 자동 제거 대상이 됩니다.

특정 상황에서 패키지가 자동 제거 가능하게 된 이유를 확인하려면 시스템 기록에 대한 지식이 필요합니다. 여기서 설명할 정보는 충분하지 않습니다.

그러나 당황할 이유가 없습니다. apt이는 해당 패키지가 자동 제거 대상이라는 것을 알려주는 것이지 제거할 것이라는 의미는 아닙니다. apt이러한 패키지는 제거를 요청한 경우 apt autoremove에만 제거됩니다 (예:). 실제로 는 질문의 명령을 확인 해야만 letsencrypt제거됩니다 .

앞으로는 다음을 통해 이를 방지할 수 있습니다.수동 설치로 표시,예를 들어

sudo apt-mark manual bsdmainutils

관련 정보