Get the App
SLTechnology News&Howtos  ›  Servers  › 

Detailed explanation of yum commands and YumSource in Linux

Shulou Source: shulou.com Published: 2022-06-01 11:09:52 10月03日 Update

This article mainly explains the "detailed explanation of yum commands and YumSource in Linux". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "detailed explanation of yum commands and YumSource in Linux".

= = Base Source =

Base/Extras/Updates: default (foreign source)

[root@tianyun ~] # ls / etc/yum.repos.d/

CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo

CentOS-CR.repo CentOS-Media.repo

CentOS-Debuginfo.repo CentOS-Sources.repo

[root@tianyun ~] # yum repolist

Repo id repo name status

Base/7/x86_64 CentOS-7-Base 9363

Extras/7/x86_64 CentOS-7-Extras 449

Updates/7/x86_64 CentOS-7-Updates 2146

Repolist: 11958

/ etc/yum.re

Aliyun:

[root@tianyun ~] # mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backup

[root@tianyun] # curl-o / etc/yum.repos.d/CentOS-Base.repo / / mirrors.aliyun.com/repo/Centos-7.repo

[root@tianyun ~] # yum clean all / / clear the old YUM database information

[root@tianyun ~] # yum makecache / / Update new YUM warehouse information

Yum-y install lftp

163:

[root@tianyun ~] # mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backup

[root@tianyun] # curl-o / etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

EPEL:

[root@tianyun] # yum-y install epel-release (foreign source)

Or

[root@tianyun ~] # mv / etc/yum.repos.d/epel.repo / etc/yum.repos.d/epel.repo.backup

[root@tianyun ~] # wget-O / etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

= = Software official source =

Nginx:

Nginx.org

[root@tianyun ~] # vim / etc/yum.repos.d/nginx.repo

[nginx]

Name=nginx repo

Baseurl= http://nginx.org/packages/centos/7/$basearch/

Gpgcheck=0

Enabled=1

MySQL:

Yum-y install https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

Zabbix:

# rpm-ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

Openstack:

Thank you for your reading, the above is the content of "detailed explanation of yum commands and YumSource in Linux". After the study of this article, I believe you have a deeper understanding of the problem of yum commands and YumSource detailed interpretation in Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Command common use learning information content warehouse foundation official that is ideas situations data databases articles more knowledge knowledge points articles follow software Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS vpn MySQL Linux Huawei