Results 1 to 2 of 2

How to use dpkg to install .deb files

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    15

    Default How to use dpkg to install .deb files

    I’ve written about using apt-get to get and install debian packages. However, a recent comment by a reader brought the fact that I hadn’t written anything on what to do with a .deb file that exists on your system already either by download or other media.

    Using the apt-get application is the quickest way to find and install debian packages. The installation part is done by an application
    named dpkg. Dpkg doesn’t have to be used by apt-get, you can use it manually as well.

    From the man dpkg command:

    dpkg - a medium-level package manager for Debian

    Whatever that means.

    In keeping with GNU/Linux system security, only the superuser can use the dpkg application. Dpkg is a typical GNU/Linux application that is controlled by command-line switches. Possibly the most common use of dpkg is to install a local .deb file.

    To install a .deb file, become root and use the command:

    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 on the more arcane uses for dpkg.

  2. #2
    Jedi knight Luke Skywalker's Avatar
    Join Date
    Jul 2009
    Posts
    2,174

    Default

    And also mention that you have to add repos & enable also. Many noobs claim that there is not enough packages in their synaptic package manager.

Similar Threads

  1. How to install .conf files in modem
    By ahan in forum Reliance Broadband
    Replies: 0
    Last Post: 8th November 2012, 10:26 PM
  2. How to auto extract rar files and join 001 files
    By capri in forum Desktop Computer
    Replies: 7
    Last Post: 23rd July 2009, 10:40 AM
  3. Windows xp Install
    By maurya18 in forum Windows
    Replies: 20
    Last Post: 28th January 2009, 07:05 AM
  4. Plz help!plz help to install kaspersky!
    By imrock in forum Software News, Previews and Reviews
    Replies: 2
    Last Post: 26th September 2008, 07:49 PM
  5. How to create a .cue files for (nfs underground 2) .bin files
    By kartikoli in forum Videogaming News and Reviews
    Replies: 5
    Last Post: 30th May 2008, 04:48 PM