Error: Unable to determine version and release from targz name creating a custom RPM

Error: Unable to determine version and release from targz name creating a custom RPM

105
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:56 PM


Symptom


Applies to

Venafi Linux Agent 15.4 and below (custom RPM build)

Symptom:

When running the following command the error "Error: Unable to determine version and release from targz name" is returned.

python rpmbuilder/agent-rpmbuilder.py -s rpmbuilder/vagent.spec venafiagent-15.4-linux-x64.tar.gz

Cause:

The documentation is unclear, we are actually extracting the version from the file name of the source tar.gz file and are looking for the following format: venafi-agent-(\d+\.\d+)\.(\d+)

Resolution:

Rename the source tar.gz file to match the format required, eg. for version 15.4.0 of the Linux agent and then rerun the command to build the rpm:

mv venafiagent-15.4-linux-x64.tar.gzvenafiagent-15.4.0-linux-x64.tar.gz

python rpmbuilder/agent-rpmbuilder.py -s rpmbuilder/vagent.spec venafiagent-15.4.0-linux-x64.tar.gz

Note: 15.4.0 should be replaced with the appropriate version number.



Environment


TPP/TLSPDC

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj000000104bCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail