知识改变命运! 转 centos8 安装yum_newnew-lskyf博客社区

转 centos8 安装yum

newnew 1月前 ⋅ 210 阅读 ⋅ 0 个赞

转载一篇文章作为记录

文章来源: 作者:小a_2bfa 链接:https://www.jianshu.com/p/5e6746f00d17 https://www.jianshu.com/p/5e6746f00d17

1.手贱把python卸载后yum也不能使用了,使用下面脚本可以一键安装 2.看好系统版本是 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账户下

vim /home/install_yum.sh 将脚本贴过来

chmod u+x /home/install_yum.sh

sh /home/install_yum.sh


全部评论: 0

    我有话说:

    k8s阿里云yum

    阿里云yum源 cat > /etc/yum.repos.d/kubernetes.repo << EOF [kubernetes] name=Kubernetes

    React安装(用npm或者cnpm)

    1.确保你电脑上有nodeJS,直接下载安装下一步下一步就可以了。 2.打开git或者cmd,如下: ​ 3.创建项目 ​ 4.打开项目运行 ​ 5.在浏览器打开,一般都是

    docker安装redis并允许外网访问

    docker安装redis并允许外网访问 拉取redis镜像 docker pull redis:3.2 本地新建redis配置文件 redis.conf ,写入以下内容 #允许外网访问 bind

    systemctl enable kubelet Failed to execute operation: File exists

    安装kubelet报错: systemctl enable kubelet Failed to execute operation: File exists 解释 意思是kubelet文件已存在执行

    解决docker下载安装太慢,docker-compose安装太慢,docker镜像拉取安装太慢

    解决docker下载安装太慢,docker-compose安装太慢,docker镜像拉取安装太慢 1.docker 安装换成以下镜像 sudo curl -sSL https://get

    idea离线安装better-mybatis-generator

    1.idea离线安装better-mybatis-generator 2.下载better-mybatis-generator 浏览器输入链接http://plugins.jetbrains.com

    谷歌发布 AI 代码编辑器:Project IDX

    原文链接:https://www.oschina.net/news/253035/google-project-idx 88 日,谷歌宣布推出 AI 代码编辑器 Project IDX,这是

    idea最新免费注册使用步骤

    最近在安装Intellij idea,社区版本比旗舰版本少了很多东西,曲曲折折终于找到了学生可以免费使用旗舰版的方法: 以下步骤来自Lenyo Lee的更新: JetBrains开发工具免费提供学生

    chrome 离线扩展程序安装报错 程序包无效:"CRX_HEADER_INVALID"

    安装chrome离线扩展程序时候报错:程序包无效:"CRX_HEADER_INVALID"导致crx扩展程序无法正常安装。 怎么办呢? 解决方法:将crx文件后缀.crx改为.zip然后重新拖进

    redis安装,docker 安装最新redis 7.x版本找不到redis.conf的默认位置?最新redis.conf的内容是什么?

    1. docker 安装最新7.x版本的redis找不到redis.conf的默认位置? 1.1 首先进入容器 docker exec -it 容器ID/容器名称 bash 1.2 执行

    加入公众号
    加入公众号