# dnf --version (Check version of dnf)
# dnf repolist (List enabled repositories)
# dnf repolist all (List enabled and disabled repositories)
# dnf install httpd (Install a package named httpd)
# dnf install httpd (It will install directly install will not ask for yes or no)
# dnf remove httpd (It will remove package)
# dnf update httpd (It will update that package)
# dnf update (it will update complete system)
# dnf check-update (It will check your update status)
# dnf grouplist (It will list all group packages)
# dnf groupinstall “group name” (It will install that group)
# dnf groupremove “group name” (It will remove that group)
# dnf history (It will show you history what you have ran)
# dnf history info 5 (It will show information of transaction occurred that number)
# dnf search net-tools (It will search a package named net-tools)
# dnf list (It will list installed and available packages)
# dnf list installed (It will show you installed packages in system)
# dnf list available (It will show available packages)
# dnf download elinks (It will download package without installing)
# dnf provides ifconfig (It will show you packages name related to that command)
# dnf provides /var/www/html (It will show package name against a file)
# dnf info elinks (it will give you details about elinks package)
# dnf clean all (It will clean cache)
# dnf autoremove (It will remove those dependency packages which are not required now)
# dnf downgrade elinks (It will downgrade to lower version available)
# dnf install --enablerepo=epel unzip (It will enable repo and install package)