{"id":1469,"date":"2011-11-18T11:57:56","date_gmt":"2011-11-18T15:57:56","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1469"},"modified":"2013-03-20T08:44:20","modified_gmt":"2013-03-20T12:44:20","slug":"rpm-remove-error-specifies-multiple-packages","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/rpm-remove-error-specifies-multiple-packages","title":{"rendered":"RPM remove error: specifies multiple packages"},"content":{"rendered":"<p>You may receive an error message <strong>&#8220;error: packagename specifies multiple packages&#8221;<\/strong> while removing a package with &#8220;rpm -e package-name&#8221;, for example:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rpm -e mysql-devel<\/span>\r\n<span style=\"color: #0000ff;\">error: \"mysql-devel\" specifies multiple packages<\/span><\/pre>\n<\/blockquote>\n<p>This is because the <strong>packages of both the architectures\u00a0(32 and 64 bit) are installed<\/strong>\u00a0 on the server i.e.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">mysql-devel.i386<\/span>\r\n<span style=\"color: #0000ff;\">mysql-devel.x86_64<\/span><\/pre>\n<\/blockquote>\n<p>CentOS, Fedora will list the duplicate packages when you query them using RPM. It won&#8217;t list the architecture i.e.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rpm -qa mysql-devel<\/span>\r\n<span style=\"color: #0000ff;\">mysql-devel<\/span>\r\n<span style=\"color: #0000ff;\">mysql-devel<\/span><\/pre>\n<\/blockquote>\n<p>To list the packages along with their architecture, use the<strong> &#8211;queryformat <\/strong>option while querying the package,<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rpm -q --queryformat \"%{name}.%{arch}\\n\" mysql-devel<\/span>\r\n<span style=\"color: #0000ff;\">mysql-devel.i386<\/span>\r\n<span style=\"color: #0000ff;\">mysql-devel.x86_64<\/span><\/pre>\n<\/blockquote>\n<p>Now, remove the package you wish to, for example 32 bit package:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># rpm -e mysql-devel.i386<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>You may receive an error message &#8220;error: packagename specifies multiple packages&#8221; while removing a package with &#8220;rpm -e package-name&#8221;, for example:<\/p>\n<p># rpm -e mysql-devel<br \/>\nerror: &#8220;mysql-devel&#8221; specifies multiple packages<\/p>\n<p>This is because the packages of both the architectures\u00a0(32 and 64 bit) are installed\u00a0 on the server i.e.<\/p>\n<p>mysql-devel.i386<br \/>\nmysql-devel.x86_64<\/p>\n<p>CentOS, Fedora will list the duplicate packages when you query them using RPM. It won&#8217;t list the architecture i.e.<\/p>\n<p># rpm -qa mysql-devel<br \/>\nmysql-devel<br \/>\nmysql-devel<\/p>\n<p>To list the packages along with their architecture, use the &#8211;queryformat option while querying the package,<\/p>\n<p># rpm -q &#8211;queryformat &#8220;%{name}.%{arch}\\n&#8221; mysql-devel<br \/>\nmysql-devel.i386<br \/>\nmysql-devel.x86_64<\/p>\n<p>Now, remove the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1318,1320,1317,1319,1316],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1469"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1469"}],"version-history":[{"count":8,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1469\/revisions"}],"predecessor-version":[{"id":2283,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1469\/revisions\/2283"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}