debian9.6安裝卸載軟件(dpkg方式)

關於apt-get的請看我的博文(debian9.6安裝卸載軟件(apt-get方式))。

1,下載

dpkg方式安裝的都是要下載的.deb文件:xxxx.deb。

2,安裝(install)

guoyanzhang@bogon:~$ dpkg -i xxxx.deb

3,卸載(remove)

guoyanzhang@bogon:~$ dpkg -r xxxx

4,看是否安裝成功(小s,status)

guoyanzhang@bogon:~$ dpkg -s xxxx

5,搜索包含xxxx的文件(大s,search)

guoyanzhang@bogon:~$ dpkg -S xxxx

6,列出包安裝到系統中的文件(listfiles)

​guoyanzhang@bogon:~$ dpkg -L xxxx​

7,卸載並刪除配置文件(purge)

guoyanzhang@bogon:~$ dpkg -P xxxx

8,看看dpkg包的架構 (後面不需要參數,我的是amd64)

guoyanzhang@bogon:~$ dpkg --print-architecture

 9,以上的平時用就可以了,其他的man就可以了

guoyanzhang@bogon:~$ man dpkg

參考:https://baike.baidu.com/item/linux/27050?fr=aladdin

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章