tags:

views:

28

answers:

1

Hi all.
How can i determine the Linux version (distribution) for which was compiled rpm packet?

+1  A: 

There is no such ways to determine the OS name and version from the content of the file.

Normally a RPM file name contains all these details. According to the RPM file naming convention the file name must be like :

name-version-release.architecture.rpm

Please check this link for details.

Joe
None of those are OS name and version, though? In practice it's normally it's set in the release field, e.g. release=1.el5, but that's not described on that page.
Rup