Adding New Software Repositories

ClearOS uses the YUM tool to manage the installation or removal of software from its maintained repository on the internet.

The repositories available to the server can be seen by using WinSCP to view the /etc/yum.repos.d/ directory.

You can view the rpm software packages available to ClearOS here: http://download1.clearfoundation.com/clearos/

 

Enabling existing repositories

Some repositories aren't enabled by default, to install from these repositories the YUM command used in PuTTY is:

yum --enablerepo=<repo name> install <package name>

 

Adding new repositories

Repositories for 3rd party software can be added, this will allow YUM to manage the installation of the software. Log into PuTTY and enter the following to install:

Logitech Slimdevices

rpm -Uvh http://repos.slimdevices.com/yum/squeezecenter/squeezecenter-repo-1-6.noarch.rpm

RPMforge

rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

If your not going to install Yum-Priorities (see below), edit the file /etc/yum.repos.d/rpmforge.repo with PuTTY so the enabled line reads "enabled = 0".

 

Installing Yum-Priorities

Sometimes it is desirable to add additional repositories for third party software, but this can lead to problems, when a package is available from multiple sources it is always desirable the package hosted by ClearOS takes precedence over the third-party package.

To ensure this happens you can install the Yum-Priorities plug-in from CentOS, more information can be found here.

log into PuTTY and enter the following to install Yum-Priorities:

rpm -Uvh http://mirror.centos.org/centos/5.3/os/i386/centos/yum-priorities-1.1.16-13.el5.centos.noarch.rpm

Then edit all the repo files in /etc/yum.repos.d/ with WinSCP to add a line specifying the priority of the repository (1 being the highest). See here, here, here and here for examples.