EPELリポジトリとは
EPEL(Enterprise Linux用の追加パッケージ)は、RHEL/CentOSにまだ存在していないソフトウェアパッケージのリポジトリを維持するFedoraグループのプロジェクトです。
リポジトリはRHELと互換性があり、CentOSやScientificLinuxなどのすべての密接な派生物です。
epelを使用することで、yumコマンドを使用して、centosリポジトリにまだ存在しない多くのパッケージ(約10,000)を簡単にインストールできます。
EPELパッケージは通常、対応するFedoraに基づいており、ベースのEnterpriseLinuxディストリビューションのパッケージと競合したり置き換えたりすることはありません。
epelプロジェクトの詳細については、
https://fedoraproject.org/wiki/EPEL
したがって、このチュートリアルでは、CentOSでepelリポジトリをセットアップする方法を紹介します
Note - There are many different 3rd party repositories that provide software packages for RHEL/CentOS systems. Some of the most popular ones are RpmForge, RpmFusion, EPEL, Remi etc. However it should be always kept in mind, that if multiple such third party repositories are added to a system, then it can lead of conflicts. The same package can come from multiple repositories, and some repositories can replace base packages of a system leading to unexpected troubles. Rpmforge and Epel are known to have conflicts. There are advanced techniques to tackle this like setting up priorities, or selectively installing packages from repositories, but ofcourse these require a lot of effort and so if you are not sure about all this, it is recommended to only use 1 such external repository.
CentOSにEPELをインストールする
CentOSでepelをセットアップするには、epelインストールrpmをダウンロードしてインストールする必要があります。
CentOS/RHELのバージョン6.xおよび5.xのダウンロードページは次のとおりです
http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html
http://download.fedoraproject.org/pub/epel/5/i386/repoview/epel -release.html
上記のURLは、ダウンロードを高速化するために、おそらく国固有のミラーにリダイレクトされます。このページには、rpmを直接ダウンロードするためのダウンロードリンクが含まれます。直接ダウンロードリンクは
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
http://download.fedoraproject.org/pub/epel/5/i386 /epel-release-5-4.noarch.rpm
CentOSのバージョンに応じて正しいURLを選択してください。
EPELインストーラーパッケージはアーキテクチャに依存しないため、x86システムとx64システムの両方にインストールできます。
1。 CentOSのバージョンを確認してください
まず、次のコマンドを使用してCentOSのバージョンを確認します
$ cat /etc/redhat-release CentOS release 6.4 (Final)
2。 EPELrpmをダウンロード
次に、上記のURLのいずれかから対応するcentosバージョンのepelrpmファイルをダウンロードします。
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
3。 EPELrpmをインストールします
次に、rpmコマンドを使用してepelパッケージをインストールします
$ sudo rpm -ivh epel-release-6-8.noarch.rpm or $ sudo rpm -ivh epel-release*
5。 EPELリポジトリを確認する
epelリポジトリをインストールした後、yumコマンドでリポジトリリストに追加されていることを確認してください
# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.vonline.vn * epel: buaya.klas.or.id * extras: centos-hn.viettelidc.com.vn * updates: mirrors.fibo.vn repo id repo name status base CentOS-6 - Base 6,381 epel Extra Packages for Enterprise Linux 6 - x86_64 10,023 extras CentOS-6 - Extras 13 nginx nginx repo 47 updates CentOS-6 - Updates 1,555 repolist: 18,019
epelはベースリポジトリの後にリストされ、約10Kのパッケージを提供します。これで、epelがCentOSでセットアップされました。
epelリポジトリは/etc/yum.repos.d/epel.repoでセットアップされます。 ファイル。
次に、epelリポジトリから何かをインストールします
$ sudo yum install htop