Using dpkg to Install Debian Packages

Using apt-get is quickest and easiest way to manage Debian packages in Ubuntu. However, I would sometimes like to install the latest version of a package which is not available in the Ubuntu software repository. This can be done by downloading the Debian package (.deb) and using the dpkg command (which is what apt-get uses behind the scenes).

To install a .deb file

$ dpkg -i filename.deb

Other useful option available for dpkg:

Unpacks the file but does not install it

$ dpkg –unpack

Display configuration options are available for the package

$ dpkg –configure

Removes a package

$ dpkg –remove

To display the information for filename.deb

$ dpkg-deb –show filename.deb

Related posts:

  1. Managing Packages in Ubuntu
  2. Apache for Ubuntu Quickstart Guide
  3. Integrating Tomcat and Apache with mod_jk Connector
  4. OpenSSH for Ubuntu Quickstart Guide
  5. Building Mono from Source
This entry was posted in Ubuntu and tagged . Bookmark the permalink.

Comments are closed.