|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +//microshift_updating/microshift-list-update-contents.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="microshift-get-rpm-release-info_{context}"] |
| 7 | += Listing the contents of the {microshift-short} RPM release package |
| 8 | + |
| 9 | +To see the images included with a {microshift-short} release, you can list the contents of the `microshift-release-info` RPM by downloading and unpacking the RPM. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You are using {op-system-base-full} or an operating system with an RPM package manager. |
| 14 | +* Your {microshift-short} repositories are enabled. |
| 15 | +
|
| 16 | +.Procedure |
| 17 | + |
| 18 | +. Optional: List which versions of the {microshift-short} RPM are available for download by running the following command: |
| 19 | ++ |
| 20 | +[source,terminal] |
| 21 | +---- |
| 22 | +$ sudo dnf repoquery microshift-release-info-0:4.16.* # <1> |
| 23 | +---- |
| 24 | +<1> Replace the example value `4.16.*` with the major and minor release numbers you are interested in. |
| 25 | ++ |
| 26 | +.Example output |
| 27 | +[source,terminal] |
| 28 | +---- |
| 29 | +Updating Subscription Management repositories. |
| 30 | +microshift-release-info-0:4.16.0-202406260523.p0.gc5a37df.assembly.4.16.0.el9.noarch |
| 31 | +microshift-release-info-0:4.16.1-202406281132.p0.g8babeb9.assembly.4.16.1.el9.noarch |
| 32 | +microshift-release-info-0:4.16.10-202408291007.p0.g6e4ee4d.assembly.4.16.10.el9.noarch |
| 33 | +microshift-release-info-0:4.16.2-202407040825.p0.g2e0407e.assembly.4.16.2.el9.noarch |
| 34 | +microshift-release-info-0:4.16.3-202407111123.p0.ge4206d3.assembly.4.16.3.el9.noarch |
| 35 | +microshift-release-info-0:4.16.4-202407191908.p0.g057a9af.assembly.4.16.4.el9.noarch |
| 36 | +microshift-release-info-0:4.16.5-202407250951.p0.g0afcb57.assembly.4.16.5.el9.noarch |
| 37 | +microshift-release-info-0:4.16.6-202408010822.p0.gc4ded66.assembly.4.16.6.el9.noarch |
| 38 | +microshift-release-info-0:4.16.7-202408081107.p0.g0597bb8.assembly.4.16.7.el9.noarch |
| 39 | +microshift-release-info-0:4.16.8-202408150851.p0.gc8a3bb1.assembly.4.16.8.el9.noarch |
| 40 | +microshift-release-info-0:4.16.9-202408220842.p0.gefa92a2.assembly.4.16.9.el9.noarch |
| 41 | +---- |
| 42 | + |
| 43 | +. Download the RPM package you want by running the following command: |
| 44 | ++ |
| 45 | +-- |
| 46 | +[subs="+quotes"] |
| 47 | +[source,terminal] |
| 48 | +---- |
| 49 | +$ sudo dnf download microshift-release-info-_<release_version>_ # <1> |
| 50 | +---- |
| 51 | +<1> Replace `_<release_version>_` with the numerical value of the release you are deploying, using the entire version number, for example, `4.16.0`. |
| 52 | +-- |
| 53 | ++ |
| 54 | +-- |
| 55 | +.Example output |
| 56 | +[subs="+quotes"] |
| 57 | +[source,terminal] |
| 58 | +---- |
| 59 | +microshift-release-info-4.16.0.-202311101230.p0.g7dc6a00.assembly.4.16.0.el9.noarch.rpm # <1> |
| 60 | +---- |
| 61 | +<1> Your output should contain the date and commit ID. |
| 62 | +-- |
| 63 | + |
| 64 | +. Unpack the RPM package without installing it by running the following command: |
| 65 | ++ |
| 66 | +[subs="+quotes"] |
| 67 | +[source,terminal] |
| 68 | +---- |
| 69 | +$ rpm2cpio _<microshift_release_info>_ | cpio -idmv # <1> |
| 70 | +---- |
| 71 | +<1> Replace `_<microshift_release_info>_` with the name of the RPM package from the previous step. For example, `microshift-release-info-4.16.10-202408291007.p0.g6e4ee4d.assembly.4.16.10.el9.noarch.rpm`. |
| 72 | ++ |
| 73 | +.Example output |
| 74 | +[source,terminal] |
| 75 | +---- |
| 76 | +./usr/share/microshift |
| 77 | +./usr/share/microshift/blueprint |
| 78 | +./usr/share/microshift/blueprint/blueprint-aarch64.toml |
| 79 | +./usr/share/microshift/blueprint/blueprint-x86_64.toml |
| 80 | +./usr/share/microshift/release |
| 81 | +./usr/share/microshift/release/release-aarch64.json |
| 82 | +./usr/share/microshift/release/release-x86_64.json |
| 83 | +---- |
| 84 | +
|
| 85 | +. List the contents by running the following command: |
| 86 | ++ |
| 87 | +[source,terminal] |
| 88 | +---- |
| 89 | +$ cat ./usr/share/microshift/release/release-x86_64.json |
| 90 | +---- |
| 91 | ++ |
| 92 | +.Example output |
| 93 | +[source,terminal] |
| 94 | +---- |
| 95 | +{ |
| 96 | + "release": { |
| 97 | + "base": "4.16.10" |
| 98 | + }, |
| 99 | + "images": { |
| 100 | + "cli": ".... |
| 101 | +# ... |
| 102 | +---- |
0 commit comments