Posts Tagged yum

Auto update CentOS server with yum

Posted on January 31, 2010 with No Comments

Create file yum_update.sh

vi /etc/cron.daily/yum_update.sh

With following content

#!/bin/bash
 
/usr/bin/yum -y -R 120 -d 0 -e 0 update yum
/usr/bin/yum -y -R 10 -e 0 -d 0 update

-e 0 -d 0 are to only show critical errors.
-R adds random delay between command execution.

Make it executable

chmod 755 /etc/cron.daily/yum_update.sh

fipscheck conflicts with fipscheck-lib-1.2.0-1.el5.x86_64

Posted on January 30, 2010 with No Comments

When i run yum update i get error

[root@server12 ~]# yum update
.....
..... some text removed
.....
ERROR with rpm_check_debug vs depsolve:
fipscheck conflicts with fipscheck-lib-1.2.0-1.el5.x86_64
Complete!
(1, ['Please report this error in bugzilla'])
[root@server12 ~]#

This is caused by both 32 and 64 bit version installed.

[root@server12 ~]# rpm -qa fipscheck
fipscheck-1.0.3-1.el5
fipscheck-1.0.3-1.el5
[root@server12 ~]#

I got the error fixed by

yum remove fipscheck

This will also remove package “nss_ldap”.

Tags: , , ,

Category: Linux

Installing Java on CentOs

Posted on October 1, 2009 with No Comments

Java is available in CentOS 5.

root@server70 [~]# yum list|grep openjdk
java-1.6.0-openjdk.x86_64                  1:1.6.0.0-1.2.b09.el5       installed
java-1.6.0-openjdk-demo.x86_64             1:1.6.0.0-1.2.b09.el5       updates
java-1.6.0-openjdk-devel.x86_64            1:1.6.0.0-1.2.b09.el5       updates
java-1.6.0-openjdk-javadoc.x86_64          1:1.6.0.0-1.2.b09.el5       updates
java-1.6.0-openjdk-src.x86_64              1:1.6.0.0-1.2.b09.el5       updates
root@server70 [~]#

To install java, run

yum install java-1.6.0-openjdk

Java will be installed on

/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java
root@server70 [/var/log]# rpm -q --filesbypkg java-1.6.0-openjdk  | grep "/bin/java"
java-1.6.0-openjdk        /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
root@server70 [/var/log]# which java
/usr/bin/java
root@server70 [/var/log]# cd /usr/bin
root@server70 [/usr/bin]# ls -la |grep java
lrwxrwxrwx  1 root root          22 Aug 25 02:56 java -> /etc/alternatives/java*
root@server70 [/usr/bin]# ls -la /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Aug 25 02:56 /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java*
root@server70 [/usr/bin]#

Tags: , , ,

Category: Linux

Error: Missing Dependency: perl(Crypt::PasswdMD5) is needed by package syslinux

Posted on June 16, 2009 with No Comments

When i run

yum update

I got following error

root@server70 [~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: fr2.rpmfind.net
 * base: mirrors.service.softlayer.com
 * updates: mirrors.service.softlayer.com
 * addons: mirrors.service.softlayer.com
 * extras: mirrors.service.softlayer.com
rpmforge                                                                                               | 1.1 kB     00:00
base                                                                                                   | 1.1 kB     00:00
updates                                                                                                |  951 B     00:00
addons                                                                                                 |  951 B     00:00
extras                                                                                                 | 1.1 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package syslinux.x86_64 0:3.82-1.el5.rf set to be updated
--> Processing Dependency: perl(Crypt::PasswdMD5) for package: syslinux
--> Finished Dependency Resolution
syslinux-3.82-1.el5.rf.x86_64 from rpmforge has depsolving problems
  --> Missing Dependency: perl(Crypt::PasswdMD5) is needed by package syslinux-3.82-1.el5.rf.x86_64 (rpmforge)
Error: Missing Dependency: perl(Crypt::PasswdMD5) is needed by package syslinux-3.82-1.el5.rf.x86_64 (rpmforge)
root@server70 [~]#

syslinux is not useful on servers, so this can be fixed by editing /etc/yum.conf

vi /etc/yum.conf

In the line exclude =, at the end add syslinux*

In this cause, installation is from “rpmforge” repo, it is not used, so i removed rpmforge repository

root@server70 [~]# cd /etc/yum.repos.d
root@server70 [/etc/yum.repos.d]# ls -l
total 60
drwxr-xr-x  2 root root  4096 Jan 22 04:53 ./
drwxr-xr-x 98 root root 12288 Jun 16 10:36 ../
-rw-r--r--  1 root root  1946 Dec  3  2007 CentOS-Base.repo
-rw-r--r--  1 root root  2049 Nov 22  2007 CentOS-Base.repo.original
-rw-r--r--  1 root root  2323 Mar 16 20:27 CentOS-Base.repo.rpmnew
-rw-r--r--  1 root root   626 Mar 16 20:27 CentOS-Media.repo
-rw-r--r--  1 root root   954 Apr 25  2008 epel.repo_old
-rw-r--r--  1 root root  1054 Apr 25  2008 epel-testing.repo_old
-rw-r--r--  1 root root   684 Mar  8  2007 mirrors-rpmforge
-rw-r--r--  1 root root   428 Mar  8  2007 rpmforge.repo
root@server70 [/etc/yum.repos.d]# mv rpmforge.repo rpmforge.repo_old
root@server70 [/etc/yum.repos.d]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.service.softlayer.com
 * updates: mirrors.service.softlayer.com
 * addons: mirrors.service.softlayer.com
 * extras: mirrors.service.softlayer.com
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Packages marked for Update
root@server70 [/etc/yum.repos.d]#

Tags:

Category: Linux