Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(scanner/redhat): each package has modularitylabel #1381

Merged
merged 1 commit into from
May 15, 2024

Conversation

MaineK00n
Copy link
Collaborator

@MaineK00n MaineK00n commented Feb 6, 2022

What did you implement:

I think that instead of having a group of enable modules, each package should have a modularitylabel of the module it belongs to.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

[vagrant@rhel8 ~]$ cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.9 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.9 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"

[vagrant@rhel8 ~]$ dnf --nogpgcheck --cacheonly --color=never --quiet module list --enabled
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Name                                             Stream                                     Profiles                                          Summary                                                              
perl                                             5.26 [d][e]                                common [d], minimal                               Practical Extraction and Report Language                             
perl-IO-Socket-SSL                               2.066 [d][e]                               common [d]                                        Perl library for transparent TLS                                     
perl-libwww-perl                                 6.34 [d][e]                                common [d]                                        A Perl interface to the World-Wide Web                               
python36                                         3.6 [d][e]                                 build, common [d]                                 Python programming language, version 3.6                             

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

[vagrant@rhel8 ~]$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n" | grep python36
python36 0 3.6.8 38.module+el8.5.0+12207+5c5719bc x86_64 python36:3.6:8050020210811103506:982725ab

before

$ vuls scan
[May 10 17:59:17]  INFO [localhost] vuls-v0.25.2-build-20240510_175728_ef2be3d
...

Scan Summary
================
vagrant	redhat8.9	509 installed





To view the detail, vuls tui is useful.
To send a report, run vuls report -h.

$ cat results/2024-05-10T17-59-19+0900/vagrant.json | jq .enabledDnfModules
$ cat results/2024-05-10T17-59-19+0900/vagrant.json | jq .packages.python36
{
  "name": "python36",
  "version": "3.6.8",
  "release": "38.module+el8.5.0+12207+5c5719bc",
  "newVersion": "",
  "newRelease": "",
  "arch": "x86_64",
  "repository": ""
}


$ vuls report
[May 10 18:00:58]  INFO [localhost] vuls-v0.25.2-build-20240510_175728_ef2be3d
...
vagrant (redhat8.9)
===================
Total: 410 (Critical:6 High:115 Medium:272 Low:15 ?:2)
71/410 Fixed, 65 poc, 0 exploits, cisa: 0, uscert: 0, jpcert: 0 alerts
509 installed
...

$ cat results/2024-05-10T17-59-19+0900/vagrant.json | jq '.scannedCves."CVE-2015-20107"'

after

$ vuls scan
[May 10 17:52:47]  INFO [localhost] vuls-v0.25.2-build-20240510_173812_4ec0344
...

Scan Summary
================
vagrant	redhat8.9	509 installed





To view the detail, vuls tui is useful.
To send a report, run vuls report -h.

$ cat results/2024-05-10T15-38-01+0900/vagrant.json | jq .enabledDnfModules
$ cat results/2024-05-10T17-52-49+0900/vagrant.json | jq .packages.python36
{
  "name": "python36",
  "version": "3.6.8",
  "release": "38.module+el8.5.0+12207+5c5719bc",
  "newVersion": "",
  "newRelease": "",
  "arch": "x86_64",
  "repository": "",
  "modularitylabel": "python36:3.6:8050020210811103506:982725ab"
}

$ vuls report
[May 10 17:54:43]  INFO [localhost] vuls-v0.25.2-build-20240510_173812_4ec0344
...
vagrant (redhat8.9)
===================
Total: 414 (Critical:6 High:118 Medium:273 Low:15 ?:2)
71/414 Fixed, 69 poc, 0 exploits, cisa: 0, uscert: 0, jpcert: 0 alerts
509 installed
...

$ cat results/2024-05-10T17-52-49+0900/vagrant.json | jq '.scannedCves."CVE-2015-20107"'
{
  "cveID": "CVE-2015-20107",
  "confidences": [
    {
      "score": 100,
      "detectionMethod": "OvalMatch"
    }
  ],
  "affectedPackages": [
    {
      "name": "python36",
      "notFixedYet": true,
      "fixState": "Affected"
    }
  ],
...

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

Reference

@MaineK00n MaineK00n self-assigned this Feb 6, 2022
@MaineK00n MaineK00n force-pushed the MaineK00n/add-modularitylabel-to-package branch 2 times, most recently from 07e4c0c to 2e7c86b Compare February 11, 2022 16:12
@MaineK00n MaineK00n marked this pull request as ready for review February 11, 2022 16:12
@MaineK00n MaineK00n force-pushed the MaineK00n/add-modularitylabel-to-package branch 6 times, most recently from c2ddf4b to 6f77ebc Compare February 15, 2022 20:47
@MaineK00n MaineK00n marked this pull request as draft May 10, 2024 08:09
@MaineK00n MaineK00n linked an issue May 10, 2024 that may be closed by this pull request
@MaineK00n MaineK00n force-pushed the MaineK00n/add-modularitylabel-to-package branch 3 times, most recently from 4ec0344 to 88e2f7b Compare May 10, 2024 09:05
@MaineK00n MaineK00n marked this pull request as ready for review May 10, 2024 09:05
@MaineK00n MaineK00n requested a review from shino May 10, 2024 09:06
@MaineK00n MaineK00n force-pushed the MaineK00n/add-modularitylabel-to-package branch from 88e2f7b to 9d6993a Compare May 10, 2024 09:14
Copy link
Collaborator

@shino shino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(≧∇≦)b

@MaineK00n
Copy link
Collaborator Author

RHEL

5

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
basesystem (none) 8.0 5.1.1 noarch
tzdata (none) 2011l 4.el5 x86_64
zlib (none) 1.2.3 4.el5 x86_64
popt (none) 1.10.2.3 27.el5 x86_64
bash (none) 3.2 32.el5 x86_64
nss (none) 3.12.10 8.el5 x86_64
gawk (none) 3.1.5 15.el5 x86_64
libxml2 (none) 2.6.26 2.1.12.el5_7.2 x86_64
procps (none) 3.2.7 18.el5 x86_64
gdbm (none) 1.8.0 26.2.1.el5_6.1 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
error: incorrect format: unknown tag
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

6

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.10 (Santiago)

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
glibc-devel (none) 2.12 1.212.el6 x86_64
setup (none) 2.8.14 23.el6 noarch
xz (none) 4.999.9 0.5.beta.20091007git.el6 x86_64
tzdata (none) 2018e 3.el6 noarch
libarchive (none) 2.8.3 7.el6_8 x86_64
subscription-manager-rhsm-certificates (none) 1.20.10 7.el6 x86_64
gcc (none) 4.4.7 23.el6 x86_64
glibc-common (none) 2.12 1.212.el6 x86_64
libtool (none) 2.2.6 15.5.el6 x86_64
glibc (none) 2.12 1.212.el6 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
glibc-devel 0 2.12 1.212.el6 x86_64
setup 0 2.8.14 23.el6 noarch
xz 0 4.999.9 0.5.beta.20091007git.el6 x86_64
tzdata 0 2018e 3.el6 noarch
libarchive 0 2.8.3 7.el6_8 x86_64
subscription-manager-rhsm-certificates 0 1.20.10 7.el6 x86_64
gcc 0 4.4.7 23.el6 x86_64
glibc-common 0 2.12 1.212.el6 x86_64
libtool 0 2.2.6 15.5.el6 x86_64
glibc 0 2.12 1.212.el6 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

8

$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.9 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.9 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
NetworkManager 1 1.40.16 9.el8 x86_64
python3-pip-wheel (none) 9.0.3 23.el8 noarch
polkit-pkla-compat (none) 0.1 12.el8 x86_64
redhat-release-eula (none) 8.9 0.1.el8 x86_64
libevent (none) 2.1.8 5.el8 x86_64
basesystem (none) 11 5.el8 noarch
unbound-libs (none) 1.16.2 5.el8 x86_64
pcre2 (none) 10.32 3.el8_6 x86_64
usermode (none) 1.113 2.el8 x86_64
python36 (none) 3.6.8 38.module+el8.5.0+12207+5c5719bc x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
NetworkManager 1 1.40.16 9.el8 x86_64
python3-pip-wheel 0 9.0.3 23.el8 noarch
polkit-pkla-compat 0 0.1 12.el8 x86_64
redhat-release-eula 0 8.9 0.1.el8 x86_64
libevent 0 2.1.8 5.el8 x86_64
basesystem 0 11 5.el8 noarch
unbound-libs 0 1.16.2 5.el8 x86_64
pcre2 0 10.32 3.el8_6 x86_64
usermode 0 1.113 2.el8 x86_64
python36 0 3.6.8 38.module+el8.5.0+12207+5c5719bc x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
NetworkManager 1 1.40.16 9.el8 x86_64 (none)
python3-pip-wheel 0 9.0.3 23.el8 noarch (none)
polkit-pkla-compat 0 0.1 12.el8 x86_64 (none)
redhat-release-eula 0 8.9 0.1.el8 x86_64 (none)
libevent 0 2.1.8 5.el8 x86_64 (none)
basesystem 0 11 5.el8 noarch (none)
unbound-libs 0 1.16.2 5.el8 x86_64 (none)
pcre2 0 10.32 3.el8_6 x86_64 (none)
usermode 0 1.113 2.el8 x86_64 (none)
python36 0 3.6.8 38.module+el8.5.0+12207+5c5719bc x86_64 python36:3.6:8050020210811103506:982725ab
...

CentOS

5

$ cat /etc/redhat-release 
CentOS release 5.11 (Final)

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
setup (none) 2.5.58 9.el5 noarch
basesystem (none) 8.0 5.1.1.el5.centos noarch
cracklib-dicts (none) 2.8.9 3.3 x86_64
tzdata (none) 2016c 1.el5 x86_64
glibc (none) 2.5 123.el5_11.3 x86_64
zlib (none) 1.2.3 7.el5 x86_64
popt (none) 1.10.2.3 36.el5_11 x86_64
glib2 (none) 2.12.3 4.el5_3.1 x86_64
audit-libs (none) 1.8 2.el5 x86_64
bash (none) 3.2 33.el5_11.4 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
error: incorrect format: unknown tag
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

6

$ cat /etc/centos-release 
CentOS release 6.10 (Final)

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
setup (none) 2.8.14 23.el6 noarch
basesystem (none) 10.0 4.el6 noarch
tzdata (none) 2018e 3.el6 noarch
glibc-common (none) 2.12 1.212.el6 x86_64
glibc (none) 2.12 1.212.el6 x86_64
bash (none) 4.1.2 48.el6 x86_64
libcap (none) 2.16 5.5.el6 x86_64
info (none) 4.13a 8.el6 x86_64
libacl (none) 2.2.49 7.el6_9.1 x86_64
nspr (none) 4.19.0 1.el6 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
setup 0 2.8.14 23.el6 noarch
basesystem 0 10.0 4.el6 noarch
tzdata 0 2018e 3.el6 noarch
glibc-common 0 2.12 1.212.el6 x86_64
glibc 0 2.12 1.212.el6 x86_64
bash 0 4.1.2 48.el6 x86_64
libcap 0 2.16 5.5.el6 x86_64
info 0 4.13a 8.el6 x86_64
libacl 0 2.2.49 7.el6_9.1 x86_64
nspr 0 4.19.0 1.el6 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

8

$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
crypto-policies (none) 20210209 1.gitbfb6bed.el8_3 noarch
python3-pip-wheel (none) 9.0.3 19.el8 noarch
ncurses-base (none) 6.1 7.20180224.el8 noarch
dnf-data (none) 4.4.2 11.el8 noarch
dhcp-common 12 4.3.6 44.0.1.el8 noarch
centos-gpg-keys 1 8 2.el8 noarch
centos-linux-repos (none) 8 2.el8 noarch
filesystem (none) 3.8 3.el8 x86_64
pcre2 (none) 10.32 2.el8 x86_64
ncurses-libs (none) 6.1 7.20180224.el8 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
crypto-policies 0 20210209 1.gitbfb6bed.el8_3 noarch
python3-pip-wheel 0 9.0.3 19.el8 noarch
ncurses-base 0 6.1 7.20180224.el8 noarch
dnf-data 0 4.4.2 11.el8 noarch
dhcp-common 12 4.3.6 44.0.1.el8 noarch
centos-gpg-keys 1 8 2.el8 noarch
centos-linux-repos 0 8 2.el8 noarch
filesystem 0 3.8 3.el8 x86_64
pcre2 0 10.32 2.el8 x86_64
ncurses-libs 0 6.1 7.20180224.el8 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
crypto-policies 0 20210209 1.gitbfb6bed.el8_3 noarch (none)
python3-pip-wheel 0 9.0.3 19.el8 noarch (none)
ncurses-base 0 6.1 7.20180224.el8 noarch (none)
dnf-data 0 4.4.2 11.el8 noarch (none)
dhcp-common 12 4.3.6 44.0.1.el8 noarch (none)
centos-gpg-keys 1 8 2.el8 noarch (none)
centos-linux-repos 0 8 2.el8 noarch (none)
filesystem 0 3.8 3.el8 x86_64 (none)
pcre2 0 10.32 2.el8 x86_64 (none)
ncurses-libs 0 6.1 7.20180224.el8 x86_64 (none)
...

Alma

8

$ cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.7 (Stone Smilodon)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.7 (Stone Smilodon)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.7"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
libgcc (none) 8.5.0 16.el8_7.alma x86_64
python3-setuptools-wheel (none) 39.2.0 6.el8_7.1 noarch
tzdata (none) 2022g 1.el8 noarch
libreport-filesystem (none) 2.9.5 15.el8.alma.1 x86_64
almalinux-release (none) 8.7 3.el8 x86_64
filesystem (none) 3.8 6.el8 x86_64
pcre2 (none) 10.32 3.el8_6 x86_64
ncurses-libs (none) 6.1 9.20180224.el8 x86_64
glibc-common (none) 2.28 211.el8 x86_64
bash (none) 4.4.20 4.el8_6 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
libgcc 0 8.5.0 16.el8_7.alma x86_64
python3-setuptools-wheel 0 39.2.0 6.el8_7.1 noarch
tzdata 0 2022g 1.el8 noarch
libreport-filesystem 0 2.9.5 15.el8.alma.1 x86_64
almalinux-release 0 8.7 3.el8 x86_64
filesystem 0 3.8 6.el8 x86_64
pcre2 0 10.32 3.el8_6 x86_64
ncurses-libs 0 6.1 9.20180224.el8 x86_64
glibc-common 0 2.28 211.el8 x86_64
bash 0 4.4.20 4.el8_6 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
libgcc 0 8.5.0 16.el8_7.alma x86_64 (none)
python3-setuptools-wheel 0 39.2.0 6.el8_7.1 noarch (none)
tzdata 0 2022g 1.el8 noarch (none)
libreport-filesystem 0 2.9.5 15.el8.alma.1 x86_64 (none)
almalinux-release 0 8.7 3.el8 x86_64 (none)
filesystem 0 3.8 6.el8 x86_64 (none)
pcre2 0 10.32 3.el8_6 x86_64 (none)
ncurses-libs 0 6.1 9.20180224.el8 x86_64 (none)
glibc-common 0 2.28 211.el8 x86_64 (none)
bash 0 4.4.20 4.el8_6 x86_64 (none)
...

Rocky

8

$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.7 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.7 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.7"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
crypto-policies (none) 20211116 1.gitae470d6.el8 noarch
python3-pip-wheel (none) 9.0.3 22.el8.rocky.0 noarch
rocky-gpg-keys (none) 8.7 1.2.el8 noarch
rocky-repos (none) 8.7 1.2.el8 noarch
filesystem (none) 3.8 6.el8 x86_64
ncurses-base (none) 6.1 9.20180224.el8 noarch
libselinux (none) 2.9 6.el8 x86_64
glibc-minimal-langpack (none) 2.28 211.el8 x86_64
glibc (none) 2.28 211.el8 x86_64
libsepol (none) 2.9 3.el8 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
crypto-policies 0 20211116 1.gitae470d6.el8 noarch
python3-pip-wheel 0 9.0.3 22.el8.rocky.0 noarch
rocky-gpg-keys 0 8.7 1.2.el8 noarch
rocky-repos 0 8.7 1.2.el8 noarch
filesystem 0 3.8 6.el8 x86_64
ncurses-base 0 6.1 9.20180224.el8 noarch
libselinux 0 2.9 6.el8 x86_64
glibc-minimal-langpack 0 2.28 211.el8 x86_64
glibc 0 2.28 211.el8 x86_64
libsepol 0 2.9 3.el8 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
crypto-policies 0 20211116 1.gitae470d6.el8 noarch (none)
python3-pip-wheel 0 9.0.3 22.el8.rocky.0 noarch (none)
rocky-gpg-keys 0 8.7 1.2.el8 noarch (none)
rocky-repos 0 8.7 1.2.el8 noarch (none)
filesystem 0 3.8 6.el8 x86_64 (none)
ncurses-base 0 6.1 9.20180224.el8 noarch (none)
libselinux 0 2.9 6.el8 x86_64 (none)
glibc-minimal-langpack 0 2.28 211.el8 x86_64 (none)
glibc 0 2.28 211.el8 x86_64 (none)
libsepol 0 2.9 3.el8 x86_64 (none)
...

Oracle

5

$ cat /etc/oracle-release 
Oracle Linux Server release 5.11

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
filesystem (none) 2.4.0 3.0.1.el5 x86_64
termcap 1 5.5 1.20060701.1 noarch
glibc (none) 2.5 123.0.1.el5_11.3 x86_64
audit-libs (none) 1.8 2.0.1.el5 x86_64
bzip2-libs (none) 1.0.3 6.el5_5 x86_64
ncurses (none) 5.5 24.20060715 x86_64
nss (none) 3.21.3 2.el5_11 x86_64
redhat-release 1 5Server 5.11.0.2.0.1 x86_64
expat (none) 1.95.8 11.el5_8 x86_64
pcre (none) 6.6 9.el5 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
error: incorrect format: unknown tag
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

6

$ cat /etc/os-release
NAME="Oracle Linux Server" 
VERSION="6.10" 
ID="ol" 
VERSION_ID="6.10" 
PRETTY_NAME="Oracle Linux Server 6.10"
ANSI_COLOR="0;31" 
CPE_NAME="cpe:/o:oracle:linux:6:10:server"
HOME_URL="https://linux.oracle.com/" 
BUG_REPORT_URL="https://bugzilla.oracle.com/" 

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 6" 
ORACLE_BUGZILLA_PRODUCT_VERSION=6.10 
ORACLE_SUPPORT_PRODUCT="Oracle Linux" 
ORACLE_SUPPORT_PRODUCT_VERSION=6.10

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
filesystem (none) 2.4.30 3.el6 x86_64
redhat-release-server 1 6Server 6.10.0.12.0.1.el6 x86_64
glibc (none) 2.12 1.212.0.3.el6_10.3 x86_64
nss-util (none) 3.44.0 1.el6_10 x86_64
info (none) 4.13a 8.el6 x86_64
db4 (none) 4.7.25 22.0.1.el6 x86_64
sed (none) 4.2.1 10.el6 x86_64
readline (none) 6.0 4.el6 x86_64
lua (none) 5.1.4 4.1.el6 x86_64
libgpg-error (none) 1.7 4.el6 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
filesystem 0 2.4.30 3.el6 x86_64
redhat-release-server 1 6Server 6.10.0.12.0.1.el6 x86_64
glibc 0 2.12 1.212.0.3.el6_10.3 x86_64
nss-util 0 3.44.0 1.el6_10 x86_64
info 0 4.13a 8.el6 x86_64
db4 0 4.7.25 22.0.1.el6 x86_64
sed 0 4.2.1 10.el6 x86_64
readline 0 6.0 4.el6 x86_64
lua 0 5.1.4 4.1.el6 x86_64
libgpg-error 0 1.7 4.el6 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

8

$ cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.7"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.7"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:7:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.7
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.7

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
libgcc (none) 8.5.0 16.0.2.el8_7 x86_64
tzdata (none) 2023c 1.el8 noarch
python3-pip-wheel (none) 9.0.3 22.el8 noarch
publicsuffix-list-dafsa (none) 20180723 1.el8 noarch
pcre2 (none) 10.32 3.el8_6 x86_64
setup (none) 2.12.2 7.el8 noarch
basesystem (none) 11 5.el8 noarch
libselinux (none) 2.9 6.el8 x86_64
glibc-langpack-en (none) 2.28 211.0.1.el8 x86_64
glibc (none) 2.28 211.0.1.el8 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
libgcc 0 8.5.0 16.0.2.el8_7 x86_64
tzdata 0 2023c 1.el8 noarch
python3-pip-wheel 0 9.0.3 22.el8 noarch
publicsuffix-list-dafsa 0 20180723 1.el8 noarch
pcre2 0 10.32 3.el8_6 x86_64
setup 0 2.12.2 7.el8 noarch
basesystem 0 11 5.el8 noarch
libselinux 0 2.9 6.el8 x86_64
glibc-langpack-en 0 2.28 211.0.1.el8 x86_64
glibc 0 2.28 211.0.1.el8 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
libgcc 0 8.5.0 16.0.2.el8_7 x86_64 (none)
tzdata 0 2023c 1.el8 noarch (none)
python3-pip-wheel 0 9.0.3 22.el8 noarch (none)
publicsuffix-list-dafsa 0 20180723 1.el8 noarch (none)
pcre2 0 10.32 3.el8_6 x86_64 (none)
setup 0 2.12.2 7.el8 noarch (none)
basesystem 0 11 5.el8 noarch (none)
libselinux 0 2.9 6.el8 x86_64 (none)
glibc-langpack-en 0 2.28 211.0.1.el8 x86_64 (none)
glibc 0 2.28 211.0.1.el8 x86_64 (none)
...

Fedora

29

$ cat /etc/os-release
NAME=Fedora
VERSION="29 (Container Image)"
ID=fedora
VERSION_ID=29
VERSION_CODENAME=""
PLATFORM_ID="platform:f29"
PRETTY_NAME="Fedora 29 (Container Image)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:29"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=29
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=29
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Container Image"
VARIANT_ID=container

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
whois-nls (none) 5.4.1 1.fc29 noarch
python-pip-wheel (none) 18.1 1.fc29 noarch
dnf-data (none) 4.1.0 1.fc29 noarch
fedora-release (none) 29 7 noarch
setup (none) 2.12.1 1.fc29 noarch
basesystem (none) 11 6.fc29 noarch
publicsuffix-list-dafsa (none) 20180723 1.fc29 noarch
pcre2 (none) 10.32 8.fc29 x86_64
ncurses-libs (none) 6.1 8.20180923.fc29 x86_64
glibc-common (none) 2.28 26.fc29 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
whois-nls 0 5.4.1 1.fc29 noarch
python-pip-wheel 0 18.1 1.fc29 noarch
dnf-data 0 4.1.0 1.fc29 noarch
fedora-release 0 29 7 noarch
setup 0 2.12.1 1.fc29 noarch
basesystem 0 11 6.fc29 noarch
publicsuffix-list-dafsa 0 20180723 1.fc29 noarch
pcre2 0 10.32 8.fc29 x86_64
ncurses-libs 0 6.1 8.20180923.fc29 x86_64
glibc-common 0 2.28 26.fc29 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag: "MODULARITYLABEL"
...

30

$ cat /etc/os-release
NAME=Fedora
VERSION="30 (Container Image)"
ID=fedora
VERSION_ID=30
VERSION_CODENAME=""
PLATFORM_ID="platform:f30"
PRETTY_NAME="Fedora 30 (Container Image)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:30"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f30/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Container Image"
VARIANT_ID=container

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
whois-nls (none) 5.5.5 1.fc30 noarch
systemd-rpm-macros (none) 241 12.git323cdf4.fc30 noarch
libssh-config (none) 0.9.3 1.fc30 noarch
dnf-data (none) 4.2.17 1.fc30 noarch
fedora-release-container (none) 30 6 noarch
fedora-release-common (none) 30 6 noarch
filesystem (none) 3.10 1.fc30 x86_64
coreutils-common (none) 8.31 6.fc30 x86_64
ncurses-base (none) 6.1 10.20180923.fc30 noarch
libselinux (none) 2.9 3.1.fc30 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
whois-nls 0 5.5.5 1.fc30 noarch
systemd-rpm-macros 0 241 12.git323cdf4.fc30 noarch
libssh-config 0 0.9.3 1.fc30 noarch
dnf-data 0 4.2.17 1.fc30 noarch
fedora-release-container 0 30 6 noarch
fedora-release-common 0 30 6 noarch
filesystem 0 3.10 1.fc30 x86_64
coreutils-common 0 8.31 6.fc30 x86_64
ncurses-base 0 6.1 10.20180923.fc30 noarch
libselinux 0 2.9 3.1.fc30 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
whois-nls 0 5.5.5 1.fc30 noarch (none)
systemd-rpm-macros 0 241 12.git323cdf4.fc30 noarch (none)
libssh-config 0 0.9.3 1.fc30 noarch (none)
dnf-data 0 4.2.17 1.fc30 noarch (none)
fedora-release-container 0 30 6 noarch (none)
fedora-release-common 0 30 6 noarch (none)
filesystem 0 3.10 1.fc30 x86_64 (none)
coreutils-common 0 8.31 6.fc30 x86_64 (none)
ncurses-base 0 6.1 10.20180923.fc30 noarch (none)
libselinux 0 2.9 3.1.fc30 x86_64 (none)

Amazon

1

$ cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
basesystem (none) 10.0 4.9.amzn1 noarch
nss-softokn-freebl (none) 3.53.1 6.46.amzn1 x86_64
nspr (none) 4.25.0 2.45.amzn1 x86_64
libselinux (none) 2.1.10 3.22.amzn1 x86_64
db4 (none) 4.7.25 18.11.amzn1 x86_64
readline (none) 6.2 9.14.amzn1 x86_64
libacl (none) 2.2.49 6.11.amzn1 x86_64
libxml2 (none) 2.9.1 6.4.41.amzn1 x86_64
libassuan (none) 2.0.3 3.3.amzn1 x86_64
p11-kit (none) 0.18.5 2.3.amzn1 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
basesystem 0 10.0 4.9.amzn1 noarch
nss-softokn-freebl 0 3.53.1 6.46.amzn1 x86_64
nspr 0 4.25.0 2.45.amzn1 x86_64
libselinux 0 2.1.10 3.22.amzn1 x86_64
db4 0 4.7.25 18.11.amzn1 x86_64
readline 0 6.2 9.14.amzn1 x86_64
libacl 0 2.2.49 6.11.amzn1 x86_64
libxml2 0 2.9.1 6.4.41.amzn1 x86_64
libassuan 0 2.0.3 3.3.amzn1 x86_64
p11-kit 0 0.18.5 2.3.amzn1 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

2

$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
tzdata (none) 2022a 1.amzn2 noarch
basesystem (none) 10.0 7.amzn2.0.1 noarch
glibc (none) 2.26 58.amzn2 x86_64
pcre (none) 8.32 17.amzn2.0.2 x86_64
info (none) 5.1 5.amzn2 x86_64
xz-libs (none) 5.2.2 1.amzn2.0.3 x86_64
libcap (none) 2.54 1.amzn2.0.1 x86_64
libgpg-error (none) 1.12 3.amzn2.0.3 x86_64
libattr (none) 2.4.46 12.amzn2.0.2 x86_64
libxml2 (none) 2.9.1 6.amzn2.5.4 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
tzdata 0 2022a 1.amzn2 noarch
basesystem 0 10.0 7.amzn2.0.1 noarch
glibc 0 2.26 58.amzn2 x86_64
pcre 0 8.32 17.amzn2.0.2 x86_64
info 0 5.1 5.amzn2 x86_64
xz-libs 0 5.2.2 1.amzn2.0.3 x86_64
libcap 0 2.54 1.amzn2.0.1 x86_64
libgpg-error 0 1.12 3.amzn2.0.3 x86_64
libattr 0 2.4.46 12.amzn2.0.2 x86_64
libxml2 0 2.9.1 6.amzn2.5.4 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
error: incorrect format: unknown tag
...

2022

$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2022"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2022"
PLATFORM_ID="platform:al2022"
PRETTY_NAME="Amazon Linux 2022"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2022"
HOME_URL="https://amazonlinux.com/"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
tzdata (none) 2022a 1.amzn2022 noarch
libreport-filesystem (none) 2.15.2 2.amzn2022 noarch
python3-setuptools-wheel (none) 59.6.0 2.amzn2022.0.1 noarch
pcre2-syntax (none) 10.40 1.amzn2022 noarch
ncurses-libs (none) 6.2 4.20200222.amzn2022 x86_64
setup (none) 2.13.7 3.amzn2022 noarch
basesystem (none) 11 11.amzn2022 noarch
glibc-minimal-langpack (none) 2.34 38.amzn2022.0.2 x86_64
glibc (none) 2.34 38.amzn2022.0.2 x86_64
xz-libs (none) 5.2.5 9.amzn2022 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
tzdata 0 2022a 1.amzn2022 noarch
libreport-filesystem 0 2.15.2 2.amzn2022 noarch
python3-setuptools-wheel 0 59.6.0 2.amzn2022.0.1 noarch
pcre2-syntax 0 10.40 1.amzn2022 noarch
ncurses-libs 0 6.2 4.20200222.amzn2022 x86_64
setup 0 2.13.7 3.amzn2022 noarch
basesystem 0 11 11.amzn2022 noarch
glibc-minimal-langpack 0 2.34 38.amzn2022.0.2 x86_64
glibc 0 2.34 38.amzn2022.0.2 x86_64
xz-libs 0 5.2.5 9.amzn2022 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
tzdata 0 2022a 1.amzn2022 noarch (none)
libreport-filesystem 0 2.15.2 2.amzn2022 noarch (none)
python3-setuptools-wheel 0 59.6.0 2.amzn2022.0.1 noarch (none)
pcre2-syntax 0 10.40 1.amzn2022 noarch (none)
ncurses-libs 0 6.2 4.20200222.amzn2022 x86_64 (none)
setup 0 2.13.7 3.amzn2022 noarch (none)
basesystem 0 11 11.amzn2022 noarch (none)
glibc-minimal-langpack 0 2.34 38.amzn2022.0.2 x86_64 (none)
glibc 0 2.34 38.amzn2022.0.2 x86_64 (none)
xz-libs 0 5.2.5 9.amzn2022 x86_64 (none)
...

2023

$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01"

// old
$ rpm -qa --queryformat "%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{ARCH}\n"
tzdata (none) 2022g 1.amzn2023.0.1 noarch
pcre2-syntax (none) 10.40 1.amzn2023.0.2 noarch
dnf-data (none) 4.12.0 2.amzn2023.0.4 noarch
ncurses-libs (none) 6.2 4.20200222.amzn2023.0.3 x86_64
system-release (none) 2023.0.20230315 1.amzn2023 noarch
filesystem (none) 3.14 5.amzn2023.0.3 x86_64
bash (none) 5.2.15 1.amzn2023.0.2 x86_64
glibc-minimal-langpack (none) 2.34 52.amzn2023.0.2 x86_64
zlib (none) 1.2.11 33.amzn2023.0.4 x86_64
bzip2-libs (none) 1.0.8 6.amzn2023.0.2 x86_64
...

// newer
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH}\n"
tzdata 0 2022g 1.amzn2023.0.1 noarch
pcre2-syntax 0 10.40 1.amzn2023.0.2 noarch
dnf-data 0 4.12.0 2.amzn2023.0.4 noarch
ncurses-libs 0 6.2 4.20200222.amzn2023.0.3 x86_64
system-release 0 2023.0.20230315 1.amzn2023 noarch
filesystem 0 3.14 5.amzn2023.0.3 x86_64
bash 0 5.2.15 1.amzn2023.0.2 x86_64
glibc-minimal-langpack 0 2.34 52.amzn2023.0.2 x86_64
zlib 0 1.2.11 33.amzn2023.0.4 x86_64
bzip2-libs 0 1.0.8 6.amzn2023.0.2 x86_64
...

// modularity
$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n"
tzdata 0 2022g 1.amzn2023.0.1 noarch (none)
pcre2-syntax 0 10.40 1.amzn2023.0.2 noarch (none)
dnf-data 0 4.12.0 2.amzn2023.0.4 noarch (none)
ncurses-libs 0 6.2 4.20200222.amzn2023.0.3 x86_64 (none)
system-release 0 2023.0.20230315 1.amzn2023 noarch (none)
filesystem 0 3.14 5.amzn2023.0.3 x86_64 (none)
bash 0 5.2.15 1.amzn2023.0.2 x86_64 (none)
glibc-minimal-langpack 0 2.34 52.amzn2023.0.2 x86_64 (none)
zlib 0 1.2.11 33.amzn2023.0.4 x86_64 (none)
bzip2-libs 0 1.0.8 6.amzn2023.0.2 x86_64 (none)
...

@MaineK00n MaineK00n force-pushed the MaineK00n/add-modularitylabel-to-package branch from 9d6993a to 3d1c003 Compare May 15, 2024 16:50
@MaineK00n MaineK00n force-pushed the MaineK00n/add-modularitylabel-to-package branch from 3d1c003 to 7249d12 Compare May 15, 2024 16:53
@MaineK00n MaineK00n merged commit 61c3963 into master May 15, 2024
7 checks passed
@MaineK00n MaineK00n deleted the MaineK00n/add-modularitylabel-to-package branch May 15, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failed to get modularitylabel on RedHat
2 participants