upgrading to electric, then what
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?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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?
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.
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.
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.
Asked: 2011-09-22 06:55:23 -0600
Seen: 891 times
Last updated: Sep 22 '11
how to set size and offset in python?
What is the difference between Fuerte and ROS electric
package install problem with electric and natty [closed]
Navigation Upgrade from Hydro to Indigo
Missing Command for Robotstudio (RAPID) [closed]
Failed to load nodelet: Cannot load library: X: undefined symbol: Y
How could I install a previous version of ROS?
OpenNI Issue? Xiron OS got an event timeout! Process has died.