Centos6 163 source OK

Source: Internet
Author: User
Tags openldap

Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup

1.163 http://mirrors.163.com/.help/centos.html

Priority = 9

2. epel http://fedoraproject.org/wiki/EPEL

Priority = 9

3. http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01 RPMforge

Priority = 9

4. RPMFusion http://mirrors.163.com/.help/rpmfusion.html/http://rpmfusion.org

Su-c 'rpm-Uvh http://mirrors.163.com/rpmfusion/free/el/updates/testing/6/x86_64/rpmfusion-free-release-6-0.1.noarch.rpm license'

Priority = 9

 

 

 

 

CentOS6-Base-163.repo priority = 1 priority = 2

CentOS-Base.repo.backup

CentOS-Debuginfo.repo priority = 1 priority = 2

CentOS-Media.repo priority = 1 priority = 2

Epel. repo priority = 10 priority = 11

Epel-testing.repo priority = 10 priority = 11

Rpmfusion-free-updates.repo priority = 20 priority = 21

Rpmfusion-free-updates-testing.repo priority = 21.

Rpmfusion-nonfree-updates.repo priority = 20 priority = 21

Rpmfusion-nonfree-updates-testing.repopriority = 21

Rpmforge. repo priority = 30 priority = 31

 

 

Yum makecache

 

Yum check-update

Yum update

 

Uname-pr

 

Yum install yumex

 

Yum install ntfs-3g.x86_64

 

Yum install proftpd. x86_64

 

Rpm gadmin-proftpd-0.4.0-0.1.rhfc12.nr.i686.rpm

 

Rpm-K rpmforge-release-0.5.2-2.el6.rf. *. rpm

 

Rpm-ivh foo-1.0-1.i386.rpm

 

###########################

 

 

 

 

 

Http://mirrors.163.com/.help/centos.html

 

Http://www.librehat.info/04/redhat-yum-rpm-repo/

 

Official domestic image> epel> rpmforge> rpmfusion (priority value

 

1. RPMforge for CentOS 6

 

The default RPMforge repository does not replace any CentOS base packages. In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default.

 

You can find a complete listing of the RPMforge package at http://packages.sw.be/

 

Download the rpmforge-release package. choose one of the two links below, selecting to match your host's architecture. if you are unsure of which one to use you can check your architecture with the command uname-I

 

I686 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

 

Http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm x86_64

 

The preferred rpmforge-release package to retrieve and to install in order to enable that repository is one of the two listed above.

 

Install DAG's GPG key

 

Rpm -- import http://apt.sw.be/RPM-GPG-KEY.dag.txt

If you get an error message like the following the key has already been imported:

 

Error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.

Verify the package you have downloaded

 

Rpm-K rpmforge-release-0.5.2-2.el6.rf. *. rpm

Security warning: The rpmforge-release package imports GPG keys into your RPM database. as long as you have verified the md5sum of the key injection package, and trust Dag, et al ., then it shoshould be as safe as your trust of them extends.

 

Install the package

 

Rpm-I rpmforge-release-0.5.2-2.el6.rf. *. rpm

This will add a yum repository config file and import the appropriate GPG keys.

 

Then try to install something like this

 

Yum install htop

 

 

 

 

Step 2: Install centos6, add the centos upgrade image, and add the epel Image

 

Back up/etc/yum. repos. d/CentOS-Base.repo first

 

Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup

Download the corresponding version of the repo file and put it in/etc/yum. repos. d/(back up the file before the operation)

 

Cd/etc/yum. repos. d/

 

Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

Download and install the epel Library

 

Wget http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

 

Rpm-Uhv epel-release-6-5.noarch.rpm

Run yum makecache to generate Cache

 

If an error occurs, check whether the image library of 163 is faulty.

 

Vim CentOS6-Base-163.repo.

Comment out the corresponding addons content, because the library has not been released, so it must be commented out

 

# Packages used/produced in the build but not released

# [Addons]

# Name = CentOS-$ releasever-Addons-163.com

# Baseurl = http://mirrors.163.com/centos/?releasever/addons/?basearch/

# Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = addons

# Gpgcheck = 1

# Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

Step 2: Install the daily library required by the Compilation Program

 

Sudo-s

LANG = C

Yum-y install gcc-c ++ autoconf libjpeg-devel libpng-devel freetype-devel \

Libxml2 libxml2-devel zlib-devel glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses \

Ncurses-devel curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn-devel openssl \

Openssl-devel openldap-devel nss_ldap openldap-clients openldap-servers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.