• 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-scanpackages: command not found

by admin

dpkg-scanpackages utility creates a Packages file from a tree of binary packages. The Packages file is used by dselect to provide a list of packages available for installation. Basically, it is a tool that allows you to convert a directory containing .deb packages into a repository.

If you encounter the below error:

dpkg-scanpackages: command not found

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

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

Summary

In some cases you may want to add your own repository. This is useful if you have a couple of .deb files and want to make them accessible for installation to user computers. Doing so is a simple 3-step procedure. Start by creating the directory and putting the .deb files in that directory. Next, you’ll run the dpkg-scanpackages command to create the repository metadata. As the last step, add the newly created repository to the sources.list files on all computers that need to use it.

Filed Under: Linux

Some more articles you might also be interested in …

  1. kitex Command Examples
  2. “git whatchanged” Command Examples
  3. grumphp Command Examples
  4. gimp: GNU image manipulation program
  5. ceph: command not found
  6. amass enum – Find subdomains of a domain (Command Examples)
  7. Sample /etc/mke2fs.conf file
  8. How to check the PHP version on Linux
  9. “git bugreport” Command Examples
  10. smbclient Command Examples in Linux

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