Ubuntu tips to start the deb installation package with the dpkg command

  
                

In the Ubuntu system, in addition to starting the deb installation package through the desktop, you can also run the deb installation package through the command line, you need to use the dpkg command, the following small series will introduce you to Ubuntu using the dpkg command to start the deb installation. The method of the package, let's learn together.

dpkg command commonly used format is as follows:

sudo dpkg -I linuxidc.deb # to view details linuxidc.deb package, including software name, version, and size (where - I is equivalent to --info)

sudo dpkg -c linuxidc.deb#View the file structure contained in the linuxidc.deb package (where -c is equivalent to --contents)

Sudo dpkg -i linuxidc.deb#Install linuxidc.deb package (where -i is equivalent to --install)

sudo dpkg -l linuxidc#View linuxidc package information (software name can be passed dpkg - I command to view, where -l is equivalent to --list)

sudo dpkg -L linuxidc#View all files installed by linuxidc package (software name can be viewed by dpkg -I command, where -L is equivalent In --listfiles)

sudo dpkg -s linuxidc#View detailed information about linuxidc package (software name can be viewed by dpkg -I command, where -s is equivalent to --status)

sudo dpkg -r linuxidc# Uninstall linuxidc package (software name can be viewed by dpkg -I command, where -r is equivalent to --re Move)

Note: The dpkg command does not automatically resolve dependencies. If the installed deb package has dependencies, you should avoid using this command or install the dependencies in order of dependency.

The above is the way Ubuntu uses the dpkg command to run the deb installation package. This article describes the common format of the dpkg command in detail. You can choose the appropriate one to use.

Copyright © Windows knowledge All Rights Reserved