{"id":1498,"date":"2024-06-24T16:54:46","date_gmt":"2024-06-24T16:54:46","guid":{"rendered":"http:\/\/shijuvarghese.com\/?p=1498"},"modified":"2025-07-05T06:56:10","modified_gmt":"2025-07-05T06:56:10","slug":"dnf-dandified-yum","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=1498","title":{"rendered":"DNF : Dandified YUM"},"content":{"rendered":"<p>Dandified YUM or simply DNF is an advanced version of the Yellowdog Updater, Modified OR simply YUM, a package manager for rpm-based Linux distributions.<\/p>\n<p>The &#8220;yum&#8221; commands are still available in Redhat, but they point to DNF.<\/p>\n<p>Listed below are few of the commonly used DNS commands.<\/p>\n<p>List all dnf package names starting with http<br \/>\n<strong>[root@centos9test1 ~]#<\/strong> dnf list &#8216;http*&#8217;<br \/>\n====== ==<br \/>\n<em>Last metadata expiration check: 2:44:26 ago on Mon 24 Jun 2024 07:42:17 PM IST.<\/em><br \/>\n<em>Available Packages<\/em><br \/>\n<em>http-parser.i686<\/em><br \/>\n<em>httpcomponents-core.noarch<\/em><br \/>\n<em>httpd.x86_64<\/em><br \/>\n====== ==<\/p>\n<p>Get additional information about the httpd package<br \/>\n<strong>[root@centos9test1 ~]#<\/strong> dnf info httpd<br \/>\n==== ====<br \/>\n<em>Last metadata expiration check: 2:47:46 ago on Mon 24 Jun 2024 07:42:17 PM IST.<\/em><br \/>\n<em>Available Packages<\/em><br \/>\n<em>Name : httpd<\/em><br \/>\n<em>Version : 2.4.57<\/em><br \/>\n<i>.<\/i><br \/>\n<i>.<\/i><br \/>\n<em>Description : The Apache HTTP Server is a powerful, efficient, and extensible\u00a0<\/em><em>web server.<\/em><br \/>\n==== ====<\/p>\n<p>List the packages that used the folder \/var\/www\/html<\/p>\n<p><strong>[root@centos9test1 ~]#<\/strong> dnf provides \/var\/www\/html<br \/>\n===== ===<br \/>\n<em>Last metadata expiration check: 2:50:18 ago on Mon 24 Jun 2024 07:42:17 PM IST.<\/em><br \/>\n<em>httpd-filesystem-2.4.57-2.el9.noarch : The basic directory layout for the Apache HTTP Server<\/em><br \/>\n<em>Repo : appstream<\/em><br \/>\n<em>Matched from:<\/em><br \/>\n<em>Filename : \/var\/www\/html<\/em><br \/>\n===== ===<\/p>\n<p>Command to install httpd<br \/>\n<strong>[root@centos9test1 ~]#<\/strong> dnf install httpd<\/p>\n<p>Command to remove httpd<br \/>\n<strong>[root@centos9test1 ~]#<\/strong> dnf remove httpd<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #993366;\"><strong><span style=\"text-decoration: underline;\">DNF Groups<\/span><\/strong><\/span><br \/>\n<strong>===***===<\/strong><\/p>\n<p>There are collection of realted packages installed together for a purpose. Groups are of two types<\/p>\n<ol>\n<li><strong>Regular Groups:<\/strong> These are collection of packages<\/li>\n<li><strong>Environment Groups:<\/strong> There are collection of groups<\/li>\n<\/ol>\n<p>Few\u00a0commands related to groups are:<\/p>\n<p><strong>[root@centos9test1 ~]#<\/strong> dnf group list<br \/>\n<strong>[root@centos9test1 ~]#<\/strong> dnf group info &#8220;RPM Development Tools&#8221;<br \/>\n<strong>[root@centos9test1 ~]#<\/strong> dnf group install &#8220;RPM Development Tools&#8221;<\/p>\n<p>The DNS logs are stored in <em>\/var\/log\/dnf.rpm.log<\/em><\/p>\n<p>History of dnf commands used can be found by using the command:<\/p>\n<p><strong>[root@centos9test1 ~]#<\/strong> dnf history<\/p>\n<p>Based on the listing of the commands executed as per the history, we can find additional information about a command executed by using the ID in the history.<\/p>\n<p><strong>[root@centos9test1 ~]#<\/strong>\u00a0dnf history info 6<\/p>\n<p>You may undo an executed dnf command using the below command<\/p>\n<p><strong>[root@centos9test1 ~]#<\/strong>\u00a0dnf history undo 6<\/p>\n<p>Additional information about creating a dnf or yum repository can be found <a href=\"http:\/\/shijuvarghese.com\/?p=1460\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Dandified YUM or simply DNF is an advanced version of the Yellowdog Updater, Modified OR simply YUM, a package manager for rpm-based Linux distributions. The <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=1498\" title=\"DNF : Dandified YUM\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1791,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,30],"tags":[],"class_list":["post-1498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-rhel-9"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1498"}],"version-history":[{"count":9,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1498\/revisions"}],"predecessor-version":[{"id":1508,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1498\/revisions\/1508"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/1791"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1498"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}