Ask Your Question

What command to use to edit a package.xml file in ROS Hydro?

asked 2014-08-19 12:54:40 -0500

ish45 gravatar image

updated 2014-08-20 02:57:32 -0500

tfoote gravatar image

Can anybody tell which command to use to edit a package.xml file in ROS Hydro? Using the command cat package.xml, I can view the package.xml file but I am unable to edit the file. Can anybody help please?

edit retag flag offensive close merge delete


Which OS are you using? If its ubuntu then use a text editor with sudo command prefixed to it.

sudo gedit .....yourfilename....

Bhargav gravatar image Bhargav  ( 2014-08-19 13:09:51 -0500 )edit

Do NOT use sudo to edit package.xml files. It is unnecessary and will mess up permissions.

dornhege gravatar image dornhege  ( 2014-08-19 13:18:49 -0500 )edit

Please choose a meaningful title that shortly states what the question is about.

dornhege gravatar image dornhege  ( 2014-08-19 13:19:56 -0500 )edit

gedit package.xml

Mehdi. gravatar image Mehdi.  ( 2014-08-20 04:04:17 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2014-08-20 02:56:59 -0500

tfoote gravatar image

Any text editor will work. Ubuntu comes with gedit and nano preinstalled.

edit flag offensive delete link more

answered 2014-08-20 05:53:00 -0500

ish45 gravatar image

Thanks to all. gedit is working for me now.

edit flag offensive delete link more


Try to carefully read and follow the tutorial before making something else. And do not change the package.xml, before being sure to know what you are doing

Moda gravatar image Moda  ( 2014-08-20 06:23:02 -0500 )edit

Please accept an answer using the checkbox at the left of each answer so others know that this question has been solved in the future.

tfoote gravatar image tfoote  ( 2014-08-20 11:41:46 -0500 )edit

answered 2014-08-19 13:32:54 -0500

l0g1x gravatar image
vi package.xml

vi or vim works. vim is just extension to vi.

edit flag offensive delete link more



wait are you trying to edit a system ros package.xml file? If so, it is highly recommended you do not do so, unless you REALLY, REALLY, know what your doing.

l0g1x gravatar image l0g1x  ( 2014-08-19 13:34:12 -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

1 follower


Asked: 2014-08-19 12:54:40 -0500

Seen: 5,492 times

Last updated: Aug 20 '14