Update from offline local repository with a predefined release.

Latest response

Hi all,

i have a lab which is consisted of 3 servers. One as management (No internet connection. Acts as offline repository), one as remote (No internet connection) and one for getting all the latest updates from RHN (Online updater).

I would like to keep the remote one updated on a specific version (7.2) by "locking" it's kernel's release using the following commands:

subscription-manager --release=7.2
yum clean all

It's .repo files stored in "/etc/yum.repos.d" are edited and the baseurl points to management servers' HTTP server where all the latest repo packages are residing (after transferred from online updater).

Problem:
Even though all machines have been registered with a valid RHEL Server EUS subscription and even though release is set to 7.2, when remote is updated it's kernel gets upgraded to 7.5.

Notes:
I have removing the contents of folder "/var/cache/yum" and then "yum clean all" but result is the same.

Is the feature of setting a RHEL release working only when updating while being online and downloading from RHN?

Any help would be appreciated.

Thanks

Responses

Hi IG ! :)

I've read your other post, where you seem to have it solved by removing yum cache and cleaning up yum following the suggestions from Sadashiva. What you describe here is only possible when the downloaded repository content on your external server contains these newer kernel packages, or when something is not correctly configured in the .repo files in the /etc/yum.repos.d folder.

Regards,
Christian

my linux is a pip autoex error remover talk is propretly language codes

Hi Christian,

thanks for your answer. I have 4 repo files for all repositories needed (rhel7-server-rpms, rhel7-server-eus-rpms, rhel7-server-eus-opt-rpms, epel). Each one has the format (eg rhel-7-server-rpms one):

[rhel-7-server-rpms_local]
baseurl = http://guimgmt/rhel72/rhel-7-server-rpms/
ui_repoid_vars = basearch
name = Red Hat Enterprise Linux 7 Server Local (RPMs)
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled = 1
gpgcheck = 0
sslverify=false

Regarding the repository content downloaded, can i only choose to reposync repositories from 7.2 release which is already set? If version is set to 7.2 then normally reposync would download the kernel packages for 7.2 only?

Thank you in advance.

Best regards,

IG

Hi IG,

Maybe rhel-7-server-rpms is the culprit - this repo contains the latest stable packages, which currently are from the RHEL 7.5 edition. Eventually you can solve your problem by disabling this repo. Not sure though, just try it out. :)

Regards,
Christian

So, to understand what is going on:

if i run "yum update" with this repo disabled, will i get all the updates needed? Can EUS repos cover everything or they just provide some "extra" packages?

Indeed rhel-7-server-rpms has the 7.5 kernel packages but if i disable it, i will also lose other very important updates. Is that right?

Regards, IG

Hi IG,

You have to decide it yourself ... either receiving the latest stable updates or stick with 7.2 EUS. :)
You can exclude specific packages though - example : sudo yum update --exclude=kernel*

Regards,
Christian

linux need understand everything is a defender system slow but setup good stable 937 gig system cached mine

What are you trying to say Francis? I presume no one could understand your messages....

Hi IG,

Apart from what Christian has suggested, I'm confused on how the remote system (one without internet) has been set with locking version using "subscription-manager --release=7.2"? Could you explain more about this...

Correct, Sadashiva ... subscription-manager --release=7.2 will "hardly work" in this (no internet connection) case. :)

Regards,
Christian

Hello again, thanks for your replies.

I have setup the VM online l, registered and auto attached the server license and set the release to 7.2. Then i took the VM on an isolated network. That is the way i expected to work, by online locking the release and then updating from the offline. But it didn't work as expected :/

language linux set it up

You're welcome IG ! Did you check out if you could achieve what you want with my suggestion I've provided above ?
When you execute sudo yum update --exclude=kernel* you get the latest updates except kernel upgrades. :)

Regards,
Christian

Hi Christian,

i will try and i will keep you posted!

Thanks

Hi IG, good idea - it should work fine and also meet your requirements ... I wish you good luck ! :)

Regards,
Christian

I don't understand what Francis wants to tell.

Same with me ...
Francis, can you please explain what you want to say and how it can contribute to solve the problem ? Thanks ! :)

Regards,
Christian

Close

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