How To Install A Debian Package

Table of contents:

How To Install A Debian Package
How To Install A Debian Package

Video: How To Install A Debian Package

Video: How To Install A Debian Package
Video: How to install .deb file in any Linux Computer ? 2024, December
Anonim

Each distribution of the Linux operating system uses its own package manager and, accordingly, their format. In Debian based distributions, the package format is called DEB and the manager is dpkg. It is controlled from the command line.

How to install a Debian package
How to install a Debian package

Instructions

Step 1

Log in as the root user (root). To do this, run the su command, and after the password prompt appears, enter it. Alternatively, you can use the login command and then enter your username (in this case, root) and then your password.

Step 2

Download the package you want to install, and then place the downloaded file in any folder convenient for you within the root folder.

Step 3

To install a package, enter the following command: dpkg -i filename.deb Note that you must enter the filename instead of the package name as an argument.

Step 4

If the package did not install, but instead received an error message stating that other packages need to be installed first, download and install them in the same folder. Then install the package you want.

Step 5

If some of their additional packages, in turn, require the pre-installation of other packages, repeat the operation as many times as necessary. Usually the number of such repetitions does not exceed ten.

Step 6

Do not resort to downloading additional packages every time. First, check if they are on the distribution disk. If there are several disks in the distribution kit, check everything.

Step 7

After the package has been successfully installed, test its operation by trying to launch, for example, the application included in it.

Step 8

If you decide to remove one of the already installed packages, use the following command: dpkg -r packagename Please note: in this case, you need to enter the name of the package itself, not the name of the file with the package. Also, before uninstalling, make sure you still have the distribution file for this package so that you can reinstall it if necessary. Do not remove the package if any other applications on the system depend on it.

Step 9

To perform operations with packages in graphical mode, use a special utility - GNOME Debian Package Manager.

Step 10

In order for the packages to be automatically not only installed, but also downloaded, use the console utility apt-get, if desired, in combination with the aptitude shell.

Recommended: