Sometimes you need a specific file from a Debian .deb package e.g. because you deleted a file from your system or the installation of a package is broken in that way that it can not be reinstalled without adding the missing file first. This FAQ shows you how to download the .deb file from the Debian or Ubuntu repository and then exctract its contents.

Download the dpkg file. In this example, I will download the courier-athlib:

cd /tmp
aptitude download courier-authlib

Now extract the .deb package into the directory /tmp/extract/:

dpkg-deb -x *.deb /tmp/extract/

How to download and extract a .deb package on Ubuntu or Debian Linux

One thought on “How to download and extract a .deb package on Ubuntu or Debian Linux

  • Permalink

    will you please explain more i cant understood please try to explain more
    thanks & Regards

    Reply

Leave a Reply

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

*