Linux

apt-get 和 aptitude 有什麼區別?

  • July 16, 2019

我不明白為什麼在安裝軟體的最小安裝中有兩個不同的程序。他們不做同樣的事情嗎?有很大的不同嗎?我到處都閱讀過使用 aptitude 而不是 apt-get 但我仍然不知道有什麼區別

aptitude 是 dpkg 的包裝器,就像 apt-get/apt-cache 一樣,但它是用於搜尋/安裝/刪除/查詢的一站式工具。apt 可能無法提供的一些範例:

$ aptitude why libc6
i   w64codecs Depends libc6 (>= 2.3.2)
$ aptitude why-not libc6
Unable to find a reason to remove libc6.

$ aptitude show libc6
Package: libc6
State: installed
Automatically installed: no
Version: 2.9-4ubuntu6
Priority: required
Section: libs
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Uncompressed Size: 12.1M
Depends: libgcc1, findutils (>= 4.4.0-2ubuntu2)
Suggests: locales, glibc-doc
Conflicts: libterm-readline-gnu-perl (< 1.15-2), 
tzdata (< 2007k-1), tzdata-etch, nscd (< 2.9)
Replaces: belocs-locales-bin
Provides: glibc-2.9-1
Description: GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs 
on the system. This package includes shared versions of the standard 
C library and the standard math library, as well as many others.

引用自:https://serverfault.com/questions/21105