Running sudo apt-get install <PACKAGE> will install the package, its dependencies, and any other recommended packages.
However, there does not seem to be a way to install only the dependencies of a package and exclude the package itself.
How would one go about doing this?

apt-get build-depinstalls build dependencies, soapt-get -b sourceworks, but runtime dependencies aren't installed, sodpkg -i *.debfails. – Trevor Robinson Jan 26 '12 at 22:03gccunder version control just because you want to build a package from source. – Ari B. Friedman Apr 13 '14 at 09:18