When migrating from RHEL 8 to Rocky 8, is it common for the migrate2rocky script to leave lots of RHEL packages in place?

Hi, first time posting here on the Rocky forums :slight_smile:

After running migrate2rocky, I see there are a lot of packages still left over from the RHEL repos. Is this common? I thought everything would be replaced?

example where XXXX is the corporate IT repo name.

vim-minimal.x86_64 2:8.0.1763-19.el8_6.4 @rhel-8-for-x86_64-baseos-rpms
virt-what.x86_64 1.25-4.el8 @rhel-8-for-x86_64-baseos-rpms
which.x86_64 2.21-20.el8 @rhel-8-for-x86_64-baseos-rpms
xfsprogs.x86_64 5.0.0-12.el8 @rhel-8-for-x86_64-baseos-rpms
xkeyboard-config.noarch 2.28-1.el8 @AppStream
xmlsec1.x86_64 1.2.25-8.el8_10 @rhel-8-for-x86_64-appstream-rpms
xmlsec1-openssl.x86_64 1.2.25-8.el8_10 @rhel-8-for-x86_64-appstream-rpms
xz.x86_64 5.2.4-4.el8_6 @XXXXT_Rocky_Linux_RL8_BaseOS_x86_64
xz-devel.x86_64 5.2.4-4.el8_6 @rhel-8-for-x86_64-baseos-rpms
xz-libs.x86_64 5.2.4-4.el8_6 @rhel-8-for-x86_64-baseos-rpms
yum.noarch 4.7.0-21.el8_10 @rhel-8-for-x86_64-baseos-rpms
yum-utils.noarch 4.0.21-25.el8 @rhel-8-for-x86_64-baseos-rpms
zip.x86_64 3.0-23.el8 @rhel-8-for-x86_64-baseos-rpms
zlib.x86_64 1.2.11-26.el8 @XXXXIT_Rocky_Linux_RL8_BaseOS_x86_64
zlib-devel.x86_64 1.2.11-26.el8 @XXXXIT_Rocky_Linux_RL8_BaseOS_x86_64

[root@ yum.repos.d]# yum list installed |grep XXXX | wc -l
36

[root@ yum.repos.d]# yum list installed |grep rhel-8 | wc -l
507

Thanks for any info you can provide!

Such a situation is usually possible when for example no updates for those packages have been made. What you can do is something like:

dnf list installed | grep rhel | awk '{print $1}'

You can then use that in combination with another command to reinstall the packages, which will then refresh them and show the Rocky repo, so:

dnf reinstall $(dnf list installed | grep rhel | awk '{print $1}')

as for the other packages, that looks like as if it’s had packages installed from Red Hat Satellite or been registered with Foreman. You can repeat the process for those as well.

Thanks, I tried to manually reinstall a couple packages and that worked, I wonder if it is safe to just leave the RHEL packages in place and let rocky update them as new patches / packages become available during regular patching?

We sync the repos manually (foreman + katello I know… I know…) every month so packages will be mostly in sync in the RHEL vs Rocky repos.

Yeah it should be fine to leave them and let them get refreshed at some point in the future. I had a similar situation when my hosts were downloading directly before using something like Satellite/Foreman. Once registered with Satellite/Foreman, my installed packages were a mix of being from the repos on my Satellite/Foreman, and the repos where it was connected previously (directly).

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.