Two Ways How To Install Deb Files on Ubuntu [& How to Remove Them Later]

User Avatar
👤 admin
🔴 Admin
✍️ The most important thing in the world is to not be alone.
⏳ Last active: 15 Apr 2025 at 16:01
📅 Created: 19 Mar 2021 at 14:29
👀 Viewed: 19 times
✉️ Send Email

This is going to be a beginners tutorial about installing and uninstalling .deb files in Ubuntu linux.

We are going to cover only the basics for simplicity and run the commands in the simplest way possible.

The first ways using DPKG


# Elevate as root

sudo su

# To list the file

ls

# Go to file dir

cd /home/username/Downloads

# Now installing using dpkg

dpkg -i google-chrome-stable.deb

For removing


# Find the install name of the package

dpkg -l | grep chrome

# Remove the package

dpkg -r google-chrome-stable

The second way is to use APT


# Elevate as root

sudo su

# To list the file

ls

# Go to file dir

cd /home/username/Downloads

# Now installing using APT

apt install google-chrome.deb

For removing


apt remove google-chrome-stable

Here is a 60 second video on the topic:

https://youtu.be/Tp9_6KCVWQI

If you want to comment: Login or Register