Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to find out which (not installed) package a file belongs to?

The wish is to install hd-idle on a bare Debian 6.0.6 installation.

For installation the hd-idle documentation instructs:

Run "dpkg-buildpackage -rfakeroot"

However trying to run that command results in:

root@debian:/tmp/hd-idle# dpkg-buildpackage -rfakeroot
-bash: dpkg-buildpackage: command not found

How to fix this missing dpkg-buildpackage?

share|improve this question

marked as duplicate by Gilles, Renan, Michael Mrozek Dec 17 '12 at 2:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 7 down vote accepted

Go to http://packages.debian.org/, go to the bottom of the page, select your version of debian, enter dpkg-buildpackage as the keyword and click search. That will tell you which package to install to get the dpkg-buildpackage command.

share|improve this answer
dpkg-dev is the resulting package name. – Pro Backup Dec 16 '12 at 18:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.