preload
Nov 12

Action

apt-get command

aptitude command

Install foo

apt-get install foo

aptitude install foo

Search foo

apt-cache search foo

aptitude search foo

Remove foo

apt-get remove foo

aptitude remove foo

List reverse dependencies

apt-cache rdepends foo

aptitude ~D foo

Print information on priorities for foo

apt-cache policy foo

?

Download foo’s sources and build a binary .deb package

apt-get source –compile foo

?

How to upgrade your distribution
Find out current version of Debian that you are running:

cat /etc/debian_version

Example for upgrading sarge to etch or etch 4.0r1 to 4.0r2 …etc

aptitude update
aptitude dist-upgrade

來源:Aptitude – Debian Wiki

溫故知新

載入中…

相關文章:

Tagged with:

2 Responses to “[Linux] apt-get to aptitude 簡易對照”

  1. chiahsien Says:

    我猜呀!Lauct 應該是在玩 ubuntu,apt-get 挺好用,也很好玩,Fedora 上的 Yum 還沒有發展出來之前,這一支套件也曾被 Fedora 拿來用,很有意思。

    Lauct Reply:

    算猜對一半XD

    我是在玩 Debian,不過是裝在小台 NAS 上的。

Leave a Reply