How to install only the dependencies of a package?


I cannot find a way to install only the dependencies of a package. Can I do that?


Something like this should work, I would imagine.

❯ sudo pacman -S $(pacman -Si krita | grep -i 'depends on' | cut -d ':' -f 2)

Replace krita with your package

1 Like

I wonder: what are possible use cases could that be for?

1 Like

note : is dependencies only if we install with --asdeps if install alone - otherwise, it’s a very bad use

It might be used when you modify the package’s PKGBUILD file. Then, you already have all dependencies installed and can experiment with the building and installation scripts.