• 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-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. renice Command Examples in Linux
  2. Understanding rsyslog Templates
  3. How to recover GRUB (Corrupted boot partition) in CentOS/RHEL 5,6
  4. “BAD PASSWD : is too simple” – error during password change in CentOS/RHEL 7 and 8
  5. How to use ipset Command in Linux
  6. How To Configure NIS (Network Information System) Master and Slave Servers in CentOS/RHEL
  7. /var/cache/yum Constantly Filling Files System in CentOS/RHEL
  8. Volume “test_vg/lvol0” is not active locally – Error while running lvcreate
  9. Error “530: permission denied” when user logs in to vsftpd server via ftp
  10. How to Run DNS and FTP services in a chroot Jail

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