Sunday, May 9, 2010

Installing Memcached Using Yum for RHEL and CentOS

There isn't an rpm-based installation found on the official site of memcached for CentOS. All you can find there is a project which contains the source code repository which you can build it from.

Now, it you're looking for a high-quality RPM source for memcache, it's your lucky day. Thanks to the volunteer-based community called EPEL (extra packages for enterprise linux) from Fedora project because they're keeping memcached rpm on either their yum or up2date repositories.

See below for the simple, easy to follow steps.

Firstly, install the yum or up2date repository configuration. 
It's even coming in as an rpm as well.
For RHEL 5 / CentOS 5 32-bit system,
# su -c 'rpm -Uvh'

Or For RHEL 4 / CentOS 4 32-bit system,
# su -c 'rpm -Uvh'

Then install memcached,
# yum install memcached

That's it. You should have been able to install memcached.

Read EPEL's main page for 64-bit systems or just replace the i386 to x86_64 on the rpm URI above. On another note, usually memcached RPM package is already available for RHEL and Fedora.

Anyway, if you run into problems you can always do the memcached installation from source procedure.
  • Related Links Widget for Blogspot

No comments: