How to use Pkg.dependencies() instead of Pkg.installed()

Oh. Great!!. Your answer is totally what I want!!