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