oracle / centos2ol

Script and documentation to switch CentOS/Rocky Linux to Oracle Linux
https://linux.oracle.com/switch/centos/
Universal Permissive License v1.0
344 stars 81 forks source link

add support for centos8-stream #130

Closed cwadrupldijjit closed 2 years ago

cwadrupldijjit commented 2 years ago

I recently tried to set up an Oracle Linux machine using WSL 2 and basing it off of the CentOS 8 version, but I ran into insurmountable issues (at least, for me) while trying to update/upgrade everything necessary due to the fact that CentOS 8 has reached its EOL as of a month ago and the suggestion is to use either CentOS 7 or CentOS 8-stream. As such, I installed CentOS 8-stream instead and tried to run the script.

Looking into the script, I ran into an error stating that the distribution wasn't supported. Since my understanding of CentOS 8-stream is that it is CentOS 8, but supported upstream (or something like that), I figured I'd try to use the script anyway to see if it would work.

Lo and behold, I tweaked two lines of the script to include the -stream postfix and it upgraded smoothly.

Could this support be added for the help of others who, like me, might need it?

Otherwise, I could create an issue instead stating my workarounds for it.

cwadrupldijjit commented 2 years ago

And just for fun, I pushed this change up from the newly-converted Oracle Linux 8 machine I referred to in my opening description, so it definitely worked. If you need more information, please let me know.

Djelibeybi commented 2 years ago

We can't add support for CentOS Stream because we don't support Stream. You'd have to convert to Oracle Linux prior to installing/upgrading to the Stream variant.

It may work when you don't have any stream packages installed, but over time will become more and more difficult to migrate.

Djelibeybi commented 2 years ago

This does sound like something that could be a very useful discussion though. :)

cwadrupldijjit commented 2 years ago

Very well.

Also apologies for not starting this out in an issue. I'm currently fixing that problem now, and that would definitely be a better place to discuss that than here.

cwadrupldijjit commented 2 years ago

I added the issue for it (as you can see in the activity stream). #131 should be where we take discussion of what needs to be done, particularly based on the contributing guidelines that I failed to read until after I put in a PR.

Djelibeybi commented 2 years ago

I'm going to close this PR and continue the discusson in #131.