{"id":426,"date":"2013-03-04T13:29:10","date_gmt":"2013-03-04T12:29:10","guid":{"rendered":"http:\/\/blog.rabahi.net\/?page_id=426"},"modified":"2014-08-04T17:36:17","modified_gmt":"2014-08-04T15:36:17","slug":"rpm","status":"publish","type":"page","link":"https:\/\/blog.rabahi.net\/?page_id=426","title":{"rendered":"RPM"},"content":{"rendered":"<blockquote><p>Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously refers to the .rpm file format, files in this format, software packaged in such files, and the package manager itself. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the Linux Standard Base.<\/p><\/blockquote>\n<p style=\"text-align: right;\">Wikipedia<\/p>\n<h1>Objectives<\/h1>\n<ul>\n<li>Specs<\/li>\n<li>RPMBuild<\/li>\n<\/ul>\n<h1>Prerequiste<\/h1>\n<p>I assume that you have a Centos installation.<\/p>\n<h1>Installation<\/h1>\n<p>You can copy\/paste this script and use it to configure automatically your server.<\/p>\n<pre class=\"bash\" style=\"font-family:monospace;\"><ol><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#!\/bin\/bash<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;install rpmdevtools automake autoconf gcc&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">dnf <span style=\"color: #660033;\">-y<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> rpmdevtools rpmlint <span style=\"color: #c20cb9; font-weight: bold;\">automake<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">autoconf<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">gcc<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">make<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;clean rpmbuild directory&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">rm<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span> <span style=\"color: #660033;\">-fr<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#      EXAMPLE FILE : HELLO WORLD <\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;create build files&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">mkdir<\/span> <span style=\"color: #660033;\">-p<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>BUILD<span style=\"color: #000000; font-weight: bold;\">\/<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">cat<\/span> <span style=\"color: #000000; font-weight: bold;\">&gt;<\/span>~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>BUILD<span style=\"color: #000000; font-weight: bold;\">\/<\/span>Makefile.am <span style=\"color: #000000; font-weight: bold;\">&lt;&lt;<\/span> <span style=\"color: #ff0000;\">&quot;EOF&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #007800;\">bin_PROGRAMS<\/span>=hello<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #007800;\">hello_SOURCES<\/span>=hello.c<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">EOF<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">cat<\/span> <span style=\"color: #000000; font-weight: bold;\">&gt;<\/span>~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>BUILD<span style=\"color: #000000; font-weight: bold;\">\/<\/span>configure.ac <span style=\"color: #000000; font-weight: bold;\">&lt;&lt;<\/span> <span style=\"color: #ff0000;\">&quot;EOF&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">AC_INIT<span style=\"color: #7a0874; font-weight: bold;\">&#40;<\/span><span style=\"color: #7a0874; font-weight: bold;\">[<\/span>hello<span style=\"color: #7a0874; font-weight: bold;\">]<\/span>, <span style=\"color: #7a0874; font-weight: bold;\">[<\/span><span style=\"color: #000000;\">1.0<\/span><span style=\"color: #7a0874; font-weight: bold;\">]<\/span>, <span style=\"color: #7a0874; font-weight: bold;\">[<\/span>bug<span style=\"color: #000000; font-weight: bold;\">@<\/span>libhello.org<span style=\"color: #7a0874; font-weight: bold;\">]<\/span><span style=\"color: #7a0874; font-weight: bold;\">&#41;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">AM_INIT_AUTOMAKE<span style=\"color: #7a0874; font-weight: bold;\">&#40;<\/span><span style=\"color: #7a0874; font-weight: bold;\">[<\/span>-Wall <span style=\"color: #660033;\">-Werror<\/span> foreign<span style=\"color: #7a0874; font-weight: bold;\">]<\/span><span style=\"color: #7a0874; font-weight: bold;\">&#41;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">AC_PROG_CC<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">AC_PROG_RANLIB<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">AC_CONFIG_FILES<span style=\"color: #7a0874; font-weight: bold;\">&#40;<\/span><span style=\"color: #7a0874; font-weight: bold;\">[<\/span>Makefile<span style=\"color: #7a0874; font-weight: bold;\">]<\/span><span style=\"color: #7a0874; font-weight: bold;\">&#41;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">AC_OUTPUT<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">EOF<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">cat<\/span> <span style=\"color: #000000; font-weight: bold;\">&gt;<\/span>~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>BUILD<span style=\"color: #000000; font-weight: bold;\">\/<\/span>hello.c <span style=\"color: #000000; font-weight: bold;\">&lt;&lt;<\/span> <span style=\"color: #ff0000;\">&quot;EOF&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#include &lt;stdio.h&gt;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">int main<span style=\"color: #7a0874; font-weight: bold;\">&#40;<\/span>int argc, char<span style=\"color: #000000; font-weight: bold;\">*<\/span> argv<span style=\"color: #7a0874; font-weight: bold;\">[<\/span><span style=\"color: #7a0874; font-weight: bold;\">]<\/span><span style=\"color: #7a0874; font-weight: bold;\">&#41;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">&#123;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">printf<\/span><span style=\"color: #7a0874; font-weight: bold;\">&#40;<\/span><span style=\"color: #ff0000;\">&quot;Hello, world!<span style=\"color: #000099; font-weight: bold;\">\\n<\/span>&quot;<\/span><span style=\"color: #7a0874; font-weight: bold;\">&#41;<\/span>;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">return<\/span> <span style=\"color: #000000;\">0<\/span>;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">&#125;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">EOF<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\"># move to ~\/rpmbuild\/BUILD<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;move to ~\/rpmbuild\/BUILD&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">cd<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>BUILD<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\"># create macros for automake<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">aclocal<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\"># create Makefile.in from Makefile.am<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">automake<\/span> <span style=\"color: #660033;\">--add-missing<\/span> <span style=\"color: #660033;\">--copy<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\"># create configure<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">autoconf<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#      SPEC FILE <\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;create SPECS file&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">mkdir<\/span> <span style=\"color: #660033;\">-p<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>SPECS<span style=\"color: #000000; font-weight: bold;\">\/<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">cd<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>SPECS<span style=\"color: #000000; font-weight: bold;\">\/<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rpmdev-newspec hello<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;configure spec file&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^Version:\/Version:        1.0\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^Summary:\/Summary:        My newpackage rocks\\!\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^Group:\/Group:          Development\\\/Tools\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^License:\/License:        GPL\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^URL:\/URL:            http:\\\/\\\/mysite\\\/hello.html\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^Source0:\/Source0:        .\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^\\(BuildRequires:\\)\/#\\1\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^\\(Requires:\\)\/#\\1\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #ff0000;\">&quot;s\/^\\%description\/\\%description        Desc to say that my newpackage rocks\\!\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^\\(\\%prep\\)\/#\\1\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^\\(\\%doc\\)\/\\1\\<span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\\\/usr\\\/bin\\\/hello\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/^\\(\\%changelog\\)\/\\1\\<span style=\"color: #000099; font-weight: bold;\">\\n<\/span>* Tue May 06 2014 marc rabahi &lt;marc.rabahi@gmail.com&gt; 1.0-1<span style=\"color: #000099; font-weight: bold;\">\\n<\/span>- my hello world change log.\/g&quot;<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#      BUILD RPM <\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Check patches and BR&quot;<\/span>:<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">rpmbuild <span style=\"color: #660033;\">-bp<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Build&quot;<\/span>:<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rpmbuild <span style=\"color: #660033;\">-bc<\/span> <span style=\"color: #660033;\">--short-circuit<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Package %files&quot;<\/span>:<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">rpmbuild <span style=\"color: #660033;\">-bi<\/span> <span style=\"color: #660033;\">--short-circuit<\/span> hello.spec<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Finally build rpm&quot;<\/span>:<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rpmbuild <span style=\"color: #660033;\">-ba<\/span> hello.spec<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#      CHECK RPM <\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Now check commons errors in RPM packages (rpm software, sources rpm)&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rpmlint ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>RPMS<span style=\"color: #000000; font-weight: bold;\">\/<\/span>x86_64<span style=\"color: #000000; font-weight: bold;\">\/<\/span>hello-<span style=\"color: #000000;\">1.0<\/span>-<span style=\"color: #000000;\">1<\/span>.el7.centos.x86_64.rpm<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">rpmlint ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rpmbuild<span style=\"color: #000000; font-weight: bold;\">\/<\/span>SRPMS<span style=\"color: #000000; font-weight: bold;\">\/<\/span>hello-<span style=\"color: #000000;\">1.0<\/span>-<span style=\"color: #000000;\">1<\/span>.el7.centos.src.rpm<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><\/ol><\/pre>\n<p>That&#8217;s all \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously refers to the .rpm file format, files in this format, software packaged in such files, and the package manager itself. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":403,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-426","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=426"}],"version-history":[{"count":21,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/426\/revisions"}],"predecessor-version":[{"id":1024,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/426\/revisions\/1024"}],"up":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/403"}],"wp:attachment":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}