Created
November 7, 2020 16:30
-
-
Save magicwenli/ca9ee18aec800d2179f17210012b51bf to your computer and use it in GitHub Desktop.
给OpenEuler添加软件源
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 给OpenEuler添加软件源 */ | |
step1: cd /etc/yum.repos.d/ | |
step2: ls | |
/* 显示结果例如:openEuler.repo */ | |
step3: sudo vi openEuler.repo | |
/* 进入vi,依次输入注释前的东西 */ | |
G // 即shift+g,跳转到最后一行 | |
o // 小写o,新建一行并进入insert模式 | |
// 输入以下内容 | |
[base] | |
name=base | |
baseurl=https://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-20.09/OS/x86_64 | |
enabled=1 | |
gpgcheck=0 | |
esc // 退出insert模式 | |
: // 英文冒号 | |
wq | |
回车 // 保存退出 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment