rosdep is a command-line tool for installing system dependencies.
As of ROS fuerte, rosdep is now a standalone tool that you can download and use separately:
Do prefer apt over pip as it's updated automatically and faster.
sudo apt-get install python-rosdep
On non ubuntu platforms
sudo pip install -U rosdep
Needed to be called once after installation:
sudo rosdep init
Needed to be called at least once or anytime there might be new needed definitions your rosdep doesn't know of yet:
Note: Do not run rosdep update with sudo. It is not required and will result in permission errors later on.
You can use rosdep and rosmake to build any package in the ROS repository. Say that you want to build a package called AMAZING_PACKAGE, that you hadn't built on your machine before.
rosdep install AMAZING_PACKAGE
Use source-installed rosdep
Clone the development repository. This doesn't need to be done in a directory in ROS_PACKAGE_PATH. Then at its top directory, source setup.sh. In concrete:
$ git clone https://github.com/ros-infrastructure/rosdep $ cd rosdep $ source setup.sh
Then calling rosdep should use the source just downloaded.