ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use the following shell code to print out the commands that will remove all the known system dependencies installed for ROS packages:

rosdep db | awk '{if ($3) print $3}' | { while read package; do [ "$package" == "->" ] || (brew info $package &> /dev/null && echo "brew remove $package") || (pip list | grep $package &> /dev/null  && echo "pip uninstall $package") || echo "# $package is neither brew formula or a python package"; done; }

This will print out one line for each system dependency needed by ROS with the appropriate command for its removal. This does not actually remove the packages as I think this is unwise. Many system dependencies needed by ROS are likely also needed by other software on your system, so you need to evaluate on an individual package basis, what should be uninstalled.

The ROS python tools can be uninstall with: pip uninstall wstool rosdep rosinstall rosinstall_generator rospkg catkin-pkg

Other than this your ROS installation should be self contained under your ROS workspace directory, or where ever you have placed your ROS installation.

You can use the following shell code to print out the commands that will remove all the known system dependencies installed for ROS packages:

rosdep db | awk '{if ($3) print $3}' | { while read package; do [ "$package" == "->" ] || (brew info $package &> /dev/null && echo "brew remove $package") || (pip list | grep $package &> /dev/null  && echo "pip uninstall $package") || echo "# $package is neither brew formula or a python package"; done; }

This will print out one line for each system dependency needed by ROS with the appropriate command for its removal. This does not actually remove the packages as I think this is unwise. Many system dependencies needed by ROS are likely also needed by other software on your system, so you need to evaluate on an individual package basis, what should be uninstalled.

The ROS python tools can be uninstall with: with:

pip uninstall wstool rosdep rosinstall rosinstall_generator rospkg catkin-pkg

catkin-pkg

Other than this your ROS installation should be self contained under your ROS workspace directory, or where ever you have placed your ROS installation.