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

Detecting and Fixing Memory Leaks with Valgrind

Memory leaks are among the most frustrating bugs to track down in C and C++…

5 hours ago

How to Kill Processes Using Specific Ports on Linux, Windows and MacOS

Have you ever encountered issues starting a server or application because the required port is…

5 hours ago

How to Fix the “Native Host Connector Not Detected” Error for GNOME Extensions in Ubuntu 22.04

When upgrading to Ubuntu 22.04 LTS (Jammy Jellyfish), many users encounter the error message: “Although…

5 hours ago

Building optimized LLM chatbots with Canonical and NVIDIA

The landscape of generative AI is rapidly evolving, and building robust, scalable large language model…

12 hours ago

Unlocking Edge AI: a collaborative reference architecture with NVIDIA

The world of edge AI is rapidly transforming how devices and data centers work together.…

12 hours ago

How to Install and Use Zig Programming Language on Ubuntu or Debian Linux

In this article, we will see how to install and use zig programming language on…

16 hours ago