Last active
November 21, 2024 10:33
-
-
Save yetanotherchris/42b429059e5fe1b3f7bb4169f5706c00 to your computer and use it in GitHub Desktop.
Install Mono on Amazon Linux (CentOS too)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.