Archive

Archive for the ‘yum’ Category

libmcrypt.so.4()(64bit) is missing

January 5, 2012 Leave a comment

Issue:

# yum install php-mcrypt

reported: libmcrypt.so.4()(64bit) is missing

Solution:

1. Install rpmforge repository

2. # yum –enablerepo=rmpforge install libmcrypt libmcrypt-devel

3. # yum –enablerepo=remi install php-mvrypt

4. # yum –enablerepo=remi install phpmyadmin

 

Categories: LAMP, yum

yum enable epel and remi repository

January 5, 2012 Leave a comment

A. Install Epel and Remi Repository

1. Download the latest Remi repository

# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

# wget http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

2.  Run the rpm install command

#   rpm -Uhv epel*.rpm
#   rpm -Uvh remi-release-6*.rpm

3. vi /etc/yum.repos.d/epel.repo, replace repository URL as http://download.fedora.redhat.com

 

B. Configure Remi Repository

1. Open the Remi repository file

    /etc/yum.repos.d/remi.repo

/etc/yum.repos.d/epel.repo

2. Enable the Epel and Remi Repository

3. Change enabled=0 to enabled=1

4. Set priority for the Remi Repository

5. Add priority=4 to the end of the [remi] section

6. Add priority=5 to the end of the [remi] section

C. Centalt Repository

  1. Download the latest centalt-release rpm
    # wget http://centos.alt.ru/repository/centos/6/x86_64/centalt-release-6-1.noarch.rpm
  2. Install centalt-release rpm:
    # rpm -Uvh centalt-release*rpm

D. rmpforge Repository

  1. Download the latest centalt-release rpm
    # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  2. Install centalt-release rpm:
    # rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  3. vi /etc/yum.repos.d/rpmforge.repo

replace apt.sw.be with rpmforge.net

Categories: yum

How to use yum group install

October 2, 2011 Leave a comment

1. check yum group packages

# yum grouplist

2. group install development tools, such c/c++ compiler

#yum groupinstall “development tools” “development libraries”

3. group install MySQL database

# yum groupinstall “MySQL database server”

 

Categories: yum

yum update excluding *386 packages

October 1, 2011 Leave a comment

Update CentOS 64 bits only, no any 386 packages.

 

1. Edit yum configuration file

# vi /etc/yum.conf

2, Append below line at the bottom:

  exclude=*.i386 *.i586 *.i686

3. Start update system

#yum update

Categories: CentOS, yum