-
-
Save yetanotherchris/42b429059e5fe1b3f7bb4169f5706c00 to your computer and use it in GitHub Desktop.
sudo yum update -y | |
echo "======= INSTALLING RPM FOR MONO =======" | |
sudo mkdir -p /tmp/mono_dependencies | |
cd /tmp/mono_dependencies | |
sudo wget https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libpng15-1.5.30-11.fc33.x86_64.rpm | |
sudo yum install -y libpng15-1.5.30-11.fc33.x86_64.rpm | |
echo "======= INSTALLING MONO ============" | |
sudo yum install -y yum-utils | |
sudo rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" | |
sudo yum-config-manager --add-repo http://download.mono-project.com/repo/centos/ | |
sudo yum clean all | |
sudo yum makecache | |
sudo yum install -y mono-complete | |
sudo rm -rf /tmp/mono_deps | |
echo "======= TESTING MONO ============" | |
cd ~ | |
echo "using System; public class HelloWorld { static public void Main () { Console.WriteLine (\"ヅ Hello from Mono (hello.exe). Installation complete! ヅ\"); } }" > hello.cs | |
mcs hello.cs | |
mono hello.exe |
Update to use the latest libpng15 rpm:
wget https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libpng15-1.5.28-2.fc26.x86_64.rpm
yum install -y libpng15-1.5.28-2.fc26.x86_64.rpm
another latest version update:
sudo wget https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libpng15-1.5.30-3.fc28.x86_64.rpm
sudo yum install -y libpng15-1.5.30-3.fc28.x86_64.rpm
August update:
sudo wget https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libpng15-1.5.30-6.fc29.x86_64.rpm
Februrary update: sudo wget https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libpng15-1.5.30-7.fc30.x86_64.rpm
sudo wget https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libpng15-1.5.30-11.fc33.x86_64.rpm
I've updated the Gist to the above rpm
On Amazon Linux 2 I was able to install mono simply with sudo amazon-linux-extras install mono
(after I cleaned up the mess trying to install mono using centos8 commands from mono-project.com)
On Amazon Linux 2 I was able to install mono simply with
sudo amazon-linux-extras install mono
(after I cleaned up the mess trying to install mono using centos8 commands from mono-project.com)
Thanks for this. Pays to scroll!
Anyone got the latest wget link? Trying to do this for a piece of Uni coursework but the link they have provided us is outdated.
Use this for creating an Octopus deploy SSH tentacle on Amazon Linux