大数据学习第2天----------------centos7 本地yum源,简单步骤
来源:互联网 发布:java编程思想 中文 pdf 编辑:程序博客网 时间:2024/06/06 05:27
第一步:找到yum镜像 /etc/yum.repos.d
[root@hadoop yum.repos.d]# ll
total 28
-rw-r--r--. 1 root root 1664 Aug 30 23:53 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Aug 30 23:53 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Aug 30 23:53 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 314 Aug 30 23:53 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Aug 30 23:53 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Aug 30 23:53 CentOS-Sources.repo
-rw-r--r--. 1 root root 3830 Aug 30 23:53 CentOS-Vault.repo
第二步:改成只有一个能用的(其他都变成bak)
[root@hadoop yum.repos.d]# ll
total 28
-rw-r--r--. 1 root root 1664 Aug 30 23:53 CentOS-Base.repo.bak
-rw-r--r--. 1 root root 1309 Aug 30 23:53 CentOS-CR.repo.bak
-rw-r--r--. 1 root root 649 Aug 30 23:53 CentOS-Debuginfo.repo.bak
-rw-r--r--. 1 root root 314 Aug 30 23:53 CentOS-fasttrack.repo.bak
-rw-r--r--. 1 root root 630 Aug 30 23:53 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Aug 30 23:53 CentOS-Sources.repo.bak
-rw-r--r--. 1 root root 3830 Aug 30 23:53 CentOS-Vault.repo.bak
第三步:创建挂载目录
mkdir /mnt/cdrom
第四步:修改yum镜像里的url 为挂载目录
[root@hadoop yum.repos.d]# vi CentOS-Media.repo
baseurl=
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-7. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c7-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c7-media [command]
[c7-media]
name=CentOS-$releasever - Media
baseurl= file:///mnt/cdrom/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
~
~
"CentOS-Media.repo" 21L, 574C written
第五步:挂载
mount -o loop /dev/sr0 /mnt/cdrom
- 大数据学习第2天----------------centos7 本地yum源,简单步骤
- centos7 本地yum源
- CentOS7.2设置本地yum源
- 大数据学习第3天---------------------多台机器,利用软连接快速部署yum源
- Centos7更改yum源步骤
- centos7 光盘本地yum源
- centos7配置本地yum源
- CentOS7本地yum源安装
- centos7配置本地yum源
- CentOS7配置本地Yum源
- centos7 配置本地yum源
- 大数据学习第2天----------------linux 安装mysql 出现安装依赖问题解决(centos7)
- CentOS7.2 创建本地与局域网yum源
- Centos7更改yum源步骤(转)
- centos7配置yum源为本地源
- CentOS7下使用本地yum源
- centos7 设置本地光盘yum源
- CentOS7下手动配本地yum源
- 各种查看Android手机相关信息的命令
- CSS中的link和@import的区别
- smart-plugin-cache
- 最长公共子序列
- Makefile五之使用变量
- 大数据学习第2天----------------centos7 本地yum源,简单步骤
- T-SQL 知识点
- ssh密钥登录(两种方法)
- PHP实现简单验证码
- 用servlet编写下载程序
- FastLib
- CentOS7搭建SVN服务器
- Neo4j安装
- pacemaker + crmsh+corosync 高可用集群