• CentOS 8

CentOS 8 - lsb_release not found

/bin/sh: /home/rpmbuild/rpmbuild/SOURCES/lsb_release: file or directory not found 

Solution

Query yum which package provides lsb_release:

[root@centos8-dev ~]# yum whatprovides lsb_release
Last metadata expiration check: 0:22:35 ago on Wed 12 Aug 2020 05:10:34 PM CEST.
redhat-lsb-core-4.1-47.el8.i686 : LSB Core module support
Repo        : AppStream
Matched from:
Filename    : /usr/bin/lsb_release

redhat-lsb-core-4.1-47.el8.x86_64 : LSB Core module support
Repo        : AppStream
Matched from:
Filename    : /usr/bin/lsb_release

Install package redhat-lsb-core:

[root@centos8-dev ~]# yum install redhat-lsb-core
Data protection info | Help us to optimize this site and allow cookies please - insights will not be passed on to third parties.
Decline Accept