Preferred release is set but upgrades in other version.

Latest response

Hi all,

i am trying to yum update in order to get all the updates but not upgrade to another minor version.

I followed solution proposed (eg. https://access.redhat.com/solutions/238533) but my systems keeps getting updated from 7.2 to 7.5.

I perform all the needed steps:
1) subscription-manager release --set=7.2
2) yum clean all
3) subscription-manager repos –enable=

Finally i run yum update and eventually it gets updated to v7.5.

Any help would be appreciated.

Thank you in advance.

Responses

Hi Ioannis,

Those steps looks perfect, what does the command "subscription-manager release --show" output says?

Hi there,

7.2 as the one that i have set above. But when i run yum update afterwards, it upgrades in 7.5. Any ideas why?

Thanks

That is strange, try removing the contents of this folder "/var/cache/yum" then run "yum clean all". Also, I'd appreciate if you could show the output of the following commands:

#yum repolist
#cat /etc/yum.conf

Thanks a lot. Yum cache was finally the issue. I have cleared the contents of "/var/cache/yum" and then run "yum clean all". It worked smoothly and after "yum update" version was locked to 7.2.

Thank you everyone for the support.

That is nice. All the best!

Hi Sadashiva,

Yes, that is nice indeed ... those two "magic" cleanup commands work like a charm - well done ! :)

Regards,
Christian

Thanks Christian.... :)

Setting the "subscription-manager release" is necessary but not sufficient to stay on an older release. Do you have an EUS subscription attached to the system in question? What is the output of:

subscription-manager list
subscription-manager repos --list | grep 7.2

(the repos --list option will also show us whether you are using a Satellite server or the Red Hat CDN)

Hello all,

thanks for your responses.

Below you can see the outputs you have requested.

yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager, versionlock
Repo rhel-7-server-eus-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/1739578937567990638-key.pem
Repo rhel-7-server-eus-optional-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/1739578937567990638-key.pem
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/1739578937567990638-key.pem
repo id                                 repo name                                                   status
!epel/x86_64                            Extra Packages for Enterprise Linux 7 - x86_64              12,679
!rhel-7-server-eus-optional-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extended Update Support  9,116
!rhel-7-server-eus-rpms/x86_64          Red Hat Enterprise Linux 7 Server - Extended Update Support 11,969
!rhel-7-server-rpms/x86_64              Red Hat Enterprise Linux 7 Server (RPMs)                    11,412
repolist: 45,176
cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
sudo subscription-manager list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.5
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         01/01/2017
Ends:           01/01/2019

Product Name:   Red Hat Enterprise Linux Server - Extended Update Support
Product ID:     70
Version:        7.4
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         01/01/2017
Ends:           01/01/2019
sudo subscription-manager repos --list | grep 7.2

Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/dotnet/1/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/v2vwin/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.3/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.3-puppet4/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rhscl/1/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rh-common/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/ceph-tools/2/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rh-common/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.1/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhs-client/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/9/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rh-common/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.1/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/ceph-tools/1.3/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.3-puppet4/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.1/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/10/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/ceph-tools/1.3/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rh-common/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/9/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.4/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/10/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/optional/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/supplementary/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/ceph-tools/1.3/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/10/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rhscl/1/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.2/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/optional/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhscl/1/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.2/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhn-tools/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/oracle-java/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.2/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/dotnet/1/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.4/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/dotnet/1/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rhn-tools/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/7.0/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/supplementary/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.3/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/7.0/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/9/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/v2vwin/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/ceph-tools/2/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/optional/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhscl/1/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhscl/1/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rh-common/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/optional/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/v2vwin/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/oracle-java/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/supplementary/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/oracle-java/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rh-common/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/ceph-tools/2/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.4/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rhn-tools/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhn-tools/debug
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rhn-tools/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhs-client/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/8/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/rhscl/1/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhs-client/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.3/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/supplementary/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/8/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/8/debug
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/supplementary/os
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/oracle-java/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/optional/os
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/rhn-tools/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/7.2/$basearch/sat-tools/6.3-puppet4/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/supplementary/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/optional/source/SRPMS
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7.2/$basearch/openstack-tools/7.0/source/SRPMS

Regards

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.