linux版本
Install a package
sudo dpkg -i DEB_PACKAGE
For example if the package file is called askubuntu_2.0.deb
then you should do sudo dpkg -i askubuntu_2.0.deb
. If dpkg
reports an error due to dependency problems, you can run sudo apt-get install -f
to download the missing dependencies and configure everything.
原文地址:https://askubuntu.com/questions/40779/how-do-i-install-a-deb-file-via-the-command-line