GO KALI FREE
Package Management

dpkg -i Linux Command

Installs a .deb package file directly (does not resolve dependencies).

What does dpkg -i do?

Installs a .deb package file directly (does not resolve dependencies).

Syntax

dpkg -i package.deb

Practical example

sudo dpkg -i google-chrome.deb

Questions about dpkg -i

How do I install a .deb file with dpkg?

Use `sudo dpkg -i package.deb` to install a local .deb file. This does not resolve dependencies automatically.

What does dpkg -i do?

It installs a .deb package file directly from disk. Unlike apt, it does not download dependencies from repositories.

How do I fix missing dependencies after dpkg -i?

Use `sudo apt install -f` after dpkg -i to automatically install any missing dependencies.

What is the difference between dpkg -i and apt install?

dpkg -i installs from a local file without dependency resolution. apt install installs from repositories and handles dependencies automatically.

How do I see what files a .deb package contains?

Use `dpkg -c package.deb` to list all files that would be installed from the .deb file.

How do I install a .deb file and resolve dependencies?

Use `sudo apt install ./package.deb` which handles both installation and dependency resolution.

How do I check if a package is installed?

Use `dpkg -l | grep package_name` or `dpkg -s package_name` to check if a package is installed.

How do I remove a package installed with dpkg -i?

Use `sudo dpkg -r package_name` or `sudo apt remove package_name` to uninstall it.

Related Package Management

apt list

Lists packages based on package names with options for installed/upgradeable.

dpkg -r

Removes an installed package (keeps config files).

apt show

Displays detailed information about a specific package.

dpkg -l

Lists all installed packages with version and description.

apt search

Searches for packages in the repository by keyword.

snap install

Installs a snap package from the Snap Store.