diff --git a/common/redhat/apps/brave.sh b/common/redhat/apps/brave.sh index 3896adf..f039c2f 100644 --- a/common/redhat/apps/brave.sh +++ b/common/redhat/apps/brave.sh @@ -2,9 +2,8 @@ install_brave() { echo "Installing brave-browser" - sudo dnf install dnf-transport-https curl - sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-dnf-release.s3.brave.com/brave-browser-archive-keyring.gpg - echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-dnf-release.s3.brave.com/ stable main" | sudo tee /etc/dnf/sources.list.d/brave-browser-release.list - sudo dnf update + sudo dnf install dnf-plugins-core + sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/ + sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc sudo dnf install brave-browser } diff --git a/common/redhat/apps/chrome.sh b/common/redhat/apps/chrome.sh index 530bb9c..bf8fff8 100644 --- a/common/redhat/apps/chrome.sh +++ b/common/redhat/apps/chrome.sh @@ -2,8 +2,7 @@ install_chrome() { echo 'Installing Google Chrome' - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpkg -i ./google-chrome-stable_current_amd64.deb - rm google-chrome-stable_current_amd64.deb - sudo dnf install chrome-gnome-shell -y + sudo dnf install fedora-workstation-repositories + sudo dnf config-manager --set-enabled google-chrome + sudo dnf install google-chrome-stable -y } diff --git a/common/redhat/apps/discord.sh b/common/redhat/apps/discord.sh index 8c99e02..0852b85 100644 --- a/common/redhat/apps/discord.sh +++ b/common/redhat/apps/discord.sh @@ -2,6 +2,7 @@ install_discord() { echo 'Installing Discord' - wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb" - sudo dpkg -i discord.deb + sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm + sudo dnf update + sudo dnf install discord -y } \ No newline at end of file diff --git a/common/redhat/apps/etcher.sh b/common/redhat/apps/etcher.sh index c8072c7..74acd4b 100644 --- a/common/redhat/apps/etcher.sh +++ b/common/redhat/apps/etcher.sh @@ -2,8 +2,7 @@ install_etcher() { echo 'Installing Etcher' - echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/dnf/sources.list.d/balena-etcher.list - sudo dnf-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61 - sudo dnf update -y + curl -1sLf 'https://dl.cloudsmith.io/public/balena/etcher/setup.rpm.sh' | sudo -E bash + sudo dnf update sudo dnf install balena-etcher-electron -y } diff --git a/common/redhat/apps/lsd.sh b/common/redhat/apps/lsd.sh index 5948e95..cdf30e3 100644 --- a/common/redhat/apps/lsd.sh +++ b/common/redhat/apps/lsd.sh @@ -11,9 +11,7 @@ install_lsd() { sudo cp -r hack /usr/share/fonts/ sudo chmod -R 775 /usr/share/fonts/hack rm -r hack - wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb - sudo dpkg -i lsd_0.19.0_amd64.deb - sudo rm lsd_0.19.0_amd64.deb + dnf install lsd -y # echo "alias ls='lsd'" | sudo tee -a /home/*/.bashrc > /dev/null # todos # write py script to comment line: alias="ls --color=auto" diff --git a/common/redhat/apps/sublime_text.sh b/common/redhat/apps/sublime_text.sh index 2c09984..61b58bb 100644 --- a/common/redhat/apps/sublime_text.sh +++ b/common/redhat/apps/sublime_text.sh @@ -2,10 +2,9 @@ install_sublime_text() { echo "Installing sublime-text" - wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo dnf-key add - sudo dnf install dnf-transport-https -y - sudo add-dnf-repository "deb https://download.sublimetext.com/ dnf/stable/" + sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg + sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo - sudo dnf update sudo dnf install sublime-text -y } \ No newline at end of file diff --git a/common/redhat/apps/vscode.sh b/common/redhat/apps/vscode.sh index ccc3393..935c776 100644 --- a/common/redhat/apps/vscode.sh +++ b/common/redhat/apps/vscode.sh @@ -2,8 +2,15 @@ install_vscode() { echo "Installing VS Code" - curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo dnf-key add - - sudo add-dnf-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" - sudo dnf update + sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc + cat <