How to check what other packages an installed package uses?

You may try this:

using PkgDependency
PkgDependency.tree("Optim") 
1 Like