Linux 4 All

Best Linux tricks source

Sometimes you may find the situation where duplicate packages exists on a server.

[root@tstsrv ~]# rpm -qa | grep php53u-5
php53u-5.3.17-2.ius.el6.x86_64

Few minutes later we got the 2 php packages

[root@tstsrv ~]# rpm -qa | grep php53u-5 php53u-5.3.17-2.ius.el6.i686 php53u-5.3.17-2.ius.el6.x86_64

and it looks like they are sharing some packages
[root@tstsrv ~]# rpm -ql php53u-5.3.17-2.ius.el6.x86_64
/etc/httpd/conf.d/php.conf
/usr/lib64/httpd/modules/libphp5.so
/var/lib/php/session
/var/www/icons/php.gif
[root@tstsrv ~]# rpm -ql php53u-5.3.17-2.ius.el6.i686
/etc/httpd/conf.d/php.conf
/usr/lib/httpd/modules/libphp5.so
/var/lib/php/session
/var/www/icons/php.gif
I went ahead and removed one the wrong package:
[root@tstsrv ~]# yum remove php53u-5.3.17-2.ius.el6.i686

Checking the good package and everything is fine.

[root@tstsrv ~]# rpm -ql php53u-5.3.17-2.ius.el6.x86_64
/etc/httpd/conf.d/php.conf
/usr/lib64/httpd/modules/libphp5.so
/var/lib/php/session
/var/www/icons/php.gif

How to delete a file starting with a dash arrow-right
Next post

arrow-left Reset MySQL password
Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *