Install deb file in Ubuntu using gdebi from terminal. On Ubuntu, users can install deb with dependencies. Use gdebi as default deb package installer on Ubuntu Linux Systems which will make gdebi default for .deb installation.
gdebi is a simple tool to install deb files. It lets you install local deb packages resolving and installing its dependencies. apt does the same, but only for remote (http, ftp) located packages. It can also resolve build-depends of debian/control files.
gdebi isn’t installed by default on Ubuntu. To use gdebi on Ubuntu, first install gdebi using the following command:
$ sudo apt-get install gdebi
Once gdebi is installed, it can be used to install a local deb package. The command format to install deb file using gdebi is
$ sudo gdebi package_name.deb
Please noet that it sorts out all kinds of dependency problems. gdebi automatically installs dependency packages from software repository for the specific deb package.
If you wish to make gdebi default application for installing deb file, simply right click on the .deb file and select properties. Here select the option open with and then change it to gdebi. This will make gdebi default to install deb packages on the system.
There are many gdebi command options:
- –version Show program’s version number and exit.
- -h, –help Show this help message and exit.
- –n, –non-interactive Run non-interactive (dangerous!).
- –o APT_OPTS, –option=APT_OPTS Set an APT configuration option.
- –q, –quiet Do not show progress information.
- –apt-line Simulate only and print a apt-get install compatible line to stderr.
- –root=ROOTDIR Use alternative root dir.