The list of canonical names was found in: https://github.com/rpm-software-management/rpm/blob/master/rpmrc.in The canonical names were extracted with: grep arch_canon rpmrc.in | sed 's/^.*:\s*//' | sed 's/\s*..\?$//' and then sorted and condensed into a regular expression. Inspired-by: Funda Wang <fundawang@gmail.com>