Ask Your Question

How I completely remove all ros from my system?

asked 2013-03-05 13:23:40 -0500

unais gravatar image


The ros path and different versions of ros couses problem in my system. I want to completely uninstall ros from my system. I want to completely remove all things related to ros from my system. How can I done this?

Then wan't to install a fresh ROS

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-03-05 13:56:43 -0500

If you're running Ubuntu, and installed ROS with apt-get, the first step would be

sudo apt-get remove ros-*

If you've created a workspace, you'll have to also remove that... and if you added the setup scripts to your .bashrc, you'd have to remove them too.

If you've installed from source then it will be more complicated.

edit flag offensive delete link more


hello, Actually I had both indigo and jade installed in my system. I tried to remove jade by sudo apt-get remove ros-jade but it shows unable to locate package ros-jade. I want to remove only jade

newbieros gravatar imagenewbieros ( 2015-10-07 04:08:46 -0500 )edit

Hai, I am completely new to ros and linux. Can you pls tell me how to remove added scripts from .bashrc. Also I believe that removing workspace simply means removing the folder. Kindly help

skr_robo gravatar imageskr_robo ( 2016-01-12 18:42:54 -0500 )edit

@newbieros did you try $ sudo apt-get remove ros-jade-* ? You have to add the asterisk in there.

jacksonkr_ gravatar imagejacksonkr_ ( 2016-03-30 17:00:37 -0500 )edit

@Jon what if you did install it from a source? what do you have to do to remove it?

pacifickid9 gravatar imagepacifickid9 ( 2017-10-20 21:55:33 -0500 )edit

answered 2014-09-09 07:45:20 -0500

tonyParker gravatar image

updated 2014-09-09 07:54:24 -0500


sudo apt-get purge ros-*

It will also remove configuration files. And then

sudo apt-get autoremove

To remove dependencies

edit flag offensive delete link more


Hi! Could you tell me if I should manually delete catkin_ws folder?

aidos gravatar imageaidos ( 2016-05-24 08:09:20 -0500 )edit

There is also one interesting thing occurred while the purging process: it has deleted "Krusader" file manager from my system. I am new to Ubuntu, so I don't know why this purge command has also done this.

aidos gravatar imageaidos ( 2016-05-24 08:10:59 -0500 )edit

The command should be sudo apt-get purge '^ros-*', to match really only things that start with ros-, otherwise it will uninstall other packages that contain the string ros, like things with microsoft in the name (this is probably also the answer to your problem, @aidos).

nh2 gravatar imagenh2 ( 2016-08-06 07:34:02 -0500 )edit

answered 2013-03-05 14:23:39 -0500

aimc gravatar image

Hi. First thing to do is: sudo apt-get remove ros-* as Jon Stephan said before. Then, you should check your ~/.bashrc (as noted before). Check for your /opt/ directory, where a ROS folder may still exist.

Reboot. You might want to verify that ROS is completely removed by echoing ROS_PACKAGE_PATH or other variables.

edit flag offensive delete link more



Hi, I would like add a point here. I tried the above remove command. All the files were removed except for a folder in /etc/ros/rosdep/. This folder contains the sources list. I believe this too should be removed. Please correct me if I am wrong. thank you.

MKI gravatar imageMKI ( 2014-06-19 05:00:35 -0500 )edit

MKI do u knw how to remove it?

kaygudo gravatar imagekaygudo ( 2015-12-18 10:13:13 -0500 )edit

You need to do with sudo rm command.

sudo rm 20-default.list
Nebula gravatar imageNebula ( 2018-03-15 02:44:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-03-05 13:23:40 -0500

Seen: 101,485 times

Last updated: Sep 09 '14