centos linux7安装yun源,redhat 7安装CentOS 7 yum源

8、下载好后重新安装: [root@pan ~]#ls yum-3.4.3-132.el7.centos.0.1.noarch.rpm yum-updateonboot-1.1.31-34.el7.noarch.rpm

yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-34.el7.noarch.rpm

yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm

[root@pan ~]#rpm -ivh yum-* warning: yum-3.4.3-132.el7.centos.0.1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY

Preparing...################################# [100%] Updating /installing...1:yum-metadata-parser-1.1.4-10.el7 ################################# [ 20%] 2:yum-plugin-fastestmirror-1.1.31-3################################# [ 40%] 3:yum-3.4.3-132.el7.centos.0.1 ################################# [ 60%] 4:yum-updateonboot-1.1.31-34.el7 ################################# [ 80%] 5:yum-utils-1.1.31-34.el7 ################################# [100%] [[email protected] ~]#这次没有报错了,安装完成!!!9、新建repo 配置文件; [root@pan ~]#vim /etc/yum.repos.d/CentOS-Base.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-$7 - Base - 163.com#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=os baseurl=http://mirrors.163.com/centos/7/os/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #released updates [updates]

name=CentOS-$7 - Updates - 163.com#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=updates baseurl=http://mirrors.163.com/centos/7/updates/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras]

name=CentOS-$7 - Extras - 163.com#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=extras baseurl=http://mirrors.163.com/centos/7/extras/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus]

name=CentOS-$7 - Plus - 163.com

baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 10、清除缓存: [root@pan ~]#yum clean all Loaded plugins: fastestmirror, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Cleaning repos: base extras updates

Cleaning up everything11、测试安装是否正常; [root@pan ~]#yum -y install lftp Loaded plugins: fastestmirror, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

base| 3.6 kB 00:00:00extras| 3.4 kB 00:00:00updates| 3.4 kB 00:00:00(1/4): extras/x86_64/primary_db | 139 kB 00:00:00(2/4): base/x86_64/group_gz | 155 kB 00:00:00(3/4): updates/x86_64/primary_db | 3.9 MB 00:00:01(4/4): base/x86_64/primary_db | 5.6 MB 00:00:02Determining fastest mirrors

Resolving Dependencies-->Running transaction check---> Package lftp.x86_64 0:4.4.8-8.el7_3.2will be installed-->Finished Dependency Resolution

Dependencies Resolved=======================================================================================================================Package Arch Version Repository Size=======================================================================================================================Installing:

lftp x86_644.4.8-8.el7_3.2 updates 751k

Transaction Summary=======================================================================================================================Install1Package

~~~~~此处省略安装输出内容~~~~

Installed:

lftp.x86_640:4.4.8-8.el7_3.2Complete!到这里安装完成,以后安装所需包,可以不用本地yum源了,直接使用网络yum源。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值