Ask Your Question
0

simple Q about where to install packages

asked 2017-09-19 15:04:39 -0500

updated 2017-09-19 15:06:32 -0500

let's say I want to download ros-kinetic-ros-tutorials through

sudo apt-get install ros-<distro>-ros-tutorials

where do I need to be cd'd into at that time or does it matter? I am currently in catkin_ws/devel, is that going to be fine?

also, in general, when installing packages, does the same answer apply?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-09-19 15:40:56 -0500

jayess gravatar image

You can run

sudo apt-get install ros-<distro>-ros-tutorials

from anywhere. You don't need to be in a certain directory to use that command. apt should install this into your /opt/ros/<distro>/share/ directory without you having to be in that directory yourself.

also, in general, when installing packages, does the same answer apply?

Depends on how you're installing them. If you're using apt, like above, then you let it deal with that. If you're installing the source (such as cloning from a git repo for example) then you would compile and install it from the root of your catkin workspace.

edit flag offensive delete link more

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

Stats

Asked: 2017-09-19 15:04:39 -0500

Seen: 59 times

Last updated: Sep 19 '17