技术宅

当前位置:首页 > 服务器技术 > linux主机

linux主机

centos8 安装yum

时间:11-20 作者:
系统版本是 centos8-steam

安装脚本#pythoncd /usr/local/src/pythonwget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-asn1crypto-
系统版本是 centos8-steam

安装脚本

#python
cd /usr/local/src/python
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-asn1crypto-0.24.0-3.el8.noarch.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-dnf-4.7.0-4.el8.noarch.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-gpg-1.13.1-9.el8.x86_64.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-hawkey-0.63.0-3.el8.x86_64.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-libcomps-0.1.16-2.el8.x86_64.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-libdnf-0.63.0-3.el8.x86_64.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-libs-3.6.8-41.el8.x86_64.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/python3-rpm-4.14.3-19.el8.x86_64.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/platform-python-3.6.8-41.el8.x86_64.rpm
#yum
cd /usr/local/src/yum
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/yum-4.7.0-4.el8.noarch.rpm
wget https://repo.huaweicloud.com/centos/8-stream/BaseOS/x86_64/os/Packages/yum-utils-4.0.21-3.el8.noarch.rpm

#安装Python
cd /usr/local/src/python
# 安装python
rpm -ivh python3-* platform-python-* --nodeps --force

# 安装yum
#安装yum
cd /usr/local/src/yum
rpm -Uvh --force --nodeps *.rpm


使用方式

1.在root账户下

  1. vim /home/install_yum.sh 将脚本贴过来
  2. chmod u+x /home/install_yum.sh
  3. sh /home/install_yum.sh


注意:不会搞脚本 没关系,按照上面步骤 一步一步收到搞一样可以得。