ref: http://www.debian.org/doc/manuals/quick-reference/ch-package.zh-tw.html [主要的套件管理工具] dpkg – 安裝 Debian 套件的工具 apt-get – APT 安裝套件的指令 a...
ref: http://www.debian.org/doc/manuals/quick-reference/ch-package.zh-tw.html
[主要的套件管理工具]
- dpkg – 安裝 Debian 套件的工具
- apt-get – APT 安裝套件的指令
- aptitude – 進階級的文字介面的 APT 前端工具
- synaptic – 圖形介面的 APT 前端工具
- dselect – 使用選單介面的套件管理工具
- tasksel – 安裝 task
[dpkg]
- dpkg-reconfigure - 重新設定一個已經安裝的套件 (如果它是使用 debconf 的話)
- dpkg-source - 管理套件源碼檔案
- dpkg-buildpackage - 自動重新編建套件檔案
- apt-cache - check package archive in local cache
[aptitude](建議:使用這個)
- aptitude upgrade (或 apt-get upgrade 或 aptitude dist-upgrade 或 apt-get dist-upgrade)
這樣會跟隨testing版本 — 他們會安裝目前testing版本上可提供升級的套件以及其相依的軟體。 - apt-get dselect-upgrade
這會跟隨testing版本 — 上述指令升級的方法是依照dselect的處理方式來決定的。 - aptitude install package/unstable
由 unstable distribution 安裝 package ,並由 testing distribution 安裝相依的套件。 - aptitude install -t unstable package
將 unstable 的 Pin-Priority 設為 990,會由 unstable distribution 安裝 package,也從 unstable distribution 安裝相依的套件。 - apt-cache policy foo bar ...
檢查 foo bar ... 套件的狀態。 - aptitude show foo bar ... | less (或 apt-cache show foo bar ... | less)
檢查 foo bar ... 套件的資料。 - aptitude install foo=2.2.4-1
安裝 foo 套件的特定版本 2.2.4-1 。 - aptitude install foo bar-
安裝 foo 套件,並移除 bar 套件 - aptitude remove bar
移除 bar 套件但不刪除設定檔。 - aptitude purge bar
移除 bar 並刪除其設定檔。