{"id":753,"date":"2018-01-08T16:24:00","date_gmt":"2018-01-08T16:24:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=753"},"modified":"2022-11-05T10:53:18","modified_gmt":"2022-11-05T10:53:18","slug":"yum-show-the-contents-of-a-package","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=753","title":{"rendered":"Yum show the contents of a package"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Let&#8217;s say you&#8217;ve identified a dependency that is needed on your machine, but you don&#8217;t know what package will provide the required file, you can use the &#8220;yum search &lt;name&gt; | grep &lt;more granular name&gt;&#8221; to narrow it down, but to see inside the package before install you can run the below, in my example I was looking for what provided the &#8220;gettext.pm&#8221; file, the package &#8220;perl-gettext&#8221; looked like it might, to be sure I ran:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># repoquery -l perl-gettext<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/lib64\/perl5\/vendor_perl\/Locale<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/lib64\/perl5\/vendor_perl\/Locale\/gettext.pm<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/lib64\/perl5\/vendor_perl\/auto\/Locale<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/lib64\/perl5\/vendor_perl\/auto\/Locale\/gettext<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/lib64\/perl5\/vendor_perl\/auto\/Locale\/gettext\/gettext.so<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/share\/doc\/perl-gettext-1.05<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/share\/doc\/perl-gettext-1.05\/README<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/share\/man\/man3\/Locale::gettext.3pm.gz<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And as you can see its listed, so this is the right package to install.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say you&#8217;ve identified a dependency that is needed on your machine, but you don&#8217;t know what package will provide the required file, you can use the &#8220;yum search &lt;name&gt; | grep &lt;more granular name&gt;&#8221; to narrow it down, but to see inside the package before install you can run the below, in my example &#8230; <a title=\"Yum show the contents of a package\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=753\" aria-label=\"Read more about Yum show the contents of a package\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-753","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=753"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/753\/revisions"}],"predecessor-version":[{"id":1386,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/753\/revisions\/1386"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}