Last active
August 29, 2021 16:39
-
-
Save fkztw/41110752c73f6c39c1e6a206130b0f03 to your computer and use it in GitHub Desktop.
Install all dependencies of a package on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env TARGET=pandoc yay -S --asdeps --needed $(yay -Si $TARGET | sed -n '/^Depends/,/^Conf/p' | head -n -1 | sed 's/^.*\s://g' | sed 's/:.*$//g' | sed 's/^\s*//g' | tr '\n' ' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pandoc
to name of the package you want (to install all dependencies of).yay -S
tosudo pacman -S
.