Yum trying to install .el7 release on CentOS 6
NickName:codeMonkey Ask DateTime:2015-12-04T23:21:08

Yum trying to install .el7 release on CentOS 6

I have generated two RPMs. One for CentOS 6 and one for CentOS 7.

my-package-0.0.1-1.el6.x86_64

my-package-0.0.1-1.el7.x86_64

When I do a yum info my-package on a CentOS 6 machine, it gives me the el7 information. When I do yum install my-package it does the same, gets the el7 version. Why is it doing this? I'm trying to avoid installing a el7 version on a el6 machine.

Copyright Notice:Content Author:「codeMonkey」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/34091614/yum-trying-to-install-el7-release-on-centos-6

Answers
Aaron D. Marasco 2015-12-04T23:02:36

It sounds like you have them in the same yum repository. You shouldn't. You should be posting one to a CentOS6 repo and the other to a CentOS7 repo. Otherwise, yum is comparing them and deciding that 7 > 6 when comparing the release tags, so therefore that's the newest package available. \n\nThe el6 (AKA \"dist tag\") is a convenience to the user as a suffix to the release, and is not something that RPM can select on directly.",


More about “Yum trying to install .el7 release on CentOS 6” related questions

Yum trying to install .el7 release on CentOS 6

I have generated two RPMs. One for CentOS 6 and one for CentOS 7. my-package-0.0.1-1.el6.x86_64 my-package-0.0.1-1.el7.x86_64 When I do a yum info my-package on a CentOS 6 machine, it gives me t...

Show Detail

Docker centos php5 issues

I am trying to install php7 on centos using docker. I created my dockerfile like below. FROM centos:7 WORKDIR /tmp RUN \ yum update -y && \ yum install -y epel-release yum-plugin-ovl ...

Show Detail

Install pgadmin3 centos 6 with yum

I am trying to install pgadmin3 in centos 6. But I am getting this error. How to avoid this and install pgAdmin3. [root@localhost ~]# yum install pgadmin3 Loaded plugins: fastestmirror, refresh-

Show Detail

Install centreon on centos7.9 raspberrypi

How guys, can you help me I have problem with install centreon: #yum install centreon-base-config-centreon-engine centreon output Loading mirror speeds from cached hostfile base: mirror.vpsnet.co...

Show Detail

Struggling to Install Puppetserver with yum on CentOS7

I am trying to install puppetserver on CentOS7. I ran the following commands to first enable the puppet platform as instructed on https://puppet.com/docs/puppet/7.4/install_puppet.html#install_pupp...

Show Detail

yum error on Centos 6.6

After a failed "yum update", yum does not work. If I try to launch "yum update" I get as a result: # yum update Loaded plugins: dellsysid, fastestmirror Setting up Update Process Loading mirror s...

Show Detail

Nginx CentOS 7 yum Install Error

I am trying to install Nginx on centOS 7 but I keep getting this error [nginx error][1] [1]: https://i.stack.imgur.com/iwMhQ.png Things I have tried: -Yum Clean All -Installed Epel-release -

Show Detail

How to install yum on centos

I removed /usr/bin/yum by mistake. How to re install yum on centos6 Please help me ;( I followed website explanation but I got this error Failed dependencies: blah,blah or yum-2.2.1-1.centos4.noa...

Show Detail

Centos 6 - every server gets yum error

Since some days, every server gets an error when i try to update by yum or install a package: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. $releasever is not a valid rel...

Show Detail

yum install , Update returns 404 error in centos 6.6

yum doesnt work at all, yum install , update doesnt work gives below error yum update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile * epel:

Show Detail