Red Hat 7.2 配置c…
来源:互联网 发布:vb下载网页源代码 编辑:程序博客网 时间:2024/06/07 05:40
今天在redhat7上安装cobbler才发现没有配置源,= =,查了教程成功配置
1、删除redhat原有的yum源
# rpm-aq | grep yum|xargs rpm -e --nodeps
2、下载新的yum安装包
这里我们使用CentOS的yum源
wgethttp://mirror.centos.org/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
wgethttp://mirror.centos.org/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wgethttp://mirror.centos.org/centos/7/os/x86_64/Packages/yum-3.4.3-132.el7.centos.0.1.noarch.rpm
wgethttp://mirror.centos.org/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm
3、安装yum软件包
rpm -ivhpython-iniparse-0.4-9.el7.noarch.rpm
rpm -ivhyum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh yum-3.4.3-132.el7.centos.0.1.noarch.rpmyum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm
注意:最后两个安装包要放在一起同时安装,否则会提示相互依赖,安装失败。
4、更改yum源
wget
wget -O/etc/yum.repos.d/epel.repohttp://mirrors.aliyun.com/repo/epel-7.repo
viCentOS7-Base-163.repo
编辑CentOS7-Base-163.repo文件,把文件里面的$releasever全部替换为版本号,即7最后保存!
:%s/$releasever/7/g
编辑epel.repo文件,把文件里面的$basearch全部替换为系统位数,即x86_64最后保存!
:%s/$basearch/x86_64/g
5、清理yum缓存
# yumclean all
# yummakecache
# yuminstall vim*
阅读全文
0 0
- Red Hat 7.2 配置c…
- 记录red hat linux&nbsp…
- Red Hat Linux 9安装GCC(一)
- Red Hat Linux 9安装GCC(二)
- Pro*C OCI …
- IOS Objective c 同步 异步链接 …
- Red-Song Movement - a new cultur…
- Improved logging in Objective-C …
- Bootloader and Uboot compiled, c…
- C# StreamReader 和 StreamWriter …
- It is never too late to make a c…
- java 环境配置 JSP+TOMCAT+MYS…
- C++ typeid: find out type in rea…
- poj 3083 Children of the Candy C…
- A temporary table could not be c…
- Eclipse CDT 配置C /C ++ 标准库
- HDU:1250 Hat's Fibonacci 这样…
- 集线器 交换机 路由器 网桥 …
- 成员变量、类变量、局部变量的区别
- kvm虚拟机中virbr0虚拟网络接口的…
- Fragment传值PulltorefreshListciew加载更多
- 视频直播 | 从零入门机器学习算法与实践(附微信群)
- redhat eth0
- Red Hat 7.2 配置c…
- apache 配置收集
- cobbler 杂项
- 深度学习岗位面试问题一览
- syntax error near&nbsp…
- 搭建NFS网络文件共享,以及autoFS自…
- NTP时间服务器搭建
- 动态性能视图概述
- SSH配置文件详解