Install the deb package operation instance on Ubuntu

  
                

In the Ubuntu system, you can use the dpkg command to install the deb package. Many people don't know much about the installation of the deb package. The following small series will give a detailed introduction to the installation of the deb package under Ubuntu. Let's learn together. under.

deb is the installation format of Debian Linux. It is very similar to Red Hat's rpm. The most basic installation command is: dpkg -i file.deb

dpkg is a shorthand for Debian Package. Debian's specially developed suite management system facilitates software installation, update and removal. All Linux distributions from Debian use dpkg, such as Ubuntu, Knoppix, and so on.

Operation example:

1, dpkg -i "package.deb"

Install a Debian package, such as the file you downloaded manually.

2, dpkg -c "package.deb"

list the contents of "package.deb" of.

3, dpkg -I "package.deb"

Extract parcel information from "package.deb".

4, dpkg -r "package"

Remove an installed package.

5, dpkg -P "package"

Completely remove an installed package. Unlike remove , remove simply deletes the data and the executable, and purge removes all the configuration files.

6. dpkg -L "package"

Lists all files installed by "package". Also look at dpkg -c to check the contents of a .deb file.

7, dpkg -s "package"

Display information about installed packages. Also see apt-cache showing the package information in the Debian archive, and dpkg -I to display the package information extracted from a .deb file.

8, dpkg-reconfigure "package"

Reconfigure an already installed package, if it uses debconf (debconf provides a unified configuration interface for package installation).

The above is the Ubuntu installation of the deb package method, you can manually create the deb package, you may also download the deb package installation according to the method, you need to use the dpkg command, so you have to understand the command .

Copyright © Windows knowledge All Rights Reserved