IUS Repository on CentOS 6 : How To Enable


In this tutorial we’ll learn how to enable IUS repository on CentOS 6. IUS stands for Inline with Upstream Stable.

The goal of IUS project is to provide high quality RPM packages for Red Hat Enterprise Linux (RHEL) and CentOS. IUS will update RPM packages once new versions released by upstream developers. IUS will also not replace stock RPM packages or pacakges that shipped with distribution.


This tutorial assume that you have fresh CentOS 6 installation. If you have existing CentOS 6 installation, especially server. Please check which third party repository already enabled to ensure no conflict when enabling IUS repository on your server.

Enable IUS Repository

Import CentOS 6 GPG Public Key using the command below.

$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Install ius-release rpm package using the command below.

$ sudo yum install https://centos6.iuscommunity.org/ius-release.rpm

yum will resolve dependencies and gives output similar to output below. Press Y to continue the installation.

Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, security
Setting up Install Process
ius-release.rpm                                                                                                                                               | 8.2 kB     00:00     
Examining /var/tmp/yum-root-QXopmV/ius-release.rpm: ius-release-1.0-15.ius.centos6.noarch
Marking /var/tmp/yum-root-QXopmV/ius-release.rpm to be installed
Determining fastest mirrors
  * base: mirror.axarva.id
  * extras: mirror.axarva.id
  * updates: mirror.axarva.id
Resolving Dependencies
--> Running transaction check
---> Package ius-release.noarch 0:1.0-15.ius.centos6 will be installed
--> Processing Dependency: epel-release = 6 for package: ius-release-1.0-15.ius.centos6.noarch
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

  Package                                    Arch                                 Version                                            Repository                                  Size
  ius-release                                noarch                               1.0-15.ius.centos6                                 /ius-release                               8.5 k
Installing for dependencies:
  epel-release                               noarch                               6-8                                                extras                                      14 k

Transaction Summary
Install       2 Package(s)

Total size: 23 k
Installed size: 30 k
Is this ok [y/N]: y

Yum will continue downloading rpm packages and installing the necessary packages.

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : epel-release-6-8.noarch                                                                                                                                           1/2 
  Installing : ius-release-1.0-15.ius.centos6.noarch                                                                                                                             2/2 
  Verifying  : epel-release-6-8.noarch                                                                                                                                           1/2 
  Verifying  : ius-release-1.0-15.ius.centos6.noarch                                                                                                                             2/2 

  ius-release.noarch 0:1.0-15.ius.centos6                                                                                                                                            

Dependency Installed:
  epel-release.noarch 0:6-8                                                                                                                                                          


To list all repository on CentOS 6 we can use the command below.

$ yum repolist

To list all IUS repositories you can disable the remaining repo and only enable IUS repositories. You can use command below to list ius repositories.

$ yum --disablerepo="*" --enablerepo="ius" list available


In this tutorial we learn how to enable IUS repository on CentOS 6. We also learn how to list all repo configured in our machine and also how to list all packages available on IUS repository.