craigwblake / redline

Pure Java Rpm Library
http://redline-rpm.org
MIT License
128 stars 97 forks source link

How to set el7 as OS version in rpm ? #120

Open santoshkt opened 7 years ago

santoshkt commented 7 years ago

I see options for Linux and other OS in http://redline-rpm.org/apidocs/org/redline_rpm/header/Os.html. I'm specifically looking to set it to el7 and there is nothing related to CentOS and RHEL. Appreciate any suggestions on how to set OS to el7.

oesolutions commented 4 years ago

A late reply, but in case anyone else comes here with a similar question... The OS rpm tag is simply Os.LINUX in that scenario, not a specific distribution of Linux. For example, on my CentOS system, here's some values for bash:

$ rpm -q --qf "%{NAME} : %{VERSION} : %{RELEASE} : %{ARCH} : %{OS}\n" bash
bash : 4.2.46 : 19.el7 : x86_64 : linux