\$ rosdep install --from-paths ./path/to/packages --ignore-src --rosdistro hydro -y --simulate

That line will find all of the catkin packages in that path, and attempt to install their dependencies from your package manager, ignoring dependencies which can be found checked out locally from source. (also it just simulates its actions, remove the --simulate to actually do it).