Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
santoshkt opened this issue Mar 23, 2017 · 1 comment
Open

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

santoshkt opened this issue Mar 23, 2017 · 1 comment

Comments

@santoshkt
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants