yum源文件 博客分类: Linux yum
程序员文章站
2024-03-02 10:08:04
...
一 简介
1、安装过程中,rpm包依赖性太强。
2、如果所有的rpm包都是手工安装,则rpm包使用难度较大。
3、yum在线安装,它的好处是:将所有软件包放到官方服务器上,当进行yum在线安装时,可以自动解决依赖性问题。
4、redhat的yum在线安装需要付费,但centos不需要。
二 yum源文件
三 CentOS7-Base-163.repo镜像文件如下
[root@localhost yum.repos.d]# cat CentOS7-Base-163.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
推荐阅读
-
忘了root用户密码后,修改root密码方法 博客分类: Linux
-
Linux目录名称 博客分类: OperationSystemLinux linuxOS
-
@Marked-CentOS修改镜像源头 博客分类: Linux yum
-
centos 下yum安装jdk 博客分类: jdkJAVA jdkjavayumcentos
-
将Centos的yum源更换为国内的阿里云源,yum失败dns处理 博客分类: centos/linux/ubuntu相关 yumdns
-
Linux安装Git服务 博客分类: OperationSystemLinuxGit linuxcentosgit
-
RedHat6.5用镜像文件配置yum源 博客分类: redhatRedHat6.5yumLinuxiso redhatredhat6.5yumlinuxiso
-
Solution of upload half broken of transfer files bettwen windows and linux 博客分类: Linux linuxcommandrz
-
linux shell 常用命令 博客分类: Linux linuxshellcommand
-
cp 命令详解 博客分类: Linux cpcopylinuxcommandos