Posts Tagged ‘yum’

Yum – Install a specific version that’s not in the repos

Long story short, I needed PHP 5.2.17. The CentOS repos still had 5.1.x and all third partys seemed to be way up at 5.3.x.

In the end I located a web repository that contained the PHP RPM I needed (php-5.2.17-1.el5.i386.rpm) but when I did;

yum local install php-5.2.17-1.el5.i386.rpm

It told me that I needed some other dependencies:

Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-soap-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-mbstring-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-xml-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-gd-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-mysql-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-ldap-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-imap-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-xmlrpc-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-mcrypt-5.2.16-jason.1.i386 (installed)
Error: Missing Dependency: php-common = 5.2.16-jason.1 is needed by package php-pdo-5.2.16-jason.1.i386 (installed)

Read more

Yum "rpmdb: PANIC: fatal region error detected"

Is your favourite update tool Yum doing the below?

------------------------------------------------------
[root@server ~]# yum check-update
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30978)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 80, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 170, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root)
File "__init__.py", line 82, in doConfigSetup
File "config.py", line 273, in __init__
File "config.py", line 385, in _getsysver
TypeError: rpmdb open failed
------------------------------------------------------

Read the rest of this post to learn how to quickly fix it.
Read more

Return top