RHEL6 use yum to install or update
2013-01-03 14:45
260 查看
# 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-$releasever - Base - 163.com baseurl=http://mirrors.163.com/centos/6/os/i386/ #baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates - 163.com #http://mirrors.163.com/centos/6/updates/i386/repodata/ baseurl=http://mirrors.163.com/centos/6/updates/i386/ #baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&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-$releasever - Extras - 163.com baseurl=http://mirrors.163.com/centos/6/extras/i386/ #baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&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-$releasever - Plus - 163.com baseurl=http://mirrors.163.com/centos/6/centosplus/i386/ #baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&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-$releasever - Contrib - 163.com baseurl=http://mirrors.163.com/centos/6/contrib/i386/ #baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
modify /etc/yum.repos.d/*.repo to this.
run:
yum makecache
相关文章推荐
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1
- Modify a prepackaged image and Use YUM to install software
- You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5
- 在centos7上面组安装出现No packages in any requested group available to install or update错误解决方法
- Server 2008 R2: “You must use the Role Management Tool to install or configure Microsoft .NET”
- How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum
- maven项目报错--Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Qu
- eclipse中,项目有红叉之-Project configuration is not up-to-date with pom.xml. Select: Maven->Update Project... from the project context menu or use Quick Fix
- How to Configure YUM to Install Packages From Installation ISO (RHEL)
- How to fix yum errors on CentOS, RHEL or Fedora
- Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources解决
- hive 异常 (Attempt to do update or delete on table terminal that does not use an )
- You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1
- Install and use CentOS 7 or RHEL 7 as KVM virtualization host
- Maven异常Type Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix
- Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix