LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Linux (centos) server yum repository issue (https://www.linuxquestions.org/questions/linux-server-73/linux-centos-server-yum-repository-issue-912781/)

colucix 11-10-2011 10:57 AM

Quote:

Originally Posted by fear_matrix (Post 4520748)
I have a second machine and in that server i was able to install magento and its dependecies without any issues using YUM. I have compared the default repo file in both the machine and everything is same.

Nope. Not the same: maybe in your second machine you don't have the exclude list in yum.conf. What's the deal with it? Couldn't you edit the /etc/yum.conf and comment out the exclude option? Looking at the output you posted above:
Code:

[~]# yum install php-xml
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.symnds.com
 * extras: centos.mirror.choopa.net
 * updates: mirror.ash.fastserv.com
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-xml available.
Nothing to do

Please notice the part highlighted in red: that is the only and unique reason why you cannot install the php packages from the CentOS repositories. In /etc/yum.conf you have:
Code:

[main]
exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
<omitted>

Regarding the third-party repository I agree with deep27ak: it's safe to not install so many untrusted repos, since they may bring to conflicts among different packages or different releases of the same package providing the same files. In this case it would be advisable to install the yum priorities plugin, by which you can assign a higher priority to the official repository and a lower priority to the untrusted ones. Take a look at http://wiki.centos.org/PackageManagement/Yum/Priorities for more details.

deep27ak 11-10-2011 09:51 PM

Quote:

Originally Posted by fear_matrix (Post 4520748)
Got your point. But now the big question is that the default repository is not helping out and i need to install many magento dependenies which usually deals with installing many php plugins using YUM

I have a second machine and in that server i was able to install magento and its dependecies without any issues using YUM. I have compared the default repo file in both the machine and everything is same.

can you show the repo file of that server?

and are both the machines on same network?

fear_matrix 11-11-2011 03:34 AM

Quote:

Originally Posted by colucix (Post 4520802)
Nope. Not the same: maybe in your second machine you don't have the exclude list in yum.conf. What's the deal with it? Couldn't you edit the /etc/yum.conf and comment out the exclude option? Looking at the output you posted above:
Code:

[~]# yum install php-xml
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.symnds.com
 * extras: centos.mirror.choopa.net
 * updates: mirror.ash.fastserv.com
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-xml available.
Nothing to do

Please notice the part highlighted in red: that is the only and unique reason why you cannot install the php packages from the CentOS repositories. In /etc/yum.conf you have:
Code:

[main]
exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
<omitted>

Regarding the third-party repository I agree with deep27ak: it's safe to not install so many untrusted repos, since they may bring to conflicts among different packages or different releases of the same package providing the same files. In this case it would be advisable to install the yum priorities plugin, by which you can assign a higher priority to the official repository and a lower priority to the untrusted ones. Take a look at http://wiki.centos.org/PackageManagement/Yum/Priorities for more details.


Thanks a lot colucix for bringing this point. You are right about the exclude command. I did'nt noticed that. My issue got resolved by deleting the exclude command. This exclude command was not there in the second server and hence all the php plugins was getting installed there......

The thing was this server is a VPS server. I am not sure why the tech team excluded PHP...maybe they dont wanted to tamper the cpanel/whm interface.

Anyways thank a lot colucix

fear_matrix 11-11-2011 03:35 AM

Quote:

Originally Posted by deep27ak (Post 4521191)
can you show the repo file of that server?

and are both the machines on same network?

Thanks deepak for your support but my issue got resolved by deleting the exclude command which was not allowing me to install all the PHP plugins.

colucix 11-11-2011 03:43 AM

Quote:

Originally Posted by fear_matrix (Post 4521352)
The thing was this server is a VPS server. I am not sure why the tech team excluded PHP...maybe they dont wanted to tamper the cpanel/whm interface.

Anyways thank a lot colucix

You're welcome! Indeed, they should have a valid reason for adding such a long exclude list. Anyway since you installed some missing dependencies, most likely you did not update existing packages, but installed new ones. It would be better to test the functionality of the VPS server at this point, then you can always restore the exclude list to prevent further updates (as originally meant by the tech guys).

Also remember to check the file /var/log/yum.log which register every step of the yum activity: in case of problems you can always restore the previous situation by erasing the newly installed packages and reinstalling the erased (or updated) ones (if any).


All times are GMT -5. The time now is 10:43 PM.