{"id":265,"date":"2021-07-23T12:26:51","date_gmt":"2021-07-23T12:26:51","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/the-rpm-versions-file\/"},"modified":"2021-07-23T12:26:51","modified_gmt":"2021-07-23T12:26:51","slug":"the-rpm-versions-file","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/the-rpm-versions-file\/","title":{"rendered":"The rpm.versions File"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>The <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file contains all of the cPanel-provided settings for the rpm.versions system. We provide these settings based on the version of cPanel &#038; WHM that your server runs. Your server automatically updates this file whenever cPanel &#038; WHM updates.<\/p>\n<p>The system stores the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file in the YAML format. The sections below describe each of the file\u2019s headers and their contents.<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>We strongly recommend that you <strong>never<\/strong> directly edit this file, because you will lose your changes when you perform an upgrade. Instead, use the <code>\/var\/cpanel\/rpm.versions.d\/local.versions<\/code> file to make changes.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"install-targets-target-components-and-dependencies\">install_targets \u2014 Target components and dependencies<\/h2>\n<p>The <code>install_targets<\/code> section of the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file lists each RPM target with its component RPMs and dependencies.<\/p>\n<p>Each target entry displays information in the following format:<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">3\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">4\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">5\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">6\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">7\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">rpmtarget<\/span>:\n    <span style=\"color:#a6e22e\">components<\/span>:\n      <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">component_rpm_1<\/span>\n      <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">component_rpm_2<\/span>\n    <span style=\"color:#a6e22e\">dependencies<\/span>:\n      <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">dependency_1<\/span>\n      <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">dependency_2<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<p>This example uses the following variables:<\/p>\n<ul>\n<li><code>rpmtarget<\/code> is the name of the RPM target.<\/li>\n<li><code>component_rpm_1<\/code> and <code>component_rpm_2<\/code> are RPMs that are necessary for the <code>rpmtarget<\/code> service to function properly.<\/li>\n<li><code>dependency_1<\/code> and <code>dependency_2<\/code> are additional RPMs on which the component RPMs are dependent.<\/li>\n<\/ul>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>Instead of individual RPMs, the <code>components<\/code> and <code>dependencies<\/code> sections may also list the names of RPM groups, as the <code>rpm_groups<\/code> section of the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file defines.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"rpm-groups-rpm-groups\">rpm_groups \u2014 RPM groups<\/h2>\n<p>The <code>rpm_groups<\/code> section of the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file lists groups of RPMs under their assigned group name. In the other sections of the file, this group name represents that list of RPMs, which eliminates the need for repetitive lists of frequently-used RPM names.<\/p>\n<p>Each group entry appears in the following format:<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">3\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">groupname<\/span>:\n    <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">grouped_rpm_1<\/span>\n    <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">grouped_rpm_2<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<p>This example uses the followng variables:<\/p>\n<ul>\n<li><code>groupname<\/code> is the name of the RPM group.<\/li>\n<li><code>grouped_rpm_1<\/code> and <code>grouped_rpm_2<\/code> are the names of individual RPMs that are part of the group.<\/li>\n<\/ul>\n<h2 id=\"rpm-locations-rpm-file-locations\">rpm_locations \u2014 RPM file locations<\/h2>\n<p>The <code>rpm_locations<\/code> section of the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file specifies which URL template the rpm.versions system uses to find that target\u2019s RPMs.<\/p>\n<p>Each file location entry appears in the following format:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">RPM: template<\/code><\/pre>\n<\/div>\n<p>This example uses the following variables:<\/p>\n<ul>\n<li><code>RPM<\/code> is the name of the RPM.<\/li>\n<li><code>template<\/code> is the name of the URL template, as the file\u2019s <code>url_templates<\/code> section specifies.<\/li>\n<\/ul>\n<h2 id=\"srpm-sub-packages-source-rpm-information\">srpm_sub_packages \u2014 Source RPM information<\/h2>\n<p>The <code>srpm_sub_packages<\/code> section of the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file specifies a list of Source RPMs (SRPMs) for each RPM target.<\/p>\n<p>Each SRPM entry appears in the following format:<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">3\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">4\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">rpmtarget<\/span>:\n    <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">srpm1<\/span>\n    <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">srpm2<\/span>\n    <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">srpm3<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<p>This example uses the following variables:<\/p>\n<ul>\n<li><code>rpmtarget<\/code> is the name of the RPM target.<\/li>\n<li><code>srpm1<\/code>, <code>srpm2<\/code>, and <code>srpm3<\/code> are the names of the target\u2019s SRPMs.<\/li>\n<\/ul>\n<h2 id=\"srpm-versions-source-rpm-versions\">srpm_versions \u2014 Source RPM versions<\/h2>\n<p>The <code>srpm_versions<\/code> section of the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file specifies the exact version number for each RPM target.<\/p>\n<p>Each SRPM version entry appears in the following format:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">rpmtarget: version-revision.distribution<\/code><\/pre>\n<\/div>\n<p>In this example:<\/p>\n<ul>\n<li><code>rpmtarget<\/code> is the name of the RPM target.<\/li>\n<li><code>version<\/code> is the exact version number.<\/li>\n<li><code>revision<\/code> is the revision number for the RPM.<\/li>\n<li><code>distribution<\/code> corresponds to the major version of cPanel &#038; WHM with which this version was released.<\/li>\n<\/ul>\n<p>For example, the SRPM version for the <code>MySQL56<\/code> target appears similar to the following example:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">MySQL56: <span style=\"color:#ae81ff\">5<\/span>.6.16-4.cp1142<\/code><\/pre>\n<\/div>\n<p>This example uses the following variables:<\/p>\n<ul>\n<li>The MySQL\u00ae version is <code>5.6.16<\/code>.<\/li>\n<li>The revision number is <code>4<\/code>.<\/li>\n<li>The version of cPanel &#038; WHM is version 11.42.<\/li>\n<\/ul>\n<h2 id=\"target-settings-target-installation-settings\">target_settings \u2014 Target installation settings<\/h2>\n<p>The <code>target_settings<\/code> section of the <code>\/usr\/local\/cpanel\/etc\/rpm.version<\/code> file specifies each RPM target\u2019s default installation status.<\/p>\n<p>For more information about RPM targets, read our RPM Targets documentation.<\/p>\n<h2 id=\"unsupported-rpms-unsupported-rpms\">unsupported_rpms &#8211; Unsupported RPMs<\/h2>\n<p>The <code>unsupported_rpms<\/code> section of <code>usr\/local\/cpanel\/etc\/rpm.versions<\/code> file specifies RPMs that an operating system will not install.<\/p>\n<p>The following example from cPanel &#038; WHM version 94 demonstrates this section of the file:\n<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">3\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">4\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">redhat6<\/span>:\n  <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">cpanel<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">perl<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">532<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">Linux<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">Systemd<\/span>\n<span style=\"color:#a6e22e\">redhat8<\/span>:\n  <span style=\"color:#f92672\">-<\/span> <span style=\"color:#a6e22e\">cpanel<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">perl<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">532<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">Authen<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">Libwrap<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<h2 id=\"url-templates-url-templates\">url_templates \u2014 URL templates<\/h2>\n<p>The <code>url_templates<\/code> section defines the template that the rpm.versions system uses to find specific RPM files. In the <code>\/usr\/local\/cpanel\/etc\/rpm.versions<\/code> file, all of these templates point to locations on cPanel\u2019s httpupdate server.<\/p>\n<p>Each URL template appears in one of the following formats:<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">template<\/span>: <span style=\"color:#960050;background-color:#1e0010\">'<\/span><span style=\"color:#a6e22e\">http<\/span>:<span style=\"color:#75715e\">\/\/[% httpupdate %]\/RPM\/version\/[% rpm_dist %]\/[% rpm_dist_ver %]\/[% rpm_arch %]\/[% package %]-[% package_version %]-[% package_revision %].[% rpm_arch %].rpm'\n<\/span><span style=\"color:#75715e\"><\/span><span style=\"color:#a6e22e\">noarchtemplate<\/span>: <span style=\"color:#960050;background-color:#1e0010\">'<\/span><span style=\"color:#a6e22e\">http<\/span>:<span style=\"color:#f92672\">\/\/<\/span>[<span style=\"color:#f92672\">%<\/span> <span style=\"color:#a6e22e\">httpupdate<\/span> <span style=\"color:#f92672\">%<\/span>]<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">RPM<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">version<\/span><span style=\"color:#f92672\">\/<\/span>[<span style=\"color:#f92672\">%<\/span> <span style=\"color:#a6e22e\">rpm_dist<\/span> <span style=\"color:#f92672\">%<\/span>]<span style=\"color:#f92672\">\/<\/span>[<span style=\"color:#f92672\">%<\/span> <span style=\"color:#a6e22e\">rpm_dist_ver<\/span> <span style=\"color:#f92672\">%<\/span>]<span style=\"color:#f92672\">\/<\/span>[<span style=\"color:#f92672\">%<\/span> <span style=\"color:#a6e22e\">rpm_arch<\/span> <span style=\"color:#f92672\">%<\/span>]<span style=\"color:#f92672\">\/<\/span>[<span style=\"color:#f92672\">%<\/span> <span style=\"color:#f92672\">package<\/span> <span style=\"color:#f92672\">%<\/span>]<span style=\"color:#f92672\">-<\/span>[<span style=\"color:#f92672\">%<\/span> <span style=\"color:#a6e22e\">package_version<\/span> <span style=\"color:#f92672\">%<\/span>]<span style=\"color:#f92672\">-<\/span>[<span style=\"color:#f92672\">%<\/span> <span style=\"color:#a6e22e\">package_revision<\/span> <span style=\"color:#f92672\">%<\/span>].<span style=\"color:#a6e22e\">noarch<\/span>.<span style=\"color:#a6e22e\">rpm<\/span><span style=\"color:#960050;background-color:#1e0010\">'<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<p>This example uses the following variables:<\/p>\n<ul>\n<li><code>template<\/code> and <code>noarchtemplate<\/code> are the names of RPM file location templates.<\/li>\n<li><code>httpupdate<\/code> is the hostname at which to download the RPMs.<\/li>\n<li><code>version<\/code> is the cPanel &#038; WHM major version that first contained that RPM target.<\/li>\n<li><code>rpm_dist<\/code> is the name of the system\u2019s OS distribution (for example, <code>centos<\/code>).<\/li>\n<li><code>rpm_dist_ver<\/code> is the system\u2019s OS distribution\u2019s version number (for example, <code>5<\/code>).<\/li>\n<li><code>rpm_arch<\/code> is the OS\u2019s architecture (for example, <code>i686<\/code>).<\/li>\n<li><code>package<\/code> is the name of the RPM.<\/li>\n<li><code>package_version<\/code> is the RPM version number.<\/li>\n<li><code>package_revision<\/code> is the RPM revision number.<\/li>\n<\/ul>\n<p>The presence or absence of <code>.noarch<\/code> in the RPM\u2019s location indicates differences in the RPM template, which changes how the rpm.versions system generates information, such as RPM filenames, for that RPM.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview The \/usr\/local\/cpanel\/etc\/rpm.versions file contains all of the cPanel-provided settings for the rpm.versions system. We provide these settings based on the version of cPanel &#038; WHM that your server runs. Your server automatically updates this file whenever cPanel &#038; WHM updates. The system stores the \/usr\/local\/cpanel\/etc\/rpm.versions file in the YAML format. The sections below describe &hellip;<\/p>\n","protected":false},"author":1,"featured_media":266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/265"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/266"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}