linux常用命令之Linux下軟體安裝命令,linux常用命令

來源:互聯網
上載者:User

linux常用命令之Linux下軟體安裝命令,linux常用命令

(一)apt線上安裝

1.sudo apt-get install w3m 安裝軟體包

2.sudo apt-get --reinstall w3m 重新安裝已經安裝但可能存在問題的軟體包

3.sudo apt-get update更新軟體源

4.sudo apt-get upgrade升級沒有依賴問題的軟體包

5.sudo apt-get dist-upgrade升級並解決依賴關係

6.sudo apt-get remove w3m移除已安裝的軟體包,包括與被移除軟體包有依賴關係的軟體包,但保留軟體包的設定檔

7.sudo apt-get purge w3m/sudo apt-get --purge removew3m與remove相同,但會移除設定檔

8.sudo apt-get autoremove移除之前被其他軟體包依賴,但現在不再被使用的軟體包

9.sudo apt-cache search softname1 softname2 softname3……在本地的資料庫中尋找有關軟體資訊

10.

(二)使用 dpkg 從本地磁碟安裝 deb 軟體包

1.sudo apt-get -d install emacs 只下載不安裝

2.sudo dpkg -I emacs24_24.3+1-2ubuntu1_amd64.deb安裝之前參看deb包的資訊

3.sudo dpkg -i emacs24_24.3+1-2ubuntu1_amd64.deb安裝指定deb包

4.sudo apt-get -f install 修複依賴關係的安裝

5.sudo dpkg -L emacs使用dpkg -L查看deb包目錄資訊

6.sudo dpkg -s emacs顯示已安裝軟體的資訊

7.sudo dpkg -S emacs搜尋已安裝的軟體包

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.