APT for SUSE

suse本身就有yast2好用的管理系統可以使用,不過想在suse上使用apt的話也是可以,只需要安裝二個套件可以在suse上使用apt了,相當簡單

取得套件

下載 apt套件

安裝apt套件

# rpm apt-*.rpm

apt指令

apt-get update : 更新套件清單,在第一次使用apt時最好先更新一次,確保套件是新的

apt-get dist-update : 升級系統

apt-cache search : 搜尋套件,apt-cache search 套件名稱

apt-cache depends : 列出套件相依性,apt-cache depands 套件名稱

apt-get install : 安裝套件,apt-get install 套件名稱

apt-get clean : 清除暫存套件,當使用apt安裝套件時,apt會先下載套件下來安裝,所以可以使用這指令清空apt下載暫存套件

apt-get remove : 刪除套件,apt-get remove 套件名稱

參考資料

http://apt.nc.hcc.edu.tw/web/apt/apt.html

Related Posts with Thumbnails

相關文章

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>