Install mono on Centos7 - mono

I use this steps to install mono on Centos7 and it worked for me for days.
mkdir /mono
wget http://download.mono-project.com/repo/xamarin.gpg -P /mono
rpm --import /mono/xamarin.gpg
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
yum install -y mono-complete
And now it keeps failing and can't install mono:
failure: repodata/bd6e4ea2b820dd6b71fd4fca044931e043e411cc2ba8e362b8249951474224b6-primary.sqlite.bz2 from download.mono-project.com_repo_centos_: [Errno 256] No more mirrors to try.
http://download.mono-project.com/repo/centos/repodata/bd6e4ea2b820dd6b71fd4fca044931e043e411cc2ba8e362b8249951474224b6-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Is there a problem with the repository right now? Or should i install it from a different source?
It's a Centos7 host running on Azure in the North Europe region.

Just follow the steps below to install mono done
yum-config-manager --add-repo http://download.mono-project.com/repo/centos-beta/
yum repolist
and finally
yum install -y mono-complete
Install Mono

Related

sudo yum reinstall package-versionX does not detect

Goal: install old version of package insign with sudo yum reinstall insign-3.30.11-1.el7
Problem: Error below no match for argument
Current package version installed rpm -q insign:
Available packages yum --showduplicates list availabe insign:
Trying to install version 3.30.11-1 ... sudo yum reinstall insign-3.30.11-1.el7:

How to fix: fatal error: openssl/opensslv.h: No such file or directory in RedHat 7

I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but when I execute the following command:
make modules
I get the following error:
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
Does anyone have an idea to fix this please ?
To fix this problem, you have to install OpenSSL development package, which is available in standard repositories of all modern Linux distributions.
To install OpenSSL development package on Debian, Ubuntu or their derivatives:
$ sudo apt-get install libssl-dev
To install OpenSSL development package on Fedora, CentOS or RHEL:
$ sudo yum install openssl-devel
Edit :
As #isapir has pointed out, for Fedora version>=22 use the DNF package manager :
dnf install openssl-devel
For Alpine Linux:
apk add openssl-dev
On CYGwin, you can install this as a typical package in the first screen. Look for
libssl-devel
for resolving this issue install:
# yum install openssl openssl-devel
and then try again to do make bzImage.

Yum install graphicsmagick on rhel server

Any idea how do i install graphicsmagick using yum on rhel 6?
I know the other method of installing i.e by downloading tar file and running make install and so on. However i was wondering if we can install it through package manager like yum, so that it will be easier to un-install if required in future.
Thanks
You need to install the epel repository in order to do this.
Download the latest epel-release rpm from
http://dl.fedoraproject.org/pub/epel/6/x86_64/
Install epel-release rpm:
rpm -Uvh epel-release*rpm
Install GraphicsMagick rpm package:
yum install GraphicsMagick

How to run Rebol on Freya

Been trying to run rebol-view-278-4-2 on Elementary OS "Freya" (a variant of Ubuntu 14.04 LTS).
I keep getting this error:
error while loading shared libraries: libXaw.so.7: cannot open shared object file: No such file or directory
I went ahead and tried to install the missing library but to no avail.
These are the steps I took to get R2 core and view working on Ubuntu 14.04 LTS "Trusty," so I would imagine that this would also work on Freya:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get update
sudo apt-get install libx11-6:i386
sudo apt-get install libxext6:i386
sudo apt-get install libxaw7:i386
sudo apt-get install libfreetype6:i386
sudo apt-get install xfonts-100dpi xfonts-75dpi
(I prefer to keep the package install steps separate in case one of them fails.)

How to install apache2 in Ubuntu

I am trying to install apache2 in Ubuntu 12. I installed Ubuntu in Virtual Machine. I have problems. First, my system can not update or upgrade. When I type:
I receive a lot of errors like this:
Err http://security.ubuntu.com quantal-security/main Sources
404 Not Found [IP: 91.189.91.14 80]
At the final line, this is the result:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Second, when I try to install apache2. I type:
sudo apt-get install apache2 apache2-doc apache2-utils
Again, it fails. The result:
e#ubuntu:/etc$ sudo apt-get install apache2 apache2-doc apache2-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2
E: Unable to locate package apache2-doc
E: Unable to locate package apache2-utils
e#ubuntu:/etc$
Can you help me plz?
EDIT:
This command does not work either.
sudo apt-get update && sudo apt-get upgrade
I get:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The problem is with the OS installation.
use sudo apt-get update && sudo apt-get upgrade. If ou cannot update. Then try to re-install the OS.
After a fresh install of your OS try sudo apt-get install apache2 apache2-doc apache2-utils