{"id":2069,"date":"2018-07-24T16:20:21","date_gmt":"2018-07-24T16:20:21","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2069"},"modified":"2018-07-24T16:20:21","modified_gmt":"2018-07-24T16:20:21","slug":"dnf-yum-not-working-in-chroot-environment","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/dnf-yum-not-working-in-chroot-environment\/","title":{"rendered":"DNF\/YUM not working in chroot environment"},"content":{"rendered":"<p>The reason is probably because the chrooted environment can&#8217;t resolve DNS.<\/p>\n<p>Test it with<\/p>\n<pre>ping incredigeek.com<\/pre>\n<p>If it is not resolving, edit &#8220;\/etc\/resolv.conf&#8221; and change\/add your nameserver.\u00a0 Or just replace everything in it with<\/p>\n<pre>echo \"nameserver 4.2.2.2\" &gt; \/etc\/resolv.conf<\/pre>\n<p>It should now be able to resolve and you should be able to use yum, or dnf.<\/p>\n<pre>yum update<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The reason is probably because the chrooted environment can&#8217;t resolve DNS. Test it with ping incredigeek.com If it is not resolving, edit &#8220;\/etc\/resolv.conf&#8221; and change\/add your nameserver.\u00a0 Or just replace everything in it with echo &#8220;nameserver 4.2.2.2&#8221; &gt; \/etc\/resolv.conf It &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/dnf-yum-not-working-in-chroot-environment\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,24,3,22],"tags":[17,386,492,491,19,7,18,441],"class_list":["post-2069","post","type-post","status-publish","format-standard","hentry","category-centos-linux","category-fedora-2","category-linux","category-redhat-linux","tag-centos","tag-chroot","tag-chrooted","tag-dnf","tag-fedora","tag-linux-2","tag-redhat","tag-yum"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2069"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2069\/revisions"}],"predecessor-version":[{"id":2070,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2069\/revisions\/2070"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}