<p dir="auto">Upgrading 1.7.1 to 1.7.2 with RPM causes postun script failed.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ sudo rpm -Uvh elasticsearch-1.7.2.noarch.rpm 
warning: elasticsearch-1.7.2.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID d88e42b4: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:elasticsearch-1.7.2-1            ################################# [ 50%]
Cleaning up / removing...
   2:elasticsearch-1.7.1-1            ################################# [100%]
post remove script called with unknown argument `1'
warning: %postun(elasticsearch-1.7.1-1.noarch) scriptlet failed, exit status 1"><pre class="notranslate">$ sudo rpm -Uvh elasticsearch-1.7.2.noarch.rpm 
warning: elasticsearch-1.7.2.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID d88e42b4: NOKEY
Preparing...                          <span class="pl-c"><span class="pl-c">#</span>################################ [100%]</span>
Updating / installing...
   1:elasticsearch-1.7.2-1            <span class="pl-c"><span class="pl-c">#</span>################################ [ 50%]</span>
Cleaning up / removing...
   2:elasticsearch-1.7.1-1            <span class="pl-c"><span class="pl-c">#</span>################################ [100%]</span>
post remove script called with unknown argument <span class="pl-s"><span class="pl-pds">`</span>1<span class="pl-s"><span class="pl-pds">'</span></span></span>
<span class="pl-s"><span class="pl-s">warning: %postun(elasticsearch-1.7.1-1.noarch) scriptlet failed, exit status 1</span></span></pre></div>
<p dir="auto">My environment is here.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: AmazonAMI
Description:    Amazon Linux AMI release 2015.03
Release:    2015.03
Codename:   n/a
$ rpm --version
RPM version 4.11.2"><pre class="notranslate">$ lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: AmazonAMI
Description:    Amazon Linux AMI release 2015.03
Release:    2015.03
Codename:   n/a
$ rpm --version
RPM version 4.11.2</pre></div>
<p dir="auto">From <a href="https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693" rel="nofollow">https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ESVERSION=1.7.1
$ package=elasticsearch-$ESVERSION.noarch.rpm &amp;&amp; wget https://download.elasticsearch.org/elasticsearch/elasticsearch/$package -O /tmp/$package &amp;&amp; sudo rpm -Uvh /tmp/$package
--2015-08-02 20:27:24--  https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.1.noarch.rpm
Resolving download.elasticsearch.org... 174.129.211.252, 174.129.224.133, 23.21.179.119, ...
Connecting to download.elasticsearch.org|174.129.211.252|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27323419 (26M) [application/x-redhat-package-manager]
Saving to: “/tmp/elasticsearch-1.7.1.noarch.rpm”

100%[===================================================&gt;] 27,323,419  8.56M/s   in 3.0s

2015-08-02 20:27:27 (8.56 MB/s) - “/tmp/elasticsearch-1.7.1.noarch.rpm” saved [27323419/27323419]

warning: /tmp/elasticsearch-1.7.1.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID d88e42b4: NOKEY
Preparing...                ########################################### [100%]
   1:elasticsearch          ########################################### [100%]
post remove script called with unknown argument `1'
warning: %postun(elasticsearch-1.7.0-1.noarch) scriptlet failed, exit status 1"><pre class="notranslate"><code class="notranslate">$ ESVERSION=1.7.1
$ package=elasticsearch-$ESVERSION.noarch.rpm &amp;&amp; wget https://download.elasticsearch.org/elasticsearch/elasticsearch/$package -O /tmp/$package &amp;&amp; sudo rpm -Uvh /tmp/$package
--2015-08-02 20:27:24--  https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.1.noarch.rpm
Resolving download.elasticsearch.org... 174.129.211.252, 174.129.224.133, 23.21.179.119, ...
Connecting to download.elasticsearch.org|174.129.211.252|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27323419 (26M) [application/x-redhat-package-manager]
Saving to: “/tmp/elasticsearch-1.7.1.noarch.rpm”

100%[===================================================&gt;] 27,323,419  8.56M/s   in 3.0s

2015-08-02 20:27:27 (8.56 MB/s) - “/tmp/elasticsearch-1.7.1.noarch.rpm” saved [27323419/27323419]

warning: /tmp/elasticsearch-1.7.1.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID d88e42b4: NOKEY
Preparing...                ########################################### [100%]
   1:elasticsearch          ########################################### [100%]
post remove script called with unknown argument `1'
warning: %postun(elasticsearch-1.7.0-1.noarch) scriptlet failed, exit status 1
</code></pre></div>
<p dir="auto">Reported on Centos 6 and RHEL 6.6.</p>