← Back to team overview

ius-community team mailing list archive

Re: messed up yum after installing php52-common

 

Well, I did get around to it. I set up a fresh CentOS 5.3 install, ran yum upgrade, installed yum-priorities, set [base] to priority=1 and [ius] to priority=30, checked there were no php related packages installed, ran yum install php52, and success. I can't reproduce with the given information you've provided. Command transcript is below my sig.

Do you have anything in 'exclude' settings anywhere such as '*common*' or '*' anything that might be matching 'php52-common' and causing it to be excluded? Can you check 'yum search php52' and see what all is listed?

Ultimately, a quick fix is to simply wget all the files you need from the IUS repo and rpm -Uvh them... however I would like to have this issues figured out as it is an odd one.

---
BJ Dierkes
Linux Systems Engineer IV / [RH]acker
Infrastructure Services [OS & Applications]
Rackspace Hosting



[root@centos5 ~]# cat /etc/redhat-release
CentOS release 5.3 (Final)

# --- Yum configs ---

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch= $basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

[ius]
name=IUS Community Packages for Enterprise Linux 5 - $basearch
#baseurl=http://dl.iuscommunity.org/repos/stable/Redhat/5/$basearch
mirrorlist=http://dl.iuscommunity.org/mirrorlist?repo=ius-el5&arch= $basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
priority=30

# -----------------------


[root@centos5 ~]# rpm -qa | grep php
[root@centos5 ~]#

[root@centos5 ~]# rpm -Uvh *release*.rpm
warning: epel-release-1-1.ius.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 9cd4953f Preparing... ########################################### [100%] 1:epel-release ########################################### [ 50%] 2:ius-release ########################################### [100%]


[root@centos5 ~]# yum install php52
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * epel: ftp.linux.ncsu.edu
 * base: yum.singlehop.com
 * updates: www.cyberuse.com
 * ius: dl.iuscommunity.org
 * addons: styx.biochem.wfubmc.edu
 * extras: mirror.raystedman.net
epel | 3.4 kB 00:00 c2053c9ba040866cc2d59fe78fa0955728cc7b33- primary.sqlite.bz2 | 2.6 MB 00:00 base | 1.1 kB 00:00 updates | 951 B 00:00 ius | 1.9 kB 00:00 primary.sqlite.bz2 | 104 kB 00:00 addons | 951 B 00:00 extras | 1.1 kB 00:00
707 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php52.x86_64 0:5.2.11-1.1.ius.el5 set to be updated
--> Processing Dependency: httpd-mmn = 20051115 for package: php52
--> Processing Dependency: php52-cli = 5.2.11-1.1.ius.el5 for package: php52 --> Processing Dependency: php52-common = 5.2.11-1.1.ius.el5 for package: php52
--> Processing Dependency: libxslt >= 1.1.11 for package: php52
--> Processing Dependency: libtool-ltdl for package: php52
--> Processing Dependency: libaspell.so.15()(64bit) for package: php52
--> Processing Dependency: libpspell.so.15()(64bit) for package: php52
--> Processing Dependency: libgmp.so.3()(64bit) for package: php52
--> Running transaction check
---> Package gmp.x86_64 0:4.1.4-10.el5 set to be updated
---> Package libxslt.x86_64 0:1.1.17-2.el5_2.2 set to be updated
---> Package aspell.x86_64 12:0.60.3-7.1 set to be updated
--> Processing Dependency: aspell-en for package: aspell
---> Package httpd.x86_64 0:2.2.3-22.el5.centos set to be updated
475478b181acb984dcb469c8ce8303e6b8b79827- filelists.sqlite.bz2 | 3.7 MB 00:01 filelists.sqlite.bz2 | 120 kB 00:00
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd
---> Package php52-common.x86_64 0:5.2.11-1.1.ius.el5 set to be updated
---> Package php52-cli.x86_64 0:5.2.11-1.1.ius.el5 set to be updated
---> Package libtool-ltdl.x86_64 0:1.5.22-6.1 set to be updated
--> Running transaction check
---> Package apr.x86_64 0:1.2.7-11 set to be updated
---> Package apr-util.x86_64 0:1.2.7-7.el5 set to be updated
--> Processing Dependency: libpq.so.4()(64bit) for package: apr-util
---> Package aspell-en.x86_64 50:6.0-2.1 set to be updated
--> Running transaction check
---> Package postgresql-libs.x86_64 0:8.1.11-1.el5_1.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

= = = = = = = = = = = = = = = = = = = = = = = = = = = = ======================================================================== Package Arch Version Repository Size = = = = = = = = = = = = = = = = = = = = = = = = = = = = ========================================================================
Installing:
php52 x86_64 5.2.11-1.1.ius.el5 ius 1.4 M
Installing for dependencies:
apr x86_64 1.2.7-11 base 118 k apr-util x86_64 1.2.7-7.el5 base 74 k aspell x86_64 12:0.60.3-7.1 base 946 k aspell-en x86_64 50:6.0-2.1 base 1.6 M gmp x86_64 4.1.4-10.el5 base 201 k httpd x86_64 2.2.3-22.el5.centos base 1.2 M libtool-ltdl x86_64 1.5.22-6.1 base 37 k libxslt x86_64 1.1.17-2.el5_2.2 base 488 k php52-cli x86_64 5.2.11-1.1.ius.el5 ius 2.6 M php52-common x86_64 5.2.11-1.1.ius.el5 ius 246 k postgresql-libs x86_64 8.1.11-1.el5_1.1 base 195 k

Transaction Summary
= = = = = = = = = = = = = = = = = = = = = = = = = = = = ========================================================================
Install     12 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 9.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/12): libtool- ltdl-1.5.22-6.1.x86_64.rpm | 37 kB 00:00 (2/12): apr- util-1.2.7-7.el5.x86_64.rpm | 74 kB 00:00 (3/12): apr-1.2.7-11.x86_64.rpm | 118 kB 00:00 (4/12): postgresql- libs-8.1.11-1.el5_1.1.x86_64.rpm | 195 kB 00:00 (5/12): gmp-4.1.4-10.el5.x86_64.rpm | 201 kB 00:00 (6/12): php52- common-5.2.11-1.1.ius.el5.x86_64.rpm | 246 kB 00:00 (7/12): libxslt-1.1.17-2.el5_2.2.x86_64.rpm | 488 kB 00:00 (8/12): aspell-0.60.3-7.1.x86_64.rpm | 946 kB 00:00 (9/12): httpd-2.2.3-22.el5.centos.x86_64.rpm | 1.2 MB 00:00 (10/12): php52-5.2.11-1.1.ius.el5.x86_64.rpm | 1.4 MB 00:00 (11/12): aspell- en-6.0-2.1.x86_64.rpm | 1.6 MB 00:00 (12/12): php52- cli-5.2.11-1.1.ius.el5.x86_64.rpm | 2.6 MB 00:00
----------------------------------------------------------------------------------------------------
Total 2.2 MB/s | 9.0 MB 00:04 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 9cd4953f Importing GPG key 0x9CD4953F "IUS Community Project <coredev@xxxxxxxxxxxxxxxx >" from /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : apr [ 1/12] Installing : gmp [ 2/12] Installing : libtool-ltdl [ 3/12] Installing : postgresql-libs [ 4/12] Installing : apr-util [ 5/12] Installing : httpd [ 6/12] Installing : libxslt [ 7/12] Installing : aspell [ 8/12] Installing : aspell-en [ 9/12] Installing : php52-common [10/12] Installing : php52 [11/12] Installing : php52-cli [12/12]

Installed: php52.x86_64 0:5.2.11-1.1.ius.el5
Dependency Installed: apr.x86_64 0:1.2.7-11 apr-util.x86_64 0:1.2.7-7.el5 aspell.x86_64 12:0.60.3-7.1 aspell-en.x86_64 50:6.0-2.1 gmp.x86_64 0:4.1.4-10.el5 httpd.x86_64 0:2.2.3-22.el5.centos libtool- ltdl.x86_64 0:1.5.22-6.1 libxslt.x86_64 0:1.1.17-2.el5_2.2 php52- cli.x86_64 0:5.2.11-1.1.ius.el5 php52-common.x86_64 0:5.2.11-1.1.ius.el5 postgresql-libs.x86_64 0:8.1.11-1.el5_1.1
Complete!

[root@centos5 ~]# rpm -qa | grep php
php52-common-5.2.11-1.1.ius.el5
php52-5.2.11-1.1.ius.el5
php52-cli-5.2.11-1.1.ius.el5

[root@centos5 ~]# php -v
PHP 5.2.11 (cli) (built: Oct  1 2009 14:43:40)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

On Oct 9, 2009, at 9:47 PM, BJ Dierkes wrote:

Dan,

I apologize for not being able to test/reproduce this today.  I'll get
a vm setup and try to duplicate the issues you're seeing but won't be
able to until maybe tomorrow.

That said, can I take a step back and ask what the security issue is
that you're attempting to resolve with PHP 5.2.11?  Per our FAQ:

http://iuscommunity.org/faq/#Is%20IUS%20Right%20For%20Me?

[quote]
Is IUS Right For Me?

Ask yourself these questions:

... snip ...

Am I upgrading software because I failed a PCI Security Scan?

Before jumping the gun and upgrading your packages because some
'Security Professional' or software told you too, don't. Atleast not
without further consideration. Red Hat uses a packaging model called
'back porting' where the security fixes are back-ported to older
versions of software. Therefore, the PCI scan may fail but in fact the
software is patched for the known vulnerability.

Always check the errata for the package in question, ensure you are
updated to the latest, and verify if or if not that security
vulnerability has been patched. You can read more about how Red Hat
back-ports security fixes here:

	• http://www.redhat.com/security/updates/backporting/?sc_cid=3093

[/quote]


Just wanted to make sure you were aware of backporting of stock RHEL/
CentOS packages.  That said, CentOS is delayed behind RHEL (usually
within a month) and therefore will not receive backported fixes as
promptly.

---
BJ Dierkes
Linux Systems Engineer IV / [RH]acker
Infrastructure Services [OS & Applications]
Rackspace Hosting

On Oct 9, 2009, at 7:41 PM, Dan Carl wrote:


----- Original Message -----
From: "BJ Dierkes" <wdierkes@xxxxxxxxxxxxx>
To: "Dan Carl" <danc@xxxxxxxxxxxxxxxxx>
Cc: <ius-community@xxxxxxxxxxxxxxxxxxx>
Sent: Friday, October 09, 2009 6:50 PM
Subject: Re: messed up yum after installing php52-common


Dan:

Can you give me the output of the following commands:

cat /etc/redhat-release

CentOS release 5.3 (Final)

rpm -q yum-priorities

yum-priorities-1.1.16-13.el5.centos


For some reason, I'm leaning towards thinking this is an issue
with  the
Yum priorities plugin.  Similar issues found here:

http://bugs.centos.org/view.php?id=2428

I'll take a look
What are your priority settings for IUS and the other repos?

[ius]
name=IUS Community Packages for Enterprise Linux 5 - $basearch
#baseurl=http://dl.iuscommunity.org/repos/stable/Redhat/5/$basearch
mirrorlist=http://dl.iuscommunity.org/mirrorlist?repo=ius-el5&arch=
$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
priority=30


Thanks for the help
Dan

---
BJ Dierkes
Linux Systems Engineer IV / [RH]acker
Infrastructure Services [OS & Applications]
Rackspace Hosting


On Oct 9, 2009, at 6:29 PM, Dan Carl wrote:

BJ Dierkes wrote:
Not sure which example/site you are following, however the exact
steps
are here:

http://wiki.iuscommunity.org/IUSDocumentation_ClientUsageGuide#Upgrading_Stock_PHP_5.1_to_IUS_PHP_5.2_on_RHEL.2BAC8-CentOS_5



Did you install the ius-release RPM which sets up Yum properly?
Can
you give me the exact commands and output you are getting from yum?

---
<snip>
Okay I was finally able to remove php52.
Now I have one PHP on my server.
[root@playground ~]# rpm -qa | grep php*
gphoto2-2.2.0-3.el5
libtheora-1.0alpha7-1
cdparanoia-libs-alpha9.8-27.2
xorg-x11-drv-elographics-1.1.0-1.1

If I follow the install process in the wiki I get this error:
install php52-mbstring php52-odbc php52-imap php52-pdo php52- common
php52-gd php52-ldap php52-cli php52-mysql php52 php52-xml

Loading mirror speeds from cached hostfile
* epel: ftp.osuosl.org
* base: mirrors.tummy.com
* updates: mirrors.serveraxis.net
* ius: dl.iuscommunity.org
* addons: centos.mirrors.tds.net
* extras: mirror.sanctuaryhost.com
93 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
No package php52-common available.

If issue:
# yum install php52
[root@playground ~]# yum install php52
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: ftp.osuosl.org
* base: mirrors.tummy.com
* updates: mirrors.serveraxis.net
* ius: dl.iuscommunity.org
* addons: centos.mirrors.tds.net
* extras: mirror.sanctuaryhost.com
93 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php52.i386 0:5.2.11-1.1.ius.el5 set to be updated
--> Processing Dependency: php52-cli = 5.2.11-1.1.ius.el5 for
package:
php52
--> Processing Dependency: php52-common = 5.2.11-1.1.ius.el5 for
package: php52
--> Running transaction check
---> Package php52-cli.i386 0:5.2.11-1.1.ius.el5 set to be updated
--> Processing Dependency: php52-common = 5.2.11-1.1.ius.el5 for
package: php52-cli
---> Package php52.i386 0:5.2.11-1.1.ius.el5 set to be updated
--> Processing Dependency: php52-common = 5.2.11-1.1.ius.el5 for
package: php52
--> Finished Dependency Resolution
php52-5.2.11-1.1.ius.el5.i386 from ius has depsolving problems
--> Missing Dependency: php52-common = 5.2.11-1.1.ius.el5 is
needed  by
package php52-5.2.11-1.1.ius.el5.i386 (ius)
php52-cli-5.2.11-1.1.ius.el5.i386 from ius has depsolving problems
--> Missing Dependency: php52-common = 5.2.11-1.1.ius.el5 is
needed  by
package php52-cli-5.2.11-1.1.ius.el5.i386 (ius)
Error: Missing Dependency: php52-common = 5.2.11-1.1.ius.el5 is
needed
by package php52-cli-5.2.11-1.1.ius.el5.i386 (ius)
Error: Missing Dependency: php52-common = 5.2.11-1.1.ius.el5 is
needed
by package php52-5.2.11-1.1.ius.el5.i386 (ius)

I'm sorry I'm no expert with yum normally I just make do with what
Centos Base offers but I need 5.2.11 for compliance reasons.
Any ideas?
Thanks
Dan






_______________________________________________
Mailing list: https://launchpad.net/~ius-community
Post to     : ius-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ius-community
More help   : https://help.launchpad.net/ListHelp




References