How to install deb files using Terminal in Ubuntu

In this guide i am going to show you how to install .deb files using Terminal you can install via Ubuntu Software app but i prefer to install via Terminal.

First thing we need to do is download the app from the website we want for example i am going to be installing discord in this guide. Once we downloaded the program we want to install the location of downloaded files is Downloads under /home/username/Downloads.

open up Terminal by pressing Ctrl Alt T or right click on the Desktop then press Open Terminal. Once Terminal is open we need to change our location by typing cd Downloads if the downloaded file is on the Desktop you can just type cd Desktop providing your in the home location. Once we are at our location of the file we downloaded we need to type ls, ls shows all the files in that location it should look something like this,

Now you should see the downloaded file, we now need to type the following,

sudo apt install ./name.deb the deb name is the name of the file we downloaded earlier, my deb file is sudo apt install ./discord-0.0.10.deb -y once we done typing we need to hit enter on the keyboard you will be asked to enter your password hit enter and the .deb file has installed.

Now you have installed the .deb file. Here is the app i just installed.

Hope this guide helps you. Enjoy.

Author:

Leave a Reply

Your email address will not be published.