new scripts
This commit is contained in:
parent
abd8255f31
commit
a87c123a25
2 changed files with 53 additions and 2 deletions
|
@ -11,5 +11,35 @@
|
|||
#
|
||||
##################################################################################################################
|
||||
|
||||
yay -S chaotic-keyring --noconfirm --needed
|
||||
yay -S chaotic-mirrorlist --noconfirm --needed
|
||||
package="yay"
|
||||
|
||||
#----------------------------------------------------------------------------------
|
||||
|
||||
if pacman -Qi $package &> /dev/null; then
|
||||
|
||||
echo "Installing with yay"
|
||||
yay -S chaotic-keyring --noconfirm --needed
|
||||
yay -S chaotic-mirrorlist --noconfirm --needed
|
||||
|
||||
else
|
||||
|
||||
if pacman -Qi trizen &> /dev/null; then
|
||||
|
||||
echo "Installing with trizen"
|
||||
trizen -S chaotic-keyring --noconfirm --needed
|
||||
trizen -S chaotic-mirrorlist --noconfirm --needed
|
||||
|
||||
elif pacman -Qi paru &> /dev/null; then
|
||||
|
||||
echo "Installing with paru"
|
||||
paru -S chaotic-keyring --noconfirm --needed
|
||||
paru -S chaotic-mirrorlist --noconfirm --needed
|
||||
|
||||
else
|
||||
|
||||
echo "Install an AUR helper"
|
||||
echo "You can use our script"
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
|
21
keys-and-mirrors/3-build-and-install-yay-bin.sh
Executable file
21
keys-and-mirrors/3-build-and-install-yay-bin.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
##################################################################################################################
|
||||
# Written to be used on 64 bits computers
|
||||
# Author : Erik Dubois
|
||||
# Website : http://www.erikdubois.be
|
||||
##################################################################################################################
|
||||
##################################################################################################################
|
||||
#
|
||||
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
|
||||
#
|
||||
##################################################################################################################
|
||||
|
||||
source="https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yay-bin"
|
||||
folder="alci-yay-bin"
|
||||
name="PKGBUILD"
|
||||
|
||||
mkdir /tmp/$folder
|
||||
wget $source -O /tmp/$folder/$name
|
||||
cd /tmp/$folder
|
||||
makepkg -i
|
Loading…
Reference in a new issue