update dnf add repo syntax

This commit is contained in:
askiiart 2024-12-06 22:21:21 -06:00
parent 47bb90de9c
commit f2823f2c78
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
7 changed files with 22 additions and 7 deletions

View file

@ -11,7 +11,7 @@ if command_exists "apt-get"; then
sudo apt install curl -y sudo apt install curl -y
elif command_exists "dnf"; then elif command_exists "dnf"; then
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo sudo dnf config-manager addrepo --from-repofile 'https://askiiart.net/repos/fedora/x86_64/askiiart.repo'
sudo dnf remove libreoffice* atril -y 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 -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 -y

View file

@ -23,6 +23,7 @@ chmod 700 ./*.bash
./install-fonts.bash ./install-fonts.bash
./install-yt-music.bash ./install-yt-music.bash
./install-vesktop.bash ./install-vesktop.bash
./install-swayfx.bash
cd .. cd ..
cd ./dotfiles cd ./dotfiles

@ -1 +1 @@
Subproject commit 3efec5e1415f31d5421f07f1a389b82c765c2338 Subproject commit 378dd535145954be0e101d8358890e79ddb7b601

View file

@ -14,7 +14,7 @@ if command_exists "apt-get"; then
sudo apt update sudo apt update
sudo apt install librewolf -y sudo apt install librewolf -y
elif command_exists "dnf"; then elif command_exists "dnf"; then
sudo dnf config-manager --add-repo https://rpm.librewolf.net/librewolf-repo.repo sudo dnf config-manager addrepo --from-repofile 'https://repo.librewolf.net/librewolf.repo'
sudo dnf install librewolf sudo dnf install librewolf
sudo dnf remove firefox sudo dnf remove firefox
mkdir tmp-openh264 mkdir tmp-openh264
@ -31,7 +31,7 @@ elif command_exists "dnf"; then
rm -rf ./tmp-openh264/ rm -rf ./tmp-openh264/
elif command_exists "rpm-ostree"; then elif command_exists "rpm-ostree"; then
if ! command_exists "librewolf"; then if ! command_exists "librewolf"; then
sudo wget https://rpm.librewolf.net/librewolf-repo.repo -O /etc/yum.repos.d/librewolf.repo sudo wget https://repo.librewolf.net/librewolf.repo -O /etc/yum.repos.d/librewolf.repo
rpm-ostree install librewolf rpm-ostree install librewolf
rpm-ostree remove firefox rpm-ostree remove firefox
read -p "Press enter to reboot, then run do-everything.bash again" read -p "Press enter to reboot, then run do-everything.bash again"

View file

@ -7,7 +7,6 @@ fi
command_exists() { type "$1" &>/dev/null; } command_exists() { type "$1" &>/dev/null; }
if command_exists "yum"; then if command_exists "yum"; then
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
sudo dnf install rustup -y sudo dnf install rustup -y
fish -c "rustup-init" fish -c "rustup-init"
elif command_exists "rpm-ostree"; then elif command_exists "rpm-ostree"; then
@ -20,4 +19,4 @@ else
echo "figure out rustup yourself" echo "figure out rustup yourself"
echo "enter to continue" echo "enter to continue"
read -p "" read -p ""
fi fi

View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
# only fedora is up-to-date
command_exists() { type "$1" &>/dev/null; }
if command_exists "dnf"; then
sudo dnf copr enable swayfx/swayfx
sudo rm /etc/dnf/protected.d/fedora-sway.conf
sudo dnf install swayfx --allowerasing # conflicts with sway, so this will remove sway
fi

View file

@ -12,7 +12,7 @@ if command_exists "apt-get"; then
sudo apt update --allow-insecure-repositories sudo apt update --allow-insecure-repositories
sudo apt install youtube-music -y --allow-unauthenticated sudo apt install youtube-music -y --allow-unauthenticated
elif command_exists "yum"; then elif command_exists "yum"; then
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo sudo dnf config-manager addrepo --from-repofile 'https://askiiart.net/repos/fedora/x86_64/askiiart.repo'
sudo dnf install youtube-music -y sudo dnf install youtube-music -y
elif command_exists "rpm-ostree"; then elif command_exists "rpm-ostree"; then
sudo wget https://askiiart.net/repos/fedora/x86_64/askiiart.repo -O /etc/yum.repos.d/askiiart.repo sudo wget https://askiiart.net/repos/fedora/x86_64/askiiart.repo -O /etc/yum.repos.d/askiiart.repo