aapa_05
(usa CentOS)
Enviado em 16/10/2018 - 11:19h
Bom dia
Não rolou não.
Veja abaixo o passo a passo:
[root@localhost yum.repos.d]#
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Obtendo
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
aviso: /var/tmp/rpm-tmp.yJkoTy: Cabeçalho V3 RSA/SHA256 Signature, ID da chave 352c64e5: NOKEY
Preparando... ################################# [100%]
Updating / installing...
1:epel-release-7-11 ################################# [100%]
[root@localhost yum.repos.d]#
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Obtendo
http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
aviso: /var/tmp/rpm-tmp.65dEbJ: Cabeçalho V4 DSA/SHA1 Signature, ID da chave 00f97f56: NOKEY
Preparando... ################################# [100%]
Updating / installing...
1:remi-release-7.5-2.el7.remi ################################# [100%]
[root@localhost yum.repos.d]
Consultando os repositórios
[root@localhost yum.repos.d]# ll
total 80
-rw-r--r--. 1 root root 1269 Jan 24 2017 CentOS-Base.repo
-rw-r--r--. 1 root root 1310 Jan 24 2017 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Jan 24 2017 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 186 Jan 24 2017 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Jan 24 2017 CentOS-Media.repo
-rw-r--r--. 1 root root 1333 Jan 24 2017 CentOS-Sources.repo
-rw-r--r--. 1 root root 2009 Jan 24 2017 CentOS-Vault.repo
-rw-r--r-- 1 root root 4 Out 16 09:45 composer.json
-rw-r--r-- 1 root root 951 Out 2 2017 epel.repo
-rw-r--r-- 1 root root 1050 Out 2 2017 epel-testing.repo
-rw-r--r-- 1 root root 446 Jun 19 05:28 remi-glpi91.repo
-rw-r--r-- 1 root root 446 Jun 19 05:28 remi-glpi92.repo
-rw-r--r-- 1 root root 446 Jun 19 05:28 remi-glpi93.repo
-rw-r--r-- 1 root root 456 Jun 19 05:28 remi-php54.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php70.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php71.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php72.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php73.repo
-rw-r--r-- 1 root root 2605 Jun 19 05:28 remi.repo
-rw-r--r-- 1 root root 750 Jun 19 05:28 remi-safe.repo
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]#
yum --enablerepo=remi,remi-php72 install httpd php php-common
Plugins carregados: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/i386/metalink | 47 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7& arch=i386 error was
No repomd file
One of the configured repositories failed (Desconhecido),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
No repomd file
[root@localhost yum.repos.d]#
Isso acontece com qualquer repositório que tento.
A propósito, uso Centos (7).