My Computer Tips

Home | About | Categories | All Tips & Tutorials

How do I install a .deb package using the terminal in Ubuntu and Ubuntu based distributions

ID: 79

Category: Ubuntu

Added: 17th of April 2016

Updated On: Tutorial updated and rechecked on 4th of April 2024

Views: 3,903



I find it easier and quicker to install .deb packages using the terminal instead of the gdebi package installer.

To install the .deb package open your terminal and enter the following command.
Replace [package_name] with the name of the package you downloaded.

You will be required to enter your root password

sudo dpkg -i [package_name]

If there are errors with unresolved dependencies whilst installing the package, for example dpkg: dependency problems prevent configuration of {package_name} you can run the following command in the terminal afterwards
sudo apt-get install -f

Related Tips & Tutorials

Install multiple .deb files