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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dpkg-deb: command not found

by admin

Debian’s package management system uses the dpkg command to install, remove, and query packages. dpkg-deb is a backend command for building and managing Debian package archives. You’ll often want to use dpkg to pass commands through to dpkg-deb, rather than call dpkg-deb directly.

If you encounter below error:

dpkg-deb: command not found

You may try installing below package as per your choice of distribution.

Distribution Command
OS X brew install dpkg
Debian apt-get install dpkg
Ubuntu apt-get install dpkg
Alpine apk add dpkg
Kali Linux apt-get install dpkg
Fedora dnf install dpkg
Raspbian apt-get install dpkg
Docker docker run cmd.cat/dpkg-deb dpkg-deb

Summary

The apt-get program is a tool that is designed to downloadpackages and their dependencies so that you can avoid doing that tedious task yourself.However, when it comes to actually installing the packages, apt-get relies on the low-leveldpkg command, which is what does the actual job of installation and tracking whatis installed. So, if you have a .deb package and need to install it, apt-get will not be able to help you. Instead, you need to use dpkg directly, by invoking it like this:

# dpkg –i yourfile.deb

That will extract the package and install it on your system. If you just want to extract thecontents of the package without installing them to your system, you can use the –unpack parameter, like this:

# dpkg --unpack yourfile.deb

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to set ulimit values for a systemd service
  2. How to configure iSCSI Initiator (client) in CentOS / RHEL 6
  3. “The requested URL returned error: 403 Forbidden” – yum update error
  4. How to disable NetworkManager on CentOS / RHEL 7
  5. How to tar, untar files and view contents of tar file under Linux
  6. Manual Changes Made To /etc/hosts Or /etc/sysconfig/network-scripts/ifcfg-* Are Lost
  7. How to enable bind query logging to find out Who’s Querying a Name Server
  8. How to shrink root filesystem on CentOS / RHEL 6
  9. CentOS / RHEL : How to restore/recover a deleted volume group in LVM
  10. How to truncate /var/log/lastlog File

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright