To install a .deb file you can use the dpkg command-line tool. dpkg is a package manager for Debian-based systems like Debian, Ubuntu, and their derivatives. It is used to install, remove, and manage software packages on the system. dpkg works directly with .deb packages, which contain the files and metadata necessary for software installation.
Open Terminal and go to the directory where the *.deb file is located. Use the following command to install a *.deb file.
sudo dpkg -i <file.deb>
orsudo dpkg -i /path/to/file.deb
Replace “/path/to/file.deb” with the actual path to your *.deb file.
After running the command, dpkg will install the .deb package and display any relevant output or error messages in the terminal.
Example of Google Chrome installation
sudo dpkg -i google-chrome-stable_current_amd64.deb
(Reading database ... 245799 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (124.0.6367.91-1) over (122.0.6261.111-1) ...
Setting up google-chrome-stable (124.0.6367.91-1) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...