Linux 安裝 yum

Endv發表於2018-05-11

 1、使用RedHat系統不能正常使用yum安裝
由於RedHat沒有註冊,所有不能使用它自身的資源更新, 

檢視安裝源是否安裝:

# rpm –qa|grep yum

解除安裝安裝源:

# rpm –e –nodeps yum

清理快取:

# yum clean all

將伺服器軟體資訊儲存在本地,提高搜尋安裝效率:

# yum makecache

2、修改yum的原始檔

#cd /etc/yum.repos.d

使用網易163的yum源: http://mirrors.163.com/.help/centos.html

#wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

刪除檔案:

#rm -f /etc/yum.repos.d/CentOS-Base.repo

重新命名檔案

#mv CentOS7-Base-163.repo CentOS-Base.repo

Centos bt 安裝指令碼

https://www.bt.cn/btcode.html#install
  

#yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

==================================================================

Congratulations! Install succeeded!
==================================================================
Bt-Panel: http://105.xxx.xxx.xxx:8888
username: admin
password: 3efc178b
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
==================================================================
Time consumed: 6 Minute!
[root@localhost yum.repos.d]#

相關文章