How to Manually Install Packages on a Debian Server

On Debian and Debian-based servers (such as Ubuntu Server), the primary method of package installation is APT. Using the apt-get command, you can download and install software from the distribution and third-party repositories with relative ease. There may come a time, however, when you need to install a deb package that is not from your distribution’s repository or from the version of the distribution that you are currently running. In such instances, you will need to install the package manually.

In all cases, including the use of APT, Debian uses dpkg (Debian packaging system) to install and set up deb packages. To install a package stored on your system, simply type from the command line:

# dpkg -i package-name

Replace “package-name” with the actual name of your package. The “-i” option tells dpkg to install.

The output will look something like this:

# dpkg -i package-name.3_2.1.12-1_amd64.deb

Selecting previously deselected package package-name.3.

(Reading database … 90210 files and directories currently installed.)

Unpacking package-name.4 (from package-name.3_2.1.12-1_amd64.deb) …

Setting up package-name.4 (2.1.12-1) …

Processing triggers for menu …

Processing triggers for man-db …

Once the package is installed on your system, you can manage and configure it just as you normally would.