View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000022 | AlmaLinux-8 | -OTHER | public | 2021-02-13 11:07 | 2021-02-22 16:19 |
| Reporter | almalinux4all | Assigned To | alukoshko | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| OS | AlmaLinux8.3_beta | ||||
| Summary | 0000022: rpm --eval '%{almalinux}' does not return correct version | ||||
| Description | If you run the following in AlmaLinux, then you get the correct major version [root@ip-172-31-18-24 ~]# rpm --eval '%{rhel}' 8 [root@ip-172-31-18-24 ~]# rpm --eval '%{centos}' 8 However, this does not work if you use alma or almalinux, see below. Maybe it is a different string that I need to use? [root@ip-172-31-18-24 ~]# rpm --eval '%{alma}' %{alma} [root@ip-172-31-18-24 ~]# rpm --eval '%{almalinux}' %{almalinux} I would expect this to return 8, as in case of rhel and centos strings. Thanks, AlmaLinux4All | ||||
| Tags | No tags attached. | ||||
| abrt_hash | |||||
| URL | |||||
|
|
Thanks for report. You can find all supported distro macroses in /etc/rpm/macros.dist file. AlmaLinux uses %{almalinux_ver}. |
|
|
Thanks for this |
|
|
%{almalinux} macro will also be added in next AlmaLinux 8.3 Beta/RC release to make things more intuitive. Thank you for pointing this out. |
|
|
AlmaLinux 8.3 RC was released with this bug fixed https://almalinux.org/blog/almalinux-8-3-rc-release-notes/ |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-02-13 11:07 | almalinux4all | New Issue | |
| 2021-02-13 17:29 | alukoshko | Note Added: 0000023 | |
| 2021-02-13 19:01 | almalinux4all | Note Added: 0000025 | |
| 2021-02-13 19:09 | alukoshko | Note Added: 0000026 | |
| 2021-02-22 16:19 | alukoshko | Assigned To | => alukoshko |
| 2021-02-22 16:19 | alukoshko | Status | new => closed |
| 2021-02-22 16:19 | alukoshko | Resolution | open => fixed |
| 2021-02-22 16:19 | alukoshko | Note Added: 0000033 |