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.
Ubuntu Server Admin

Recent Posts

AI in 2025: is it an agentic year?

2024 was the GenAI year. With new and more performant LLMs and a higher number…

22 minutes ago

Canonical announces 12 year Kubernetes LTS

Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…

1 day ago

Ubuntu Weekly Newsletter Issue 878

Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…

2 days ago

How your feedback shapes the way we support open source software

At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…

2 days ago

How To Install osTicket v1.14 On Ubuntu 20.04

I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…

3 days ago

How To Install WordPress On Ubuntu 20.04

Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…

3 days ago