Linux雲端計算教程大綱課件:yum常用命令和yum源詳解

千鋒雲端計算發表於2019-09-23

Linux雲端計算教程大綱課件:yum常用命令和yum源詳解

==基礎源==

Base/Extras/Updates: 預設(國外源)

[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 9,363

extras/7/x86_64 CentOS-7 - Extras 449

updates/7/x86_64 CentOS-7 - Updates 2,146

repolist: 11,958

/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 // 清除原來舊的YUM 資料庫資訊

[root@tianyun ~]# yum makecache // 更新新的YUM倉庫資訊

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

EPEL:

[root@tianyun ~]# yum -y install epel-release (國外源)

[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

==軟體官方源==

Nginx:

nginx.org

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

[nginx]

name=nginx repo

baseurl=

gpgcheck=0

enabled=1

Linux雲端計算教程大綱課件:yum常用命令和yum源詳解

Linux雲端計算教程大綱課件:yum常用命令和yum源詳解

MySQL:

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

Linux雲端計算教程大綱課件:yum常用命令和yum源詳解

Linux雲端計算教程大綱課件:yum常用命令和yum源詳解

Linux雲端計算教程大綱課件:yum常用命令和yum源詳解

Zabbix:

# rpm -ivh

openstack:

Linux雲端計算教程大綱課件:yum常用命令和yum源詳解



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69916964/viewspace-2657954/,如需轉載,請註明出處,否則將追究法律責任。

相關文章