{"id":3017,"date":"2018-03-05T20:23:33","date_gmt":"2018-03-06T01:23:33","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=3017"},"modified":"2018-03-24T20:44:39","modified_gmt":"2018-03-25T01:44:39","slug":"extracting-rpm-packages","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=3017","title":{"rendered":"Extracting RPM Packages"},"content":{"rendered":"<p>I&#8217;ve encountered a few scenarios of late where I couldn&#8217;t install an RPM package but needed its content. One is the security config at work where I have sudo access for cp but not install rights. Sigh! But more recently, I needed to compare a library from an updated package to the currently installed one. Listing package content confirms it is the same file name and path.<\/p>\n<pre>[root@fedora02 tmp]# rpm -q --filesbypkg -p .\/mariadb-libs-10.2.13-2.fc27.i686.rpm\r\nmariadb-libs              \/etc\/my.cnf.d\/client.cnf\r\nmariadb-libs              \/usr\/lib\/.build-id\r\nmariadb-libs              \/usr\/lib\/.build-id\/7c\r\nmariadb-libs              \/usr\/lib\/.build-id\/7c\/c8e65deafbdcc28b3089da60f295a6f757cf4f\r\nmariadb-libs              \/usr\/lib\/libmariadb.so.3<\/pre>\n<p>&nbsp;<\/p>\n<p>Extracting the rpm allowed me to actually compare the files, swap back and forth to see which worked, etc.<\/p>\n<pre>[lisa@fedora tmp]# rpm2cpio mariadb-libs-10.2.13-2.fc27.x86_64.rpm | cpio -idmv\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve encountered a few scenarios of late where I couldn&#8217;t install an RPM package but needed its content. One is the security config at work where I have sudo access for cp but not install rights. Sigh! But more recently, I needed to compare a library from an updated package to the currently installed one. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[554,47,294,553],"class_list":["post-3017","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-cpio","tag-fedora","tag-linux","tag-rpm"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3017"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3017\/revisions"}],"predecessor-version":[{"id":3019,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3017\/revisions\/3019"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}