openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库

1.首先上传openEuler-22.03-LTS-SP4-aarch64-dvd.iso镜像到任意目录,此处上传到/root 下
2.创建挂载点并挂载iso镜像

mkdir /mnt/yum
mount -o loop /root/openEuler-22.03-LTS-SP4-aarch64-dvd.iso /mnt/yum/

查看是否挂载成功

df -Th

3.配置yum软件仓库
首先将原有的仓库备份

cd /etc/yum.repos.d
mkdir…


This content originally appeared on DEV Community and was authored by dbao

1.首先上传openEuler-22.03-LTS-SP4-aarch64-dvd.iso镜像到任意目录,此处上传到/root 下
2.创建挂载点并挂载iso镜像

mkdir /mnt/yum
mount -o loop /root/openEuler-22.03-LTS-SP4-aarch64-dvd.iso /mnt/yum/

查看是否挂载成功

df -Th

3.配置yum软件仓库
首先将原有的仓库备份

cd /etc/yum.repos.d
mkdir bak
mv openEuler.repo bak/

新建openEuler.repo仓库

cd /etc/yum.repos.d
vi openEuler.repo

编辑内容如下:

[os]
name=os
baseurl=file:///mnt/yum/
enabled=1
gpgcheck=0

4.验证是否配置成功

yum list


This content originally appeared on DEV Community and was authored by dbao


Print Share Comment Cite Upload Translate Updates
APA

dbao | Sciencx (2024-09-13T03:39:22+00:00) openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库. Retrieved from https://www.scien.cx/2024/09/13/openeuler-release-22-03%e6%8c%82%e8%bd%bd%e6%9c%ac%e5%9c%b0iso%e5%85%89%e7%9b%98%e9%95%9c%e5%83%8f%ef%bc%8c%e9%85%8d%e7%bd%aeyum%e8%bd%af%e4%bb%b6%e4%bb%93%e5%ba%93/

MLA
" » openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库." dbao | Sciencx - Friday September 13, 2024, https://www.scien.cx/2024/09/13/openeuler-release-22-03%e6%8c%82%e8%bd%bd%e6%9c%ac%e5%9c%b0iso%e5%85%89%e7%9b%98%e9%95%9c%e5%83%8f%ef%bc%8c%e9%85%8d%e7%bd%aeyum%e8%bd%af%e4%bb%b6%e4%bb%93%e5%ba%93/
HARVARD
dbao | Sciencx Friday September 13, 2024 » openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库., viewed ,<https://www.scien.cx/2024/09/13/openeuler-release-22-03%e6%8c%82%e8%bd%bd%e6%9c%ac%e5%9c%b0iso%e5%85%89%e7%9b%98%e9%95%9c%e5%83%8f%ef%bc%8c%e9%85%8d%e7%bd%aeyum%e8%bd%af%e4%bb%b6%e4%bb%93%e5%ba%93/>
VANCOUVER
dbao | Sciencx - » openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/13/openeuler-release-22-03%e6%8c%82%e8%bd%bd%e6%9c%ac%e5%9c%b0iso%e5%85%89%e7%9b%98%e9%95%9c%e5%83%8f%ef%bc%8c%e9%85%8d%e7%bd%aeyum%e8%bd%af%e4%bb%b6%e4%bb%93%e5%ba%93/
CHICAGO
" » openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库." dbao | Sciencx - Accessed . https://www.scien.cx/2024/09/13/openeuler-release-22-03%e6%8c%82%e8%bd%bd%e6%9c%ac%e5%9c%b0iso%e5%85%89%e7%9b%98%e9%95%9c%e5%83%8f%ef%bc%8c%e9%85%8d%e7%bd%aeyum%e8%bd%af%e4%bb%b6%e4%bb%93%e5%ba%93/
IEEE
" » openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库." dbao | Sciencx [Online]. Available: https://www.scien.cx/2024/09/13/openeuler-release-22-03%e6%8c%82%e8%bd%bd%e6%9c%ac%e5%9c%b0iso%e5%85%89%e7%9b%98%e9%95%9c%e5%83%8f%ef%bc%8c%e9%85%8d%e7%bd%aeyum%e8%bd%af%e4%bb%b6%e4%bb%93%e5%ba%93/. [Accessed: ]
rf:citation
» openEuler release 22.03挂载本地iso光盘镜像,配置yum软件仓库 | dbao | Sciencx | https://www.scien.cx/2024/09/13/openeuler-release-22-03%e6%8c%82%e8%bd%bd%e6%9c%ac%e5%9c%b0iso%e5%85%89%e7%9b%98%e9%95%9c%e5%83%8f%ef%bc%8c%e9%85%8d%e7%bd%aeyum%e8%bd%af%e4%bb%b6%e4%bb%93%e5%ba%93/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.