Encountering the 'lsb_release command not found' error in CentOS 8 can be a hurdle when trying to determine your Linux distribution details. This guide provides a step-by-step approach to resolving this issue.
$ lsb_release -a
The error is commonly due to the absence of a necessary package. To identify the package that provides the required command, execute:
$ sudo dnf whatprovides lsb_release
Based on the output, the package redhat-lsb-core is responsible for providing the lsb_release command.
Solution
To address this, install the redhat-lsb-core package with the following command:
$ sudo dnf install redhat-lsb-core
During installation, confirm by typing ‘Y’ when prompted to proceed. This will install the package along with its dependencies.
After installation, re-run the command:
$ lsb_release -a
You should now see the expected output, confirming the successful resolution of the issue. Thank you for choosing CloudBlast for your Linux troubleshooting needs.







