linux卸载mono,CentOS7安装Mono并保留离线安装包
Mono是一個(gè)可在Linux上運(yùn)行C#軟件的工具,還可跨別的平臺(tái)。其Moma小工具可提前檢測(cè)是否跨平臺(tái)支持。?下面介紹CentOS7安裝Mono并保留離線安裝包的方法。
1.本人在Hyper-V下面新建虛擬機(jī)安裝minimal最小安裝版的CentOS7系統(tǒng);
2.安裝好系統(tǒng)后,要保證網(wǎng)是聯(lián)通的;
3.首先安裝net-tools工具,使用yum install
net-tools命令,不然連ifconfig都沒(méi)有沒(méi)法看本地ip地址;
4.安裝一個(gè)yum-utils工具包,不然沒(méi)有yum-config-manager工具,使用命令yum install
yum-utils來(lái)安裝;
5.安裝Mono官網(wǎng)上配置軟件源,有兩條指令,如下:
rpm --import
"http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
?yum-config-manager
--add-repo http://download.mono-project.com/repo/centos/
6.?配置好源之后,就準(zhǔn)備安裝mono了,官網(wǎng)上說(shuō)一共4個(gè)軟件包,分別為:
The
package?mono-devel?should
be installed to compile code.
The
package?mono-complete?should
be installed to install everything - this should cover most cases
of “assembly not found” errors.
The
package?referenceassemblies-pcl?should
be installed for PCL compilation support - this will resolve most
cases of “Framework not installed: .NETPortable” errors during
software compilation.
The
package?ca-certificates-mono?should
be installed to get SSL certificates for HTTPS connections. Install
this package if you run into trouble making HTTPS
connections.
大概含義是說(shuō)都裝上沒(méi)壞處。?
7.使用這個(gè)命令,先將安裝包下載到本地?/home/samba/rpms/mono路徑,當(dāng)然要提前創(chuàng)建好此路徑:
yum --downloadonly
--downloaddir=/home/samba/rpms/mono install?mono-devel?mono-complete?referenceassemblies-pcl??ca-certificates-mono
8.全部下載完成后在下載目錄使用rpm -iv *.rpm進(jìn)行安裝即可,也可以使用下面命令重新下載完整安裝:
yum
install?mono-devel?mono-complete?referenceassemblies-pcl??ca-certificates-mono
????????
大概就是這樣了。?
總結(jié)
以上是生活随笔為你收集整理的linux卸载mono,CentOS7安装Mono并保留离线安装包的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 金山词霸取不了Adobe Reader的
- 下一篇: 分布式异步任务框架之Celery定义、异