Today I decided to play with CentOS 8 a little bit and also to try out Cockpit. All is going well and it is quite enjoyable but if anyone else gets an error like,
“To get software updates, this system needs to be registered with Red Hat, either using the Red Hat Customer Portal or a local subscription server.”CentOS 8 error
it is because the /etc/yum/pluginconf.d/subscription-manager.conf is enabled. To disable it with Vim go,
sudo vim /etc/yum/pluginconf.d/subscription-manager.conf i /* to change to insert mode */ /* arrow down to the line enabled=1 and change it to enabled=0 */ esc /* to switch from insert mode to command mode */ :wq /* to write the file and then quit vim */
You will need to have sudo permissions at least to write to the file otherwise it will be read only.
Or if you prefer to use nano,
sudo nano /etc/yum/pluginconf.d/subscription-manager.conf /* arrow down to the line enabled=1 and change it to enabled=0 */ Ctrl + x /* To exit nano */ y /* Answer yes when asked whether you want to save the buffer */
Again, you will need to have sudo permissions at least to write to the file otherwise it will be read only.
It is a bit of a weird thing and it looks worse than it is. Hopefully if people run into it then this will help them solve it.