I fail to see how
is wrong. The yum command is how Red Hat based distributions are supposed to install software unless they directly download the packages direclty in which case they would use the rpm command or they compile the software from source. I did not include the use of sudo because I made the assumption that @
mbaluran knows how packages are installed on CentOS since the OP is working with LDAP. Usually only System Admins work with LDAP so I beleived the OP knows how administrative permissions work. Telling any user that sudo should be used whenever you install software is incorrect. If the user is logged in as Root, for example, then the use of sudo is not needed. Saying that sudo should always be used can lead to misunderstandings about what sudo is.
I also don't understand your comment about not yum not being able to install third-party software. Yum is used to install packages from repositories and if those repositories have access to third-party software then they can be installed with yum. Many companies provide repositories for third-party software on Red Hat and CentOS. Many third-party packages are available in the CentOS repositories by default, such as PHP packages. They are not created by the CentOS team but are maintened by them.
Why should the OP use the blank regex to install software (the wildcard)? Using regexs incorrectly can cause system damage if you are not careful and they should only be used in certain situations. An example would be:
as described in the yum manpage:
http://linux.die.net/man/8/yum
Running
results in:
View attachment 2319
However, if you make the simple mistake of running this:
yum will fail due to package conflicts.
View attachment 2320
However, if you are trying to repair the package, then you should upgrade the rest of the system then uninstall/reinstall the php package. Being very specific with the package name. Regexs(wildcards) should be used sparsely.Also note the lack of sudo usage since I was logged in as Root.
Finally, you say to open gedit with admin privaleges but not what files to open. You also make an assumption that the OP is even using a graphical environment and has gedit installed. I said 'edit' instead of an exact command because I do not know what editor the OP likes to use or what environment he is using. The OP may prefer nano over gedit, or vim or emacs. I made the assumption that the OP knows how to edit files and that the OP knows admin privaleges will be needed.
I do apologize to @mbaluran for not following up with the problems. This post fell under my radar. I cannot be on the forums all the time. It seems that the system is in need of repair or packages have not been installed correctly.