![aptitude 在安装过程中自动删除软件包是正常的吗?](https://linux22.com/image/1094415/aptitude%20%E5%9C%A8%E5%AE%89%E8%A3%85%E8%BF%87%E7%A8%8B%E4%B8%AD%E8%87%AA%E5%8A%A8%E5%88%A0%E9%99%A4%E8%BD%AF%E4%BB%B6%E5%8C%85%E6%98%AF%E6%AD%A3%E5%B8%B8%E7%9A%84%E5%90%97%EF%BC%9F.png)
我通常通过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
这两个实用程序都没有破坏任何依赖关系。