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

upgrading to electric, then what

asked 2011-09-22 06:55:23 -0500

ringo42 gravatar image

I have diamondback installed. After I upgrade to Electric should I delete the OPT/ROS/DIAMONDBACK directory? what is the usual thing to do after an upgrade?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
4

answered 2011-09-22 09:05:27 -0500

Thomas D gravatar image

In addition to the other answers about how to remove Diamondback using

sudo apt-get remove ros-diamondback-*

you could choose to leave both Diamondback and Electric installed in /opt/ros. You can select which ROS version your packages will use by modifying a line in your ~/.bashrc file. If you were using Diamondback previously there should be a line like

source /opt/ros/diamondback/setup.bash

To switch to Electric change that line to

source /opt/ros/electric/setup.bash

You can only have one of those uncommented at a time (use # to comment one of them out). Then, either restart the terminal or run

source ~/.bashrc

That command needs to be run in each terminal (and terminal tab) that you have open. After switching that line you have to rebuild your packages so they use the current version. This is mostly so that the messages are all in the correct format. But, the point is that you can safely leave Diamondback installed after you install Electric.

edit flag offensive delete link more
2

answered 2011-09-22 07:00:26 -0500

Both versions are independent of each other. You may remove the old one if you have no further use for it.

Note that if you have installed ROS with your OS package manager, you should deinstall the packages instead of just deleting the directories. For Ubuntu, deinstalling everything with ros-diamondback in the name should do the trick.

edit flag offensive delete link more

Comments

Basically we gave the same answer at the same time :-)
Lorenzo Riano gravatar image Lorenzo Riano  ( 2011-09-22 07:05:32 -0500 )edit
1

answered 2011-09-22 07:02:27 -0500

The usual thing is at least recompile all your packages (the ones that didn't ship with electric) to check if some dependencies are broken (most of the time they will be as message definitions are moved around). If no everything works fine and you are comfortable with the new distribution, you can safely remove diamondback. Unless you compiled ROS from source you should use the package manager of your distribution. In any case avoid manually deleting the files, always try to use the package manager.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-09-22 06:55:23 -0500

Seen: 891 times

Last updated: Sep 22 '11