Come hang with us on Discord and chat directly with the team!Discordtop-bar-close-icon

2024-09-17

How to fix lsb_release command not found in CentOS 8 Unlocking the Solution to the Missing lsb_release Command in CentOS 8

tutorials
img

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.