I prepared a script that automates the installation and configuration of CentOS 8 Linux with KODI (formerly XBMC) under HTPC (a computer for media playback). Thanks to this, we get a ready system which, after connecting to e.g. TV or projector, enables comfortable playback of multimedia materials (video, audio, streams).
File, commands to download it, and even video material on YouTube can be found on the newly created subpage of this project. You are welcome: HTPC on CentOS 8 Linux with Kodi.