aptitude 在安装过程中自动删除软件包是正常的吗?

aptitude 在安装过程中自动删除软件包是正常的吗?

我通常通过apt-get或 软件中心 安装。对于安全删除工具,我使用 进行安装aptitude

sudo aptitude install secure-delete

aptitude但是,删除了一大堆包裹。

The following packages will be REMOVED:

Removing libasound2-plugins:i386 ...
Removing libasound2:i386 ...
Removing libpulse0:i386 ...
Removing libasyncns0:i386 ...
Removing nspluginwrapper ...
Removing nspluginviewer:i386 ...
Removing libgtk2.0-0:i386 ...
Removing libatk1.0-0:i386 ...
Removing libpango1.0-0:i386 ...
Removing libcairo2:i386 ...
Removing libthai0:i386 ...
Removing libdatrie1:i386 ...
Removing libsndfile1:i386 ...
Removing libflac8:i386 ...
Removing libgdk-pixbuf2.0-0:i386 ...
Removing libjack-jackd2-0:i386 ...
Removing libjasper1:i386 ...
Removing libjson0:i386 ...
Removing libnspr4-0d:i386 ...
Removing libnss3-1d:i386 ...
Removing libvorbisenc2:i386 ...
Removing libvorbis0a:i386 ...
Removing libogg0:i386 ...
Removing libpixman-1-0:i386 ...
Removing libsamplerate0:i386 ...
Removing libspeexdsp1:i386 ...
Removing libwrap0:i386 ...
Removing libxcb-render0:i386 ...
Removing libxcb-shm0:i386 ...
Removing libxcomposite1:i386 ...
Removing libxcursor1:i386 ...
Removing libxft2:i386 ...
Removing libxinerama1:i386 ...
Removing libxrandr2:i386 ...

但是我没有输入删除包的命令。

这正常吗?我可能因此丢失了依赖项,或者检查aptitude这些包是否不受依赖。

如何检查我的计算机上的软件是否缺少依赖项?

答案1

aptitude,始终删除过去作为依赖项自动安装的不再需要的包。它不提供显式autoremove命令。

apt-get仅在用户明确请求时使用命令删除此类软件包

sudo apt-get autoremove

或者当--auto-remove为其他命令提供该标志时,例如

sudo apt-get --auto-remove dist-upgrade

这两个实用程序都没有破坏任何依赖关系。

相关内容