How To Install Awstats In Centos/RedHat/Fedora


By default Centos 4 doesn’t have awstats.

Running yum install awstats, unable to detect awstats installation as it’s not default base and updates repositories from Centos.
In order to overcome this issue, I installed another repositories which is RPMForge.

Installing RPMForge is quite easy. In this case my Centos distro is Centos 4 version.

First we have to install yum-plugin-priorities

# yum install yum-plugin-priorities

To be able to use this plugin, we must enable plugins in our /etc/yum.conf file.

Now download the rpmforge-release package, make sure to you server achitecture either i386 or x86_64.

For i386 machine :

# wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm

For x86_64 machine :

wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm

Install DAG’s GPG key

#rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

Install the package :

#rpm -i rpmforge-release-0.3.6-1.el4.rf.*.rpm 

This will add a yum repository config file and import the appropriate GPG keys. At this point, we can set the priority of the RPMForge repository.

Test with this command:

#yum check-update

It should output these two lines:

Loading “priorities” plugin
.........
80 packages excluded due to repository priority protections

If so then it looks like things are working so we may try installing the awstats by issuing this command

#yum install awstats
=========================================================
Package Arch Version RepositorySize
=========================================================
Installing:
awstats noarch 6.6-1.el4.rf rpmforge 1.1 M

Transaction Summary
=========================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.1 MIs this ok [y/N]: y

At this point, type y and press enter

Downloading Packages:
(1/1): awstats-6.6-1.el4. 100% |=========================| 1.1 MB 00:04
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: awstats 	######################### [1/1]
Installed: awstats.noarch 0:6.6-1.el4.rf
Complete!

No Comments

Leave a reply

You must be logged in to post a comment.