Skip to content

Instantly share code, notes, and snippets.

@ibrokemycomputer
Last active December 30, 2017 02:56
Show Gist options
  • Save ibrokemycomputer/bb7124f46847f35acec36f9ceff3f823 to your computer and use it in GitHub Desktop.
Save ibrokemycomputer/bb7124f46847f35acec36f9ceff3f823 to your computer and use it in GitHub Desktop.
Simple AUR package install function (alias)
# To enable, add to your terminal's `rc` or `profile` file (e.g. ~/.bashprofile , ~/.zshrc, etc)
# To enable the newly-saved settings without exiting your terminal, run `source FILE_YOU_EDITED`
#
# Simple little function as an alternative to `yaourt`
# Usage: aur-install PACKAGE_NAME DOWNLOAD_DIRECTORY
# Example: aur-install google-chrome ~/Downloads
#
# Note: This currently only handles one package at a time.
aur-install() {
cd "$2";
wget "https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz";
tar -xzf $1.tar.gz;
cd $1;
makepkg -s;
sudo pacman -U *.pkg.*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment