{"id":777,"date":"2012-10-14T17:56:09","date_gmt":"2012-10-14T17:56:09","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=777"},"modified":"2012-10-14T17:57:27","modified_gmt":"2012-10-14T17:57:27","slug":"rpm-e-specifies-multiple-packages","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=777","title":{"rendered":"rpm -e specifies multiple packages"},"content":{"rendered":"<p>I had this problem with libxml2 on CentOS 5, turns out a version for both arch&#8217;s was installed,<br \/>\n<a href=\"http:\/\/hacktux.com\/rpm\/error\/specifies\/multiple\/packages\">this post solved it<\/a> for me<\/p>\n<blockquote><p>Running into this?<\/p>\n<p>bash$ sudo rpm -e zlib-devel<br \/>\nerror: &#8220;zlib-devel&#8221; specifies multiple packages<\/p>\n<p>This is because zlib-devel.i386 and zlib-devel.x86_64 are both installed. It is possible to remove them individually:<\/p>\n<p>bash$ sudo rpm -e zlib-devel.i386<br \/>\nbash$ sudo rpm -e zlib-devel.x86_64<\/p>\n<p>By default, Fedora, CentOS and RedHat shells do not specify the architecture of an RPM in the query format. This can lead to duplicate entries from queries:<\/p>\n<p>bash$ rpm -q zlib-devel<br \/>\nzlib-devel-1.2.3-14.fc8<br \/>\nzlib-devel-1.2.3-14.fc8<\/p>\n<p>You can use the &#8211;queryformat switch when running rpm -q, or configure the query format setting in ~\/.rpmmacros.<\/p>\n<p>bash$ rpm -q &#8211;queryformat &#8220;%{name}.%{arch}\\n&#8221; zlib-devel<br \/>\nzlib-devel.i386<br \/>\nzlib-devel.x86_64<\/p>\n<p>bash$ cat ~\/.rpmmacros<br \/>\n%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}<\/p>\n<p>bash$ rpm -q zlib-devel<br \/>\nzlib-devel-1.2.3-14.fc8.i386<br \/>\nzlib-devel-1.2.3-14.fc8.x86_64<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I had this problem with libxml2 on CentOS 5, turns out a version for both arch&#8217;s was installed, this post solved it for me Running into this? bash$ sudo rpm -e zlib-devel error: &#8220;zlib-devel&#8221; specifies multiple packages This is because &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=777\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/777"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=777"}],"version-history":[{"count":3,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions\/782"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}