Skip to content

Instantly share code, notes, and snippets.

@fkztw
Last active August 29, 2021 16:39
Show Gist options
  • Save fkztw/41110752c73f6c39c1e6a206130b0f03 to your computer and use it in GitHub Desktop.
Save fkztw/41110752c73f6c39c1e6a206130b0f03 to your computer and use it in GitHub Desktop.
Install all dependencies of a package on Arch Linux
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' ' ')
@fkztw
Copy link
Author

fkztw commented Aug 29, 2021

  • Change pandoc to name of the package you want (to install all dependencies of).
  • You can also change yay -S to sudo pacman -S.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment