• 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. deluser: command not found
  2. urxvt Command Examples in Linux
  3. Linux OS Service ‘nscd’
  4. How to Install SSHFS on CentOS/RHEL/Ubuntu
  5. Linux OS Service ‘avahi-daemon’
  6. Beginners Guide to yum Configuration
  7. CentOS / RHEL : How to delete LVM volume
  8. How to cancel or pause live migrations using virsh
  9. dget Command Examples in Linux
  10. betty Command Examples (Use natural language to execute commands)

You May Also Like

Primary Sidebar

Recent Posts

  • Chezmoi: A multi-machine dotfile manager, written in Go
  • cheat: Create and view interactive cheat sheets on the command-line
  • chars: Display names and codes for various ASCII and Unicode characters and code points
  • chafa: Image printing in the terminal

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright