_install_yay
"/home/yossef/notes/git/scripts/_install_yay.md"
path: git/scripts/_install_yay.md
- **fileName**: _install_yay
- **Created on**: 2025-03-26 15:18:11
install yay package manager for archlinux
#!/usr/bin/env bash
RC='\e[0m'
RED='\e[31m'
YELLOW='\e[33m'
GREEN='\e[32m'
# insatll yay
install_yay() {
# check if install or not
if _commend_exists yay; then
echo -e "${GREEN}--- command already exits ----${RC}"
else
echo -e "${GREEN}-- install some dependences git base-devel --${RC}"
if [[ $? == 0 ]]; then
echo -e "${GREEN}-- install yay --${RC}"
cd
# clone yay repo
git clone https://aur.archlinux.org/yay.git
if [[ $? == 0 ]]; then
cd yay
# starting build and install
makepkg -si
echo -e "${GREEN}-- install yay sucessfuly ---${RC}"
else
echo -e "${RED}******** error happend in clone yay *********${RC}"
fi
else
echo -e "${RED}********* error happend in install base-devel ********${RC}"
fi
fi
}
install_yay
continue:_install_tgpt.md
before:_install_uv.md