Improved redhat installtions

This commit is contained in:
Sven Heidemann 2021-11-24 09:55:57 +01:00
parent ee00077533
commit d0d8f9d221
7 changed files with 24 additions and 22 deletions

View File

@ -2,9 +2,8 @@
install_brave() { install_brave() {
echo "Installing brave-browser" echo "Installing brave-browser"
sudo dnf install dnf-transport-https curl sudo dnf install dnf-plugins-core
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-dnf-release.s3.brave.com/brave-browser-archive-keyring.gpg sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
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 rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf update
sudo dnf install brave-browser sudo dnf install brave-browser
} }

View File

@ -2,8 +2,7 @@
install_chrome() { install_chrome() {
echo 'Installing Google Chrome' echo 'Installing Google Chrome'
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dnf install fedora-workstation-repositories
sudo dpkg -i ./google-chrome-stable_current_amd64.deb sudo dnf config-manager --set-enabled google-chrome
rm google-chrome-stable_current_amd64.deb sudo dnf install google-chrome-stable -y
sudo dnf install chrome-gnome-shell -y
} }

View File

@ -2,6 +2,7 @@
install_discord() { install_discord() {
echo 'Installing Discord' echo 'Installing Discord'
wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb" sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dpkg -i discord.deb sudo dnf update
sudo dnf install discord -y
} }

View File

@ -2,8 +2,7 @@
install_etcher() { install_etcher() {
echo 'Installing Etcher' echo 'Installing Etcher'
echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/dnf/sources.list.d/balena-etcher.list curl -1sLf 'https://dl.cloudsmith.io/public/balena/etcher/setup.rpm.sh' | sudo -E bash
sudo dnf-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61 sudo dnf update
sudo dnf update -y
sudo dnf install balena-etcher-electron -y sudo dnf install balena-etcher-electron -y
} }

View File

@ -11,9 +11,7 @@ install_lsd() {
sudo cp -r hack /usr/share/fonts/ sudo cp -r hack /usr/share/fonts/
sudo chmod -R 775 /usr/share/fonts/hack sudo chmod -R 775 /usr/share/fonts/hack
rm -r hack rm -r hack
wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb dnf install lsd -y
sudo dpkg -i lsd_0.19.0_amd64.deb
sudo rm lsd_0.19.0_amd64.deb
# echo "alias ls='lsd'" | sudo tee -a /home/*/.bashrc > /dev/null # echo "alias ls='lsd'" | sudo tee -a /home/*/.bashrc > /dev/null
# todos # todos
# write py script to comment line: alias="ls --color=auto" # write py script to comment line: alias="ls --color=auto"

View File

@ -2,10 +2,9 @@
install_sublime_text() { install_sublime_text() {
echo "Installing 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 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 sudo dnf install sublime-text -y
} }

View File

@ -2,8 +2,15 @@
install_vscode() { install_vscode() {
echo "Installing VS Code" echo "Installing VS Code"
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo dnf-key add - sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo add-dnf-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" cat <<EOF | sudo tee /etc/yum.repos.d/vscode.repo
sudo dnf update [code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF
sudo dnf check-update
sudo dnf install code -y sudo dnf install code -y
} }