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

Uninstall ROS fully on OS X

asked 2013-11-24 09:34:14 -0500

Noldorin gravatar image

updated 2013-11-24 09:34:27 -0500

How I uninstall ROS, Catkin, all ROS packages, and all other ROS-specific dependencies?

I'm on OS X, and installed ROS Groovy according to http://wiki.ros.org/hydro/Installation/OSX/Homebrew/Source.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-11-25 09:50:34 -0500

jensenb gravatar image

updated 2013-11-25 10:11:34 -0500

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.

edit flag offensive delete link more

Comments

Thanks for the answer. As it happens I already went ahead and removed it manually (using rm and pip uninstall). I found there were a few other dependencies like Catkin, which is strewn around /usr/local, but this looks like a a relatively compact way if I need to do it in the future. Thanks agina.

Noldorin gravatar image Noldorin  ( 2013-11-25 09:53:26 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-11-24 09:34:14 -0500

Seen: 3,716 times

Last updated: Nov 25 '13