パッケージはソフトウェアの一連のファイルをまとめたもので、 リポジトリはパッケージを集めて保管している場所。 インターネット上にいろいろなリポジトリが存在する。 epelとかremiとかrpmforgeとか。
yum は内部で rpm を呼び出して使っています。そして rpm より高度な機能を提供しています。
初心者の頃に知っておきたかった rpm と yum の違いと使い分け - 彼女からは、おいちゃんと呼ばれています
CentOS - Remiリポジトリを使って最新版のphp等をyumでインストールする - Qiita
CentOS6でRPMforge、Remi、EPELをyumレポジトリに追加する方法 - DQNEO起業日記
# yum --enablerepo=remi info php Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.kddilabs.jp * extras: www.ftp.ne.jp * remi: remi.kazukioishi.net * updates: www.ftp.ne.jp Available Packages Name : php Arch : x86_64 Version : 5.4.28 Release : 1.el6.remi Size : 2.7 M Repo : remi Summary : PHP scripting language for creating dynamic web sites URL : http://www.php.net/ License : PHP and Zend and BSD Description : PHP is an HTML-embedded scripting language. PHP attempts to make it : easy for developers to write dynamically generated web pages. PHP also : offers built-in database integration for several commercial and : non-commercial database management systems, so writing a : database-enabled webpage with PHP is fairly simple. The most common : use of PHP coding is probably as a replacement for CGI scripts. : : The php package contains the module (often referred to as mod_php) : which adds support for the PHP language to Apache HTTP Server.
# yum --enablerepo=epel info php Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.kddilabs.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp Available Packages Name : php Arch : x86_64 Version : 5.3.3 Release : 27.el6_5 Size : 1.1 M Repo : updates Summary : PHP scripting language for creating dynamic web sites URL : http://www.php.net/ License : PHP Description : PHP is an HTML-embedded scripting language. PHP attempts to make it : easy for developers to write dynamically generated webpages. PHP also : offers built-in database integration for several commercial and : non-commercial database management systems, so writing a : database-enabled webpage with PHP is fairly simple. The most common : use of PHP coding is probably as a replacement for CGI scripts. : : The php package contains the module which adds support for the PHP : language to Apache HTTP Server.
パッケージをインストールするときは、リポジトリに気をかけないといけないのであった(自戒)