Is there a way I can use apt-get install command to install a package and its first level dependencies only instead of all the dependencies recursively?
EDIT: I am dealing with ROS and would like to install a single package with only its first level dependencies. I don't actually want to install or update the system 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. I hope this helps. PS: Also, it seems that there is an apt-get command to install only the first-level dependencies but couldn't find any. Any help is greatly appreciated.
No.
There is no way to use
apt-get
and install packages without fulfilling dependencies. You can download the individual packages and usedpkg
, but the packages will not be fully installed in that case, and programs may not even be startable.