SOLUTIONS for - Package(s) php available, but not installed/ can't remove php
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Solution to this problem
-------------------------
the easiest way to do this, is to use yum remove then php version extension....you can either copy each from above as shown below
# yum remove php55w-pdo-5.5.24-1.w6.x86_64
Repeat this until all the version package are removed (remember to use rpm -qa|grep php to check which packages are still remained)
In general the naming of packages in RedHat style OSes (RHEL, CentOS, Fedora, Scientific etc...) everything from the first dash that is followed by a numeral is part of the versioning and/or architecture. So the packages you had were all based on php55w and you had multiple packages in that family. You could do the remove by specifying everything up to that point as just:
php55w-cli
php55w-devel
php55w-common
php55w-mbstring
php55w-gd
php55w-mcrypt
php55w-mysql
php55w-pdo
php55w-ldap
As those are the package names. The 5.5.24 is the base upstream package version number and the 1.w6 is the extended versioning for RHEL/CentOS showing the modified version of that base upstream. RHEL/CentOS backports security and some enhancements into the original base upstream which is why there is extended versioning.
You typically don't have to remove packages and reinstall you can do "yum update php55w-cli" to get the newer extended version from the repository but it will have the same base upstream version. The only reason to remove would be if you wanted to upgrade to a newer upstream version that isn't in the repository.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.