yum

Installing Ruby On Rails 3 on CentOS with Nginx

This tutorial assumes that you are working with the local account on CentOS 5.x and sudo into root as necessary.

Configuring Yum

Yum is a popular package manager for CentOS and RedHat Linux distributions. Unfortunately, standard Yum repositories carry significantly outdated packages. Fortunately, there are third-party Yum repositories with more updated LAMP packages which we can use. One such repository is provided and hosted by RackSpace itself.

Installing MongoDB On CentOS or Fedora with Yum

The best way to install MongoDB on yum-enabled Linux distributions (CentOS or Fedora) is through yum package manager. MongoDB.org provides repositories (depending on your OS and CPU architecture) that you should add to your list of yum repos:
http://www.mongodb.org/display/DOCS/CentOS+and+Fedora+Packages

Once you have the repository properly installed under /etc/yum.repos.d you can install the latest stable mongoDB release with:

sudo yum install mongo-stable-server

which will actually install both the server and the client (since client is set as a dependency).

Once installed MongoDB can be started with:

sudo /etc/init.d/mongod start

Further, if you need to Mongo-enable your PHP just run:

sudo pecl install mongo

and follow instructions.

Reliable Yum Repo for Easy Upgrades to the Latest Packages, on RedHat and CentOS

Yum is a great update manager for RedHat/CentOS Linux. Unfortunately, default repos are typically way behind the stable releases of the packages contained in them. If you need to install PHP, MySQL, Python or other major package, you will find that the versions in default repos are old to the extent of being useless. This used to force Yum users to resort to third-party repositories and many open-source volunteers have hosted latest versions of packages as yum repositories, helping and assisting the community.

While most efforts were noble and honest contributions, it's always tricky to install packages from unknown sources. The dark fear of "what if" will nag you and your security team (if you have one) will point you to the door. Now there's a good solution, however. One of the most trusted names in the industry, Rackspace hosting now has a Yum repo for popular RedHat packages.

The wiki documentation for how to install and use it can be found at: http://wiki.iuscommunity.org/Doc/ClientUsageGuide

Upgrading Subversion to 1.5 on CentOS 5.2 Using Yum

Default CentOS 5.2 yum repositories are still on Sybversion 1.4.x branch, so if you need the latest Subversion client, you are out of luck... or not, if you read this blog post :) This quick tutorial will show you how to upgrade in less than 5 minutes.

We will use RPMForge repos for the upgrade.

  • Download and install proper RPMForge repo RPM for your server architecture (64bit or 32bit) from RPMForge website.
  • Edit /etc/yum.repos.d/rpmforge.repo and change enabled=1 to "0". We do not want this repo to be enabled by default, because an accidental "svn update" will update all your packages to bleeding-edge, test-quality versions. RPMForge has many experimental rpms.
  • Run: yum --enablerepo=rpmforge check-update subversion and make sure the version of subversion you are looking for is available. It should show you something like:

Install PHP 5.2 on CentOS 5.2 Using Yum

Yum is a standard installation utility for CentOS 5.2. One of the reasons I favor CentOS over other Linux distros is actually because it comes with yum. It is that good!

Unfortunately, CentOS 5.2 does not generally include the latest versions of libraries, because it follows conservative path of the RedHat Enterprise. Which is not that bad of an idea, for a server OS... until you need that latest version of something and you are stuck... or: not necessarily.

If you a are a Drupal developer, there's a very good reason why you need the latest version of PHP: 5.2. The reason is called FileField module. This module is required by another absolutely essential module ImageField making it a matter of life-or-death (just kidding) to have PHP 5.2 on your server. But the latest CentOS release (ironically also 5.2) only comes with PHP 5.1.6.

What to do?

Syndicate content