Recebi a tarefa de configurar o PHP em um servidor RHEL 6.
executando yum install php
me fornece a seguinte saída:
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package php available.
Error: Nothing to do
Existem dois arquivos em /etc/yum.repos.d
:
redhat.repo :
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
rhel-source.repo :
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Eu olhei em volta e parece que esta não é a configuração padrão. Eu quero restaurar os repositórios do RHEL6 (que devem incluir o PHP 5.1, eu acredito). O que posso fazer?
(atualizado em resposta a @ewwhite) :
# rpm -qi php
package php is not installed
# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
repolist: 0