How to download and extract a. Deb package on ubuntu or debian linux

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

Sometimes you require a certain file from a Debian .deb package. For example, because you accidentally deleted a file. Or because the package’s installation is faulty and it can’t be restored without first adding the missing file. This FAQ explains how to extract the contents of a.deb file downloaded from the Debian or Ubuntu repository.

Save the Debian package file to your computer. I’ll download the dovecot package in this example:

cd /tmp
apt-get download dovecot

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

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

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

Sponsored
appeared first on FAQforge.

Leave a Comment

Only people in my network can comment.