Set packages' dependencies.