Installing only top-level dependencies for a package?

asked 2017-03-01 22:49:24 -0600

sam26 gravatar image

updated 2017-03-01 22:54:30 -0600

Is there a way I can use apt-get install command to install a ROS package and its first level dependencies only instead of all the dependencies recursively? I don't actually want to install or update the dependencies that this ROS package depends on, "recursively". During running a particular application if any 'dependency-not found' error is thrown, I would like to see what exactly is missing. Also, I have found a command debtree --max-depth=number that can limit the traversal of dependency tree. Is there a way I can integrate it with apt-get install or any other installation tool to get only the top level dependencies of a package?

edit retag flag offensive close merge delete


Even though you mention "ROS packages", this is not really a ROS-related question, but more something to do with apt-get. The same question could be asked for any .deb pkg.

I'm pretty sure you'll have more luck getting good answers on a site like Stack Overflow instead of here.

gvdhoorn gravatar image gvdhoorn  ( 2017-03-02 06:14:13 -0600 )edit