Install .deb in Linux

How do I install .deb file?

You need to use dpkg package manager from shell/command prompt. dpkg is a tool to install, build, remove and manage packages. dpkg itself is controlled entirely via command line parameters. For example -i use to install .deb file.

To install package called package.deb type the following command:
Go to directory where package.deb is kept. For example if it is in /tmp directory:

(找到.deb文件的所在位置,比如說在/tmp目錄下,於是我們用下面的語言,cd是change directory的縮寫,就是把我們的命令鎖定在這一個/tmp目錄下)

$ cd /tmp

 

 


Type the following command:

(然後用下面的命令,package.deb換成我們下載的東西的名字,就是XXX.deb,這裏有一個小竅門,可以用tab鍵讓系統對命令進行自動補全哦~)

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