• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dpkg-deb Command Examples in Linux

by Deepika

dpkg-deb is a command line tool in Linux used to manipulate Debian package files (which have a .deb file extension). It is part of the dpkg package management system, which is the default package management system for Debian and its derivatives, such as Ubuntu.

The dpkg-deb command can be used to perform a variety of tasks related to Debian package files, including:

  • Building Debian package files from a set of files and directories.
  • Extracting the contents of a Debian package file to a directory.
  • Inspecting the contents and metadata of a Debian package file.
  • Installing and uninstalling Debian package files.

dpkg-deb Command Examples

1. Display information about a package:

# dpkg-deb --info path/to/file.deb

2. Display the package’s name and version on one line:

# dpkg-deb --show path/to/file.deb

3. List the package’s contents:

# dpkg-deb --contents path/to/file.deb

4. Extract package’s contents into a directory:

# dpkg-deb --extract path/to/file.deb path/to/directory

5. Create a package from a specified directory:

# dpkg-deb --build path/to/directory

Filed Under: Linux

Some more articles you might also be interested in …

  1. fakeroot: command not found
  2. gv2gxl Command Examples
  3. makepkg Command Examples in Linux
  4. doctum: A PHP API documentation generator
  5. slapt-get Command Examples in Linux
  6. lein Command Examples
  7. handbrakecli Command Examples
  8. bmon Command Examples in Linux
  9. bshell: A GUI tool for browsing for SSH/VNC servers on the local network
  10. taskset: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright