Home >> Linux >> how to use dpkg in ubuntu

how to use dpkg in ubuntu

Only the superuser (sudo) can use the dpkg application. Dpkg is a typical GNU/Linux application that is ubuntucontrolled by command-line switches. Possibly the most common use of dpkg is to install a local .deb file.To install a .deb file, use the command:

$sudo dpkg -i filename.deb

Dpkg can also be used to:

* dpkg –unpack: unpacks the file but does not install it
* dpkg –configure: presents whatever configuration options are available for the package
* dpkg –remove: removes a package

Some of the package manipulation commands are actually carried out by an application called dpkg-deb. In those cases, dpkg just acts as a front end to dpkg-deb and passes the commands to it.

Dpkg-deb can also be used to manipulate .deb files. Some of the more useful commands of dpkg-deb are:

# dpkg-deb –show filename.deb

This will display the information for filename.deb. Normally, this is boring information like the application version (which is normally evident from the filename), but in some cases more interesting and useful information is displayed.

Consult the dpkg man page for information.

Leave a Reply

Your email address will not be published. Required fields are marked *