How to: Install a .deb file via the Command line?
Packages are manually installed via the
dpkg command (Debian Package Management System).
dpkg is the backend to commands like
aptitude, which in turn are the backend for GUI install apps like the Software Center and Synaptic.
Something along the lines of:
aptitude –> Synaptic, Software Center
But of course the easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands
aptitude that add a very nice user friendly approach to the backend dpkg, including but not limited to packaged dependencies, control over what is installed, needs update, not installed, broken packages, etc.. Lastly the
dpkg command which is the base for all of them.
Since dpkg is the base, you can use it to install packaged directly from the command line.
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. If that reports an error, you’ll have to sort out the dependencies yourself by following for example How do I resolve unmet dependencies?.
REMOVE A PACKAGE
sudo dpkg -r PACKAGE_NAME
For example if the package is called
askubuntu then you should do
sudo dpkg -r askubuntu.
Can we use Let's Encrypt, the free and open certificate authority?
Hola! gracias por la info, me sirvió el comando sacandole el nombre del server. En mi caso, fue una migración…
Yes 3rd option helped me too. I removed the WC key Values from config file then started working.
I know this is from 2014. But really, thank you!