AUR4 bashrc snippet
I've created a small bash/zsh snippet for anyone who wants to download and build packages from the new aur(4). This downloads packages similar to cower with the '-d' option, but for the git-based AUR.
Place one or both snippets in your .bashrc or .zshrc to use.
# download the aur(4) package to the current directory, similar to cower -d from the old AUR, but using the officially supported method; git.
# usage:
# $ aurd <package-name>
aurd() {
git clone https://aur4.archlinux.org/$1.git/
#git clone ssh://aur@aur4.archlinux.org/$1.git/
}
# download the aur(4) package to the current directory, cd, build (clean) and prompt to install.
aurb() {
git clone https://aur4.archlinux.org/$1.git/ && cd $1 && makepkg -sci
#git clone ssh://aur@aur4.archlinux.org/$1.git/ && cd $1 && makepkg -sci
}
About this post
- Posted
- Archived
- Score
- 4 · 100% up
- Kind
- Text
- ID
- 397uwp
8 comments
To update packages, simply
aliasadd the function:Does this mean we won't need programs like yaourt to manage AUR installations?
You never needed a program to install applications from the AUR.
No but you do need one to install them without downloading them manually, right?
Nice snippets this make my life easier. Thank you kind sir/woman.
No problem, glad to help.
Thanks