CentOS 7 Add Yum Source

Source: Internet
Author: User
Tags eol gpg yum repolist metalink



Redhat under the main two distribution, one of the first RHEL (Red Hat Enterprise Linux) Fedora. The former is mainly for server use, the advantage is stable, the disadvantage is the old tooth, the latter is for the desktop use, the advantages are particularly new, Repo speed can be almost comparable with archlinux, the drawback is the release of two years of EOL (End-of-life_ (product)) on to, I have seen a server never shut down, nor update kernel, has been mend for several years, with Fedora is almost dead.



But if not deep-pocketed (such as some thousands of dawn various rhel of XX Center, let people admire the drool), many servers choose CentOS as the Server OS, because the GPL based on license is provided binary file and source code, Some communities have compiled source code into binary file, named CentOS, the so-called community operating system. It is a recognition-at least an understanding-attitude to this rhel. Therefore, CentOS can basically be considered as a free version of Rhel, It is rumored that performance is still a bit different and does not provide official technical support. If used on the server, it's 10 years of EOL is enough to save the server a lot of maintenance.



In July this year, CentOS released CentOS 7, which corresponds to Red Hat's release of the Rhel 7,life cycle in June from this year to 2024. More importantly, the comrade is finally willing to rise from the 2.6.x kernel to 3.x, to know that, until now, Kernel has already upgraded to 3.15.8, it's a few years behind, ah, the corresponding GCC also upgraded from 4.4.7 to 4.8.x, finally can be compiled on the server with--std=c++11 parameter code without having to compile a compiler first tear eyes.



In short, it's nice to have a new CentOS 7, and then get used to the source of RPM fusion, and then the tragic discovery is not yet available ... Well, not only the base warehouse CentOS 7 that much inconvenient ah embarrassed, can only find some other sources to deal with the next.



Look for the next, here and here I found some relevant content, according to do, I need a few things can be found.


RHEL Official extension source


First we can use the official source of the next Rhel. The command is simple.



# yum Localinstall http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm-y


If you find it reported a 404 or something, go to http://dl.fedoraproject.org/pub/epel/7/x86_64/e/look for the RPM package Epel-release start, maybe there is an update, In short, after a epel-release*.rpm, look at the/etc/yum.repos.d/folder more than two files are as follows:



1 root root 957:  epel.repo11056  + : £ Epel-testing.repo


If you don't have a special need, you should just have epel.repo.



Epel.repo


 
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch failovermethod=priority
enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7  [epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch failovermethod=priority
enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 [epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch failovermethod=priority
enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1



You can also write the above content directly into the/etc/yum.repos.d/epel.repo file.
Then: # yum Makecache so it can be used.



It's easy to try if it's successful.



 
# yum repolist
......
repo id      repo name                                       status
epel/x86_64  Extra Packages for Enterprise Linux 7 - x86_64 5,425 ......


Found a highlighted column even after.


Remi Source


Installation and Rhel almost, this source is mainly to provide some PHP-related extension library, if not to use PHP, the sense of meaning is not large.



# Yum Localinstall http://rpms.famillecollet.com/enterprise/remi-release-7.rpm


You can also see a remi.repo in the/etc/yum.repos.d/.
The editor can see the contents as follows:


 
[remi]
name=Les RPM de remi pour Enterprise Linux 7 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/7/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/7/remi/mirror enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi  [remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 7 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/7/php55/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/7/php55/mirror # WARNING: If you enable this repository, you must also enable "remi"
enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi  [remi-php56]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 7 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/7/php56/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/7/php56/mirror # WARNING: If you enable this repository, you must also enable "remi"
enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi  [remi-test]
name=Les RPM de remi en test pour Enterprise Linux 7 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/7/test/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/7/test/mirror # WARNING: If you enable this repository, you must also enable "remi"
enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi  [remi-debuginfo]
name=Les RPM de remi pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/7/debug-remi/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi  [remi-php55-debuginfo]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/7/debug-php55/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi  [remi-php56-debuginfo]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/7/debug-php56/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi  [remi-test-debuginfo]
name=Les RPM de remi en test pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/7/debug-test/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


The default enable is all 0, as necessary to change the Enable to 1, note that the highlighted fifth line enable must be changed to 1 Remi to use.



And then Makecache test something like Rhel no detail.


Puias Source


The Puias is an extended distribution and mirror based on RH. Either CentOS 5,6 or 7 can get some of its extended programs. Especially in the field of scientific calculation of some modules, decisive is to start. At the moment it is maintained by Princeton High Energy.
You can get a lot of instructions by going to its official website. Like this page.
We can select only the part of the calculation as follows:



Puias-computational.repo



 
[PUIAS_computational]
name=PUIAS computational Base $releasever - $basearch
mirrorlist=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch/mirrorlist #baseurl=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias


/etc/yum.repo.d/Create a file, save it.



Since we are not using RPM packages this time, we need to import the GPG KEY.



RPM--import http://Puias.princeton.edu/data/puias/7/x86_64/os/rpm-gpg-key-puias


Repoforge Source


Repoforge formerly known as Rpmforge, is a well-maintained repo site. Click here to see the download links for each version of Rhel. After getting the link



Yum Localinstall xxx.rpm-y





To complete the installation.
So far it doesn't seem to add CentOS 7, but it doesn't matter, just find a 6 link and turn 6 into 7 to get the approximate position of the RPM package. The current position I get is: http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/
After entering to find rpmforge-release-** file, get download link, install can.



Yum Localinstall http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/rpms/ Rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm-yYum Makecache


CentOS 7 Add Yum Source


Related Article

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.