Installing only top-level dependencies for a package?
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?
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.