centos8更换过期阿里源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum clean all && yum makecache
先执行,执行之后yum更新或者安装可能报错,继续执行下面的

minorver=8.5.2111
sudo sed -e "s|^mirrorlist=|#mirrorlist=|g" \
         -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.aliyun.com/centos-vault/$minorver|g" \
         -i.bak \
         /etc/yum.repos.d/CentOS-*.repo
最后,更新软件包缓存
sudo yum makecache    

更换清华源可以将域名替换掉试试看

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tuna.tsinghua.edu.cn/repo/Centos-vault-8.5.2111.repo
yum clean all && yum makecache
先执行,执行之后yum更新或者安装可能报错,继续执行下面的

minorver=8.5.2111
sudo sed -e "s|^mirrorlist=|#mirrorlist=|g" \
         -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/$minorver|g" \
         -i.bak \
         /etc/yum.repos.d/CentOS-*.repo
最后,更新软件包缓存
sudo yum makecache    

或使用清华源的文档说明
sed -e "s|^mirrorlist=|#mirrorlist=|g" \
    -e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.5|g" \
    -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.5|g" \
    -i.bak \
    /etc/yum.repos.d/CentOS-*.repo
最后,更新软件包缓存
sudo yum makecache   

sanradar
sanradar
文章: 104

68 评论

  1. This article is a gem! The insights provided are very valuable. For additional information, check out: DISCOVER MORE. Looking forward to the discussion!

  2. After looking at a few of the blog articles on your web site, I really like your way of writing a blog. I bookmarked it to my bookmark website list and will be checking back in the near future. Take a look at my website as well and let me know what you think.

  3. Hi, I do believe this is an excellent blog. I stumbledupon it 😉 I am going to return once again since i have bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  4. I wanted to thank you for this great read!! I definitely loved every bit of it. I have got you book-marked to look at new things you post…

  5. Oh my goodness! Awesome article dude! Many thanks, However I am going through problems with your RSS. I don’t know why I can’t subscribe to it. Is there anybody else getting similar RSS problems? Anyone that knows the answer will you kindly respond? Thanx.

  6. Hi there! This post could not be written any better! Going through this article reminds me of my previous roommate! He always kept preaching about this. I’ll send this post to him. Fairly certain he will have a good read. I appreciate you for sharing!

  7. Your style is really unique compared to other people I have read stuff from. I appreciate you for posting when you have the opportunity, Guess I’ll just book mark this web site.

  8. Can I simply just say what a relief to discover a person that truly understands what they’re discussing on the net. You certainly know how to bring an issue to light and make it important. More people have to check this out and understand this side of your story. I was surprised you are not more popular since you most certainly possess the gift.

  9. Hi, I do believe this is an excellent web site. I stumbledupon it 😉 I may return yet again since I saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

  10. Everything is very open with a really clear clarification of the challenges. It was truly informative. Your website is extremely helpful. Thank you for sharing.

  11. Hi, I do think this is a great blog. I stumbledupon it 😉 I am going to come back once again since I bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  12. An impressive share! I have just forwarded this onto a coworker who had been conducting a little homework on this. And he actually ordered me dinner because I found it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanx for spending some time to talk about this subject here on your web site.

  13. Greetings, I think your website might be having browser compatibility issues. When I take a look at your site in Safari, it looks fine however, if opening in I.E., it’s got some overlapping issues. I just wanted to give you a quick heads up! Besides that, fantastic blog.

  14. May I simply just say what a comfort to uncover an individual who really understands what they’re talking about online. You certainly know how to bring a problem to light and make it important. More people need to read this and understand this side of the story. I was surprised you’re not more popular since you definitely possess the gift.

  15. I’m amazed, I must say. Seldom do I encounter a blog that’s both educative and amusing, and let me tell you, you have hit the nail on the head. The problem is an issue that not enough men and women are speaking intelligently about. Now i’m very happy I stumbled across this in my hunt for something regarding this.

  16. I blog quite often and I really appreciate your information. Your article has really peaked my interest. I will book mark your site and keep checking for new information about once per week. I subscribed to your Feed as well.

  17. Howdy, There’s no doubt that your website could be having web browser compatibility issues. When I look at your website in Safari, it looks fine however, if opening in I.E., it has some overlapping issues. I just wanted to provide you with a quick heads up! Apart from that, great site.

  18. Hello there! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not
    seeing very good success. If you know of any please share.
    Cheers! I saw similar art here: Wool product

  19. An outstanding share! I’ve just forwarded this onto a friend who was conducting a little homework on this. And he actually ordered me breakfast simply because I stumbled upon it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanx for spending some time to talk about this topic here on your blog.

  20. After I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now on every time a comment is added I receive 4 emails with the exact same comment. Perhaps there is a way you are able to remove me from that service? Cheers.

  21. Hello there! This blog post could not be written any better! Going through this article reminds me of my previous roommate! He always kept talking about this. I am going to send this article to him. Fairly certain he will have a great read. I appreciate you for sharing!

  22. After checking out a number of the articles on your web site, I seriously appreciate your way of writing a blog. I book marked it to my bookmark site list and will be checking back in the near future. Please visit my website as well and tell me your opinion.

  23. After I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I recieve four emails with the same comment. Perhaps there is a means you can remove me from that service? Many thanks.

  24. After checking out a handful of the blog articles on your blog, I seriously like your way of writing a blog. I saved as a favorite it to my bookmark webpage list and will be checking back in the near future. Please check out my website too and let me know how you feel.

  25. A fascinating discussion is worth comment. There’s no doubt that that you need to publish more on this issue, it might not be a taboo subject but typically folks don’t talk about such topics. To the next! All the best.

  26. You’ve made some good points there. I looked on the internet for more info about the issue and found most individuals will go along with your views on this site.

  27. Hello! I could have sworn I’ve visited this site before but after looking at a few of the articles I realized it’s new to me. Anyhow, I’m certainly delighted I stumbled upon it and I’ll be book-marking it and checking back often.

  28. I seriously love your website.. Great colors & theme. Did you build this website yourself? Please reply back as I’m looking to create my very own blog and would love to know where you got this from or what the theme is called. Many thanks!

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注