Forum: NGINX unable to install nginx via nginx.org repo with centos7

9906aefb1625e0ba919bd1fd27a31deb?d=identicon&s=25 Tim (Guest)
on 2014-08-22 13:49
(Received via mailing list)
Hi guys,

I'm running a fresh installed CentOS7 and added your repo via
http://nginx.org/packages/centos/7/noarch/RPMS/ngi...

I get the following issue if I try to install the nginx package:

[root@server]# yum install nginx
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
  * base: mirror.netcologne.de
  * epel: mirror.imt-systems.com
  * extras: mirror.skylink-datacenter.de
  * updates: mirror.23media.de
51 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 0:1.6.1-1.el6.ngx will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package:
nginx-1.6.1-1.el6.ngx.x86_64
--> Finished Dependency Resolution
Error: Package: nginx-1.6.1-1.el6.ngx.x86_64 (nginx-release)
            Requires: libpcre.so.0()(64bit)
  You could try using --skip-broken to work around the problem
  You could try running: rpm -Va --nofiles --nodigest
[root@server]#

the 51 protected packages are because of the also added puppetlabs repo
which got a high priority than the base one. Any Ideas about the libpcre
issue? I wasn't able to find the suitable rpm via the default CentOS
repos. Do you have to add it to your mirror?


kind regards,

Tim
06c049a7d72709f60907e14328923478?d=identicon&s=25 Konstantin Pavlov (Guest)
on 2014-08-22 14:05
(Received via mailing list)
On 22/08/2014 15:49, Tim wrote:
> Loading mirror speeds from cached hostfile
>   * base: mirror.netcologne.de
>   * epel: mirror.imt-systems.com
>   * extras: mirror.skylink-datacenter.de
>   * updates: mirror.23media.de
> 51 packages excluded due to repository priority protections
> Resolving Dependencies
> --> Running transaction check
> ---> Package nginx.x86_64 0:1.6.1-1.el6.ngx will be installed

Looks like the repository for CentOS 6 is enabled instead of CentOS 7.

> which got a high priority than the base one. Any Ideas about the libpcre
> issue? I wasn't able to find the suitable rpm via the default CentOS
> repos. Do you have to add it to your mirror?

You should check the contents of /etc/yum.repos.d/ files.

The nginx.repo for CentOS7 should be like that:

# nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1

--
Konstantin Pavlov
9906aefb1625e0ba919bd1fd27a31deb?d=identicon&s=25 unknown (Guest)
on 2014-08-22 21:59
(Received via mailing list)
Am 22.08.2014 um 14:04 schrieb Konstantin Pavlov:
> On 22/08/2014 15:49, Tim wrote:
>> Hi guys,
>>
>> I'm running a fresh installed CentOS7 and added your repo via
>>
http://nginx.org/packages/centos/7/noarch/RPMS/ngi...
>>   * updates: mirror.23media.de
>> 51 packages excluded due to repository priority protections
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package nginx.x86_64 0:1.6.1-1.el6.ngx will be installed
>
> Looks like the repository for CentOS 6 is enabled instead of CentOS 7.

ups. stupid me. thanks for the fast help
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.