Friday, November 13, 2015

Fedora 23 - Install fendy with WGET

Well, I don't like cURL. Because of my company proxy setting. So I made a custom Fedy installer that use wget..
#!/bin/bash

# Script to install Fedy < http://folkswithhats.org/ >.
# Copyright (C) 2014  Satyajit sahoo
# Custom by kriptonium - 13/11/2015

if [[ ! $(whoami) = "root" ]]; then
    echo "Please run the script as root."
    exit 1
fi

echo "Downloading RPM files.."
wget http://folkswithhats.org/repo/$(rpm -E %fedora)/RPMS/noarch/folkswithhats-release-1.0.1-1.fc$(rpm -E %fedora).noarch.rpm
wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
wget http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

echo "Adding repositories..."
rpm --quiet --query folkswithhats-release || dnf -y --nogpgcheck install folkswithhats-release-1.0.1-1.fc$(rpm -E %fedora).noarch.rpm
rpm --quiet --query rpmfusion-free-release || dnf -y --nogpgcheck install rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
rpm --quiet --query rpmfusion-nonfree-release || dnf -y --nogpgcheck install rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

echo "Installing fedy..."

dnf -y --nogpgcheck install fedy

echo "Delete RPM files.."
rm folkswithhats-release-1.0.1-1.fc$(rpm -E %fedora).noarch.rpm
rm rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
rm rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# Please report bugs at < http://github.com/folkswithhats/fedy/issues >
# End of the Script

$ wget https://gist.githubusercontent.com/Kriptonium/e863d954d2f2ada224e7/raw/b8d65862ffede6c5a1b3155e8b6987fdcde741cc/fedy-installer-custom
$ sudo chmod +x fedy-installer-custom
$ sudo ./fedy-installer-custom

No comments:

Post a Comment