Created
February 4, 2014 05:48
This file contains 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
#!/bin/sh | |
# title : yaourt-install | |
# description: This script install yaourt downloading and compiling package-query and yaourt | |
# author : Christopher Fernández | |
# usage : yaourt-install | |
echo "================================================" | |
echo "Remember that you need to be in the sudoers file" | |
echo "to install Yaourt successfully." | |
echo "================================================" | |
echo "" | |
echo -n "Proceed with installation? [Y/n] " | |
read yes | |
function install { | |
base=$(pacman -Qs base-devel) | |
if [[ $base == "" ]]; then | |
echo "You don't have base-devel group package." | |
echo 'To install base-devel group just do a "pacman -S base-devel"' | |
exit 1 | |
else | |
echo "Retrieving package-query ..." | |
curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz | |
echo "Uncompressing package-query ..." | |
tar zxvf package-query.tar.gz | |
cd package-query | |
echo "Installing package-query ..." | |
makepkg -si --noconfirm | |
cd .. | |
echo "Retrieving yaourt ..." | |
curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz | |
echo "Uncompressing yaourt ..." | |
tar zxvf yaourt.tar.gz | |
cd yaourt | |
echo "Installing yaourt ..." | |
makepkg -si --noconfirm | |
echo "Done!" | |
fi | |
} | |
if [[ $yes == "Y" || $yes == "y" || $yes == "" ]]; then | |
install | |
else | |
echo "Exiting ..." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment