I am using Bash to install a customised version of JBoss, and one of the things I would like to do is install the correct version of the Apache Portable Runtime, which is a native binary.
This script could be run on both 32 and 64 bit versions of RHEL.
What are my options for identifying which version of the APR to install?
I think we only have 32bit and x64-based systems here. I would still like to identify i64 systems so that the script can refuse to install on that type of machine.
I am aware of using uname -m
and grepping /proc/cpuinfo
to find out, but was wondering which approach others would recommend?