3 Ways to install .deb files

Debian package files, or .deb files, contain software packages that can be installed on a Debian-based Linux system. Here are three ways you can install .deb files on a Linux system:

First Method: Using the dpkg command: You can use the dpkg command to install a .deb file on your system. This command is often used to install individual packages or to install packages that have been downloaded manually. To install a .deb file with dpkg, use the following command:

sudo dpkg -i package.deb

Second Method: Using the apt command: The apt command is a package manager for Debian-based systems that is used to install, update, and remove packages. You can use the apt command to install a .deb file by specifying the file name as an argument:

sudo apt install ./package.deb

Third Method: Using a graphical package manager: Many Linux desktop environments include a graphical package manager that allows you to install .deb files by simply double-clicking on them. For example, on Ubuntu, you can use the Ubuntu Software application to install .deb files.