一、降级及低版本centos软件安装

Transaction Check Error:
    package libselinux-1.33.4-5.7.el5.centos.x86_64 (which is newer than libselinux-1.33.4-5.7.el5.i386) is already installed

fix by
    yum downgrade libselinux

低版本centos安装软件解决方式,vault
参见https://mirrors.tuna.tsinghua.edu.cn/help/centos-vault/

二、yum local image config

[centos7]
name=centos7
baseurl=file:///var/www/html/centos7u6x64
enable=1
gpgcheck=0

三、山河云CentOS7 yum配置

[base]
name=CentOS-$releasever - Base - mirrors.shanhe.com
failovermethod=priority
baseurl=http://10.251.102.1/centos/$releasever/os/$basearch/
gpgcheck=0
enabled=1 

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://10.251.102.1/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=0

四、山河云CentOS8 yum配置

[base]
name=CentOS-$releasever - Base - mirrors.shanhe.com
failovermethod=priority
baseurl=http://mirrors.shanhe.com/centos/$releasever/BaseOS/$basearch/os
gpgcheck=0
enabled=1

[extras]
name=CentOS-$releasever - Extras - mirrors.shanhe.com
failovermethod=priority
baseurl=http://mirrors.shanhe.com/centos/$releasever/extras/$basearch/os/
gpgcheck=0

[centosplus]
name=CentOS-$releasever - Plus - mirrors.shanhe.com
failovermethod=priority
baseurl=http://mirrors.shanhe.com/centos/$releasever/centosplus/$basearch/os/
gpgcheck=0
enabled=0

[PowerTools]
name=CentOS-$releasever - PowerTools - mirrors.shanhe.com
failovermethod=priority
baseurl=http://mirrors.shanhe.com/centos/$releasever/PowerTools/$basearch/os/
gpgcheck=0
enabled=0

[AppStream]
name=CentOS-$releasever - AppStream - mirrors.shanhe.com
failovermethod=priority
baseurl=http://mirrors.shanhe.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=0

五、山和云ubuntu apt配置

deb https://mirrors.shanhe.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.shanhe.com/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.shanhe.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.shanhe.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.shanhe.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.shanhe.com/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.shanhe.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.shanhe.com/ubuntu/ focal-backports main restricted universe multiverse

## Not recommended
# deb http://mirrors.shanhe.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src http://mirrors.shanhe.com/ubuntu/ focal-proposed main restricted universe multiverse

六、山河云conda配置

channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://10.251.102.1/anaconda/pkgs/main
  - https://10.251.102.1/anaconda/pkgs/r
  - https://10.251.102.1/anaconda/pkgs/msys2
custom_channels:
  pytorch: https://10.251.102.1/anaconda/cloud
ssl_verify: false
作者:admin  创建时间:2023-04-27 13:42
最后编辑:admin  更新时间:2024-07-17 15:26