Spread the love

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
Code language: Bash (bash)

For removing

# Find the install name of the package
dpkg -l | grep chrome

# Remove the package
dpkg -r google-chrome-stable
Code language: Bash (bash)

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
Code language: Bash (bash)

For removing

apt remove google-chrome-stable
Code language: Brainfuck (brainfuck)

Here is a 60 second video on the topic:

Leave a Reply