网络yum源

网络yum配置

# cd /etc/yum.repos.d/

# wget  http://mirrors.163.com/.help/CentOS6-Base-163.repo

# vi CentOS6-Base-163.repo

: % s/\$releasever/6.6/g

编辑文件,把文件里面的$releasever全部替换为版本号,即6.5 最后保存!或者直接把下面的内存拷贝到CentOS6-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-6.5 - Base - 163.com

baseurl=http://mirrors.163.com/centos/6.5/os/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=os

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#released updates

[updates]

name=CentOS-6.5 - Updates - 163.com

baseurl=http://mirrors.163.com/centos/6.5/updates/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=updates

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful

[extras]

name=CentOS-6.5 - Extras - 163.com

baseurl=http://mirrors.163.com/centos/6.5/extras/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=extras

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-6.5 - Plus - 163.com

baseurl=http://mirrors.163.com/centos/6.5/centosplus/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=centosplus

gpgcheck=1

enabled=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users

[contrib]

name=CentOS-6.5 - Contrib - 163.com

baseurl=http://mirrors.163.com/centos/6.5/contrib/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=contrib

gpgcheck=1

enabled=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

新浪微博
                                                               @皮子喜欢打篮球

时间: 2024-08-07 14:15:35

网络yum源的相关文章

Linux-软件包管理-yum在线管理-网络yum源

cd /etc/yum.repos.d/  切换到etc目录下面的yum.repos.d这个目录中ls   查看当前linux系统的yum源文件信息,其中CentOS-Base.repo文件为默认的yum源 如果能上网就用CentOS-Base.repo,如果不能上网就用CentOS-Media.repo vim /etc/yum.repos.d/CentOS-Base.repo 查看当前linux系统默认的网络yum源信息 默认第一个为生效的容器或叫软件池,如:base

做一个公共的网络yum源

一.网络YUM源   使用163 yum源 1.进入http://mirrors.163.com/.help/centos.html网站下载相对应的yum文件( CentOS7 CentOS6 CentOS5)CentOS-Base-163.repo, 放入/etc/yum.repos.d/    2.运行yum makecache生成缓存 3.yum search softwarename 查找软件 4.yum list softwarename 列出已装软件 5.yum install so

linux 之软件包管理 (四) IP地址配置和网络yum源简介

yum并不一定需要联网,可以使用光盘做为yum源 在red Hat 里面使用yum需要付费,在cent os不需要! 1先使用setup命令: 网络yum源 yum源文件含义:

搭建网络yum源

#!/bin/bash #Linux搭建163网络yum源 cd /etc/yum.repos.d/ echo "-------------------下载163-repo--------------------" wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 2&>/dev/null sed -i "s/\$releasever/6/g" /etc/yum.repos.d/CentOS

RHEL配置网络yum源

RHEL6.5系统配置网络Yum源概述 1.配置本地yum源: 将光盘镜像文件挂载到/mnt目录下#mount /dev/cdrom /mnt; 修改/etc/yum.repo.d/目录下的配置文件,删除或重命名其他的.repo文件,创建新的local.repo文件,内容如下: [local] name=local DVD baseurl=file:///mnt enabled=1 gpgcheck=0 2.利用本地yum源安装wget下载工具: #yum install wget -y 3.利

配置本地和网络yum源

一.配置本地yum源 1.检查自己是否已经安装yum [[email protected] ~]# rpm -qa | grep yum yum-updatesd-0.9-2.el5 yum-security-1.1.16-13.el5 yum-metadata-parser-1.1.2-3.el5 yum-3.2.22-20.el5 yum-rhn-plugin-0.5.4-13.el5 2.把安装光盘挂在到/mnt下 [[email protected] ~]# mount /dev/cdr

CentOS7下配置网络yum源(附带下载地址)

一.查看外网是否通畅 配置网络yum源(需要保证外网开通,我这里是使用网易163提供开源镜像站) 二.下载repo文件 cd /etc/yum.repos.dwget http://mirrors.163.com/.help/CentOS6-Base-163.repo 三. 备份并替换系统的repo文件 备份原来的.repo配置文件 cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.bk         复制网易下载的.repo并修

Linux 本地yum源搭建和网络yum源搭建

一.本地yum源搭建 首先挂载上光盘 [[email protected] /]# mount /dev/cdrom /media/cdrom/ 系统默认已经安装了可使用yum的软件包,所以可以直接配置: [[email protected] ~]# cd /etc/yum.repos.d/                        yum源配置文件放置目录 [[email protected] yum.repos.d]# mv CentOS-Base.repo CentOS-Base.re

Linux:网络yum源设置

网络yum源,最大的网易(163)算是一个,无论是速度还是软件版本,都非常的不错,将yum源设置为163yum,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到.具体设置方法如下: 1.进入yum源配置目录 [[email protected] ~]# cd /etc/yum.repos.d/ 2.备份系统自带的yum源 [[email protected] yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bk 下载163网易

redhat配置centos网络yum源

方案一: 配置网络yum源rpm -ivh vsftpd-2.2.2-6.el6_0.1.x86_64service vsftpd restartchkconfig --level 35 vsftpd oncd /var/ftp/pub/mkdir yum把上面的挂载点改成/var/ftp/pub/yumvim /etc/yum.repos.d/rhel-source.repo[server]name=serverbaserul=ftp://pub/yum/Server/  #(注意要挂载光驱)