Installing APCUPSD on ClearOS 6.3

First we're going to need to install net-snmp:

# yum install net-snmp

The latest version of apcupsd also requires libgd.so.2 which is brought in with the gd package:

# yum install gd

Now we're going to pull the matching architecture and RHEL version of apcupsd from http://pkgs.repoforge.org/apcupsd/:

# rpm -iv http://pkgs.repoforge.org/apcupsd/apcupsd-3.14.10-1.el6.rf.x86_64.rpm
Retrieving http://pkgs.repoforge.org/apcupsd/apcupsd-3.14.10-1.el6.rf.x86_64.rpm
warning: /var/tmp/rpm-tmp.YEqjxf: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing packages for installation...

Please see my earlier article Configuring APCUPSD on Gentoo for APC SmartUPS Over Serial for configuration details.

To enable apcupsd on bootup:

# chkconfig --level 2345 apcupsd on


• Paul Jacques

The repositories in Clearos 6.4 are not installed by default for the net-snmp and gd.

Rather than go through dependency Hell I found it easier to add the Clearos Core repositories via the clearos gui in the repository list. Remember to press the detailed view then the toggle button to add the repository.

Yum update

Yum clean all

Then you can start from the top

• Drew Vonada-Smith

This is exactly what I was looking for... But, when I try to install net-snmp, I am told "no package available". Am I missing a repo, and how would I add it?


It's possible net-snmp has been removed from newer ClearOS repos but first make sure you have registered with ClearSDN. You can install the net-snmp rpm for the corrsponding version of RHEL or CentOS.

• Eric Anderson

I had to edit /etc/apcupsd/apcupsd.conf to replace apcsmart with usb in two places and comment out device #/dev/ttyS0:

upscable usb
upstype usb

same as i did for other distributions.