Categories
CentOS 5.5 Tutorials CentOS 5.6 Tutorials CentOS 5.7 Tutorials

Remove all i386 packages from CentOS 5 x86_64

A quick solution to duplicate packet installation. This tutorial will show you how to remove all i386 packages from CentOS 5 x86_64 server

# yum remove \*.i\?86
Categories
CentOS 5.6 Tutorials CentOS 5.7 Tutorials CentOS 6.0 Tutorials

BIOS and Firmware Updates Using Dell Linux Repository

You can update your CentOS 6 system to the latest version or to a specific version of the BIOS and firmware available in the Dell Linux online repository. You can inventory your CentOS 6 system, scan the repository for matching firmware with newer version using repository management software such as yum.

Firmware-tools are used to update BIOS and firmware on your system. Using a repository management software, you can easily update your BIOS and firmware to the latest or specific versions on your system.

Setting Up/Bootstrapping the Repository

To setup/bootstrap the Dell Linux online repository on your CentOS 6 sever, run the following command at the command prompt:

# wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

The system is configured to access the Dell Linux online repository using supported repository management software. The Dell GPG keys and libsmbios (BIOS library) are also installed.

Installing Firmware Tools

# yum install dell_ft_install

Downloading Applicable Firmware

# yum install $(bootstrap_firmware)

You can also inventory your system for the list of existing versions of BIOS and firmware using the following command:

# inventory_firmware

Updating BIOS and Firmware Using CLI

Run the following command to inventory the system and scan the repository for new versions of components:

# update_firmware

This command provides information about the existing versions of components on your system and the list of component versions that are available to be installed.

To install all applicable BIOS and firmware updates on your system, run the following command:

# update_firmware --yes

Once the devices are updated, the “Execution Success” message is displayed.

Automatically Update Firmware

By default, installing a BIOS or firmware RPM does not apply the update to the hardware. The update is manually applied using the update_firmware command. However, you can automatically update the hardware during RPM installation by configuring the /etc/firmware/firmware.conf file.

To automatically install BIOS and firmware updates, ensure that rpm_mode is set to auto in the firmware.conf file as shown:

[main]

# Automatically install BIOS updates when an RPM BIOS Update file is installed
# values: 'auto', 'manual'
# default: 'manual'
rpm_mode=auto

Viewing Log Information

# cat /var/log/firmware-updates.log
Categories
CentOS 5.7 Tutorials

Installing PHP 5.3 on CentOS 5.7

The assumption for installing PHP 5.3 on CentOS 5.7 tutorial is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully.

Install Yum Priorities

For a brief overview on and how to configure Yum Priorities you can follow the instructions outlined in our Install YUM Priorities on CentOS tutorial.

# yum install yum-priorities

Installing PHP 5.3 on CentOS 5.7 x86_64

Install the EPEL x86_64 YUM Repository

# rpm -Uvh http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

Install the IUS x86_64 YUM Repository

# rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
# yum install php53u php53u-common php53u-devel
# php -v
PHP 5.3.8 (cli) (built: Aug 23 2011 06:33:32)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

Installing PHP 5.3 on CentOS 5.7 i386

Install the EPEL i386 YUM Repository

# rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Install the IUS i386 YUM Repository

# rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpm
# yum install php53u php53u-common php53u-devel
# php -v
PHP 5.3.8 (cli) (built: Aug 23 2011 06:33:32)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
Categories
CentOS 5.7 Tutorials

Upgrading CentOS 5.6 to CentOS 5.7

Before upgrading CentOS 5.6 to 5.7 it cannot be stressed enough how important it is to make a backup of your system before you do this. Actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell.

Clean All Packages

# yum clean all

The following command will get a list of packages that are going to be updated.

# yum list updates

Upgrade CentOS 5.6 to 5.7

# yum update

Finally reboot the server for Kernel changes to take effect

# reboot

Verify that CentOS 5.7 is working:

# cat /etc/redhat-release
CentOS release 5.7 (Final)

Or:

# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 5.7 (Final)
Release:        5.7
Codename:       Final

Or:

# rpm -q centos-release
centos-release-5-7.el5.centos