OpenEuler与传统centos系统一样,默认yum源路径为/etc/yum.repos.d,该目录下可能已存在了系统默认的源,但是有些时候安装某些包组出现找不到情况,这是由于某些源enabled没有开启,可以考虑将默认源修改为以下内容。
openEuler标准yum源配置仅需替换openEuler-20.03-LTS-SP2内容。
如:
openEuler-20.03-LTS
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-SP2
openEuler-22.03-LTS
openEuler-22.03-LTS-SP1
openEuler默认yum源如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
[OS] name=OS baseurl=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/OS/$basearch/ enabled=1 gpgcheck=0 gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler [everything] name=everything baseurl=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/everything/$basearch/ enabled=1 gpgcheck=0 gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/everything/$basearch/RPM-GPG-KEY-openEuler [EPOL] name=EPOL baseurl=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/EPOL/main/$basearch/ enabled=1 gpgcheck=0 gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler [EPOL-UPDATE] name=EPOL-UPDATE baseurl=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/EPOL/update/main/$basearch/ enabled=1 gpgcheck=0 gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler [debuginfo] name=debuginfo baseurl=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/debuginfo/$basearch/ enabled=1 gpgcheck=0 gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/debuginfo/$basearch/RPM-GPG-KEY-openEuler [source] name=source baseurl=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/source/ enabled=1 gpgcheck=0 gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/source/RPM-GPG-KEY-openEuler [update] name=update baseurl=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/update/$basearch/ enabled=1 gpgcheck=0 gpgkey=http://repo.openeuler.org/openEuler-20.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler |
原文链接:OpenEuler华为欧拉系统yum源配置,转载请注明来源!