fix missing virt-manager dep, add rate-mirrors for arch, fix errors in git and fish scripts
This commit is contained in:
parent
2650eff42d
commit
46cdfbe486
5 changed files with 18 additions and 5 deletions
|
@ -9,10 +9,12 @@ command_exists() { type "$1" &>/dev/null; }
|
|||
if command_exists "apt-get"; then
|
||||
sudo apt update
|
||||
sudo apt install curl -y
|
||||
|
||||
elif command_exists "dnf"; then
|
||||
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
|
||||
sudo dnf remove libreoffice* atril -y
|
||||
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
|
||||
elif command_exists "pacman"; then
|
||||
WD=$(pwd)
|
||||
sudo pacman -S --noconfirm --needed git base-devel
|
||||
|
@ -21,15 +23,20 @@ elif command_exists "pacman"; then
|
|||
makepkg -si
|
||||
cd $WD
|
||||
rm -rf yay
|
||||
# get fast arch mirrors
|
||||
yay -S rate-mirrors-bin
|
||||
rate-mirrors --disable-comments-in-file --entry-country=US --protocol=https arch --max-delay 7200 | sudo tee /etc/pacman.d/mirrorlist
|
||||
yay -S noto-fonts-emoji --noconfirm --needed
|
||||
#sudo mkdir /usr/share/fonts/meslolgs
|
||||
#yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed
|
||||
|
||||
elif command_exists "zypp"; then
|
||||
echo "not yet implemented"
|
||||
|
||||
elif command_exists "emerge"; then
|
||||
echo "not yet implemented"
|
||||
|
||||
elif command_exists "apk"; then
|
||||
echo "not yet implemented"
|
||||
|
||||
elif command_exists "xbps-install"; then
|
||||
sudo xbps-install NetworkManager dbus polkit polkit-gnome nano noto-fonts-emoji noto-fonts-cjk python3 python3-pip
|
||||
mkdir ~/Applications
|
||||
|
@ -39,6 +46,8 @@ elif command_exists "xbps-install"; then
|
|||
cd -
|
||||
echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script"
|
||||
sudo xbps-install void-repo-multilib void-repo-nonfree
|
||||
|
||||
else
|
||||
echo "Unsupported: unknown package manager and distro"
|
||||
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue