Installing a .deb package with all dependencies on Ubuntu or Debian can be done easily using the terminal.
Method 1: Using apt
Command
- Download the .deb file from a trusted source.
- Open the terminal and navigate to the directory where the .deb file is located.
- Use the dpkg command to install the package:
sudo dpkg -i package-name.deb
Method 2: Using dpkg
and apt-get
- Download the .deb file from a trusted source.
- Open the terminal and navigate to the directory where the .deb file is located.
- Use the
apt
command to install the package and resolve dependencies:
sudo apt install ./package-name.deb
- After running
dpkg
, you might have missing dependencies. Fix them usingapt-get
:
sudo apt-get install -f
Method 3: Using gdebi
- First, install
gdebi
if it's not already installed:
sudo apt-get install gdebi
- Use
gdebi
to install the package and automatically resolve dependencies:
sudo gdebi package-name.deb