在Linux下,安装软件,对菜鸟来言,是比较困难的,一个是通过rpm 的安装包进行安装
如:# rpm -ivh ****.rpm
如果没有相应的安装包,源码包的安装方式,命令参数让人害怕,出现编译错误不各所措。
现在系统自带的yum安装软件却是自动化的,但是发现系统自带的yum源却有问题,安装的时候,老是显示404错误,故在root权限下修改相应的yum源,
/etc/yum.repos.d/CentOS-Base.repo是相应山高皇帝远的配置文件:
加了几个相应的源
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
http://mirror.be10.com/centos/$releaserver/os/$basearch/
http://centos.candishosting.com.cn/$releaserver/os/$basearch/
http://ftp.hostrno.com/pub/centos/$releaserver/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
http://mirror.be10.com/centos/$releaserver/os/$basearch/
http://centos.candishosting.com.cn/$releaserver/os/$basearch/
http://ftp.hostrno.com/pub/centos/$releaserver/os/$basearch/
gpgcheck=1
后来又进行了修改
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
http://mirror.be10.com/centos/$releaserver/os/$basearch/
http://centos.candishosting.com.cn/$releaserver/os/$basearch/
http://ftp.hostrno.com/pub/centos/$releaserver/os/$basearch/
http://mirrors.163.com/$releaserver/os/$basearch/
http://mirrors.sohu.com/$releaserver/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
$releasever:这是版本叼,我用的是Centos6.3这个版本
$basearch:这是体系号,就是指x86_64,i386,i586这类东西
#mirrorlist:是指向一个镜像表表,
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates
这儿注掉了
然后在通过yum
[root@localhost yum.repos.d]# yum install cvs
Loaded plugins: fastestmirror, refresh-packagekit, security
……………………………………。
Installed:
cvs.x86_64 0:1.11.23-16.el6
Complete!
验证cvs是否已经安装上了:
[root@localhost yum.repos.d]# rpm -qa cvs
cvs-1.11.23-16.el6.x86_64
************************************************************************************************
这儿是从这儿参考的
http://www.360doc.com/content/10/1208/11/2614615_76081510.shtml
http://www.gzidc.org/serverq/n487.html
http://lxsym.blog.51cto.com/1364623/289151
centOS下yum安装配置samba
http://lxsym.blog.51cto.com/1364623/289156
如果yum也没有请参考这个链接
http://blog.csdn.net/cyxlxp8411/article/details/8781021
CentOS不注册的话,yum是用不了,Redhat即使注册了,貌似yum还是用不了。不知道rhel官方yum源是不是要另外收费的?哪位筒子给我扫下盲
**********************************************************************
RedHat linux配置yum本地资源
http://blog.csdn.net/cyxlxp8411/article/details/8780991
http://wenku.baidu.com/link?url=CpMTZ8PGCHKLmgzyK2nWHJGUzUSZ6-WJJ1viZ_DTCoy8snd00_N9vhPxVLk8xjimoHgK-6lvOxdYe19qpYWg_3zUb7yZMw_VwFc5MpDefoC
http://tst.a9188.com/yum/46.html
相关推荐
# 删除redhat自带的yum包 rpm -qa|grep yum|xargs rpm -e --nodeps...rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-3.4.3-150.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
本文档是MySQL官方文档,内容是如何在Centos7环境下用yum工具安装MySQL8。
centos 6.2用yum安装中文输入法
centos7使用yum安装lamp(apache+mariadb+php) php默认版本是5.4.16
卸载yum及python rpm -qa|grep python|xargs rpm -ev --allmatches --...安装 rpm -Uvh --replacepkgs python*.rpm rpm -Uvh --replacepkgs libxml2-python*.rpm rpm -Uvh --replacepkgs rpm-python*.rpm yum*.rpm
centos6_64 yum配置,一键搞定.centos6_64 yum配置,一键搞定
yum安装MySQL
CentOS6.9安装的yum源 一不小心删除yum源后重新安装的文件
MySQL5.7.28_centos7_yum安装 MySQL5.7.28_centos7_yum安装 MySQL5.7.28_centos7_yum安装
本地yum源的安装 1.第一步挂载本地ISO文件 mount /dev/cdrom /media mount [需要挂载的设备] [挂载点] linux使用外部设备都需要挂载到media或者mnt目录下 2.第二步新建repo文件 cd /etc/yum.repos.d touch local....
yum 安装 Nginx 为懒人准备。 第三方yum源(CentOS默认的标准源里没有nginx软件包)
CentOS下yum安装缺少kernel-headers的解决方法.docx
CentOS 5.5使用yum安装Apache+PHP+MySQL 一、安装centos5.5操作系统 二、系统安装 三、安装Apache+php+Mysql 四、 配置防火墙 五、安装phpMyAdmin 六、安装php的扩展 七、安装apache扩展 八、如果想升级PHP的话
Centos6.3 yum安装lamp架构
centos9_StreamISO镜像及yum源配置文件和配置方法
Red Hat Enterprise Linux7的更新包只对注册的用户生效,所以需要自己手动改成Centos的更新包,Centos几乎和和Redhat是一样的,所以无需担心软件包的兼容问题。
在CentOS系统上安装yum软件安装工具,同时分享了一些163镜像站
详细介绍CentOS yum的详细使用方法。
介绍如何在RHEL5没有subscription的情况下换用centos yum源
Centos下的yum安装包