{"id":11297,"date":"2019-03-13T00:12:34","date_gmt":"2019-03-13T00:12:34","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11297"},"modified":"2019-03-13T00:12:34","modified_gmt":"2019-03-13T00:12:34","slug":"3-ways-to-list-all-installed-packages-in-rhel-centos-and-fedora","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/13\/3-ways-to-list-all-installed-packages-in-rhel-centos-and-fedora\/","title":{"rendered":"3 Ways to List All Installed Packages in RHEL, CentOS and Fedora"},"content":{"rendered":"<p>One of the several duties of a system administrator is to\u00a0<a href=\"https:\/\/www.tecmint.com\/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement\/\" target=\"_blank\" rel=\"noopener\">install and manage software on a computer system-Linux<\/a>\u00a0in this case and in order keep\u00a0<a href=\"https:\/\/www.tecmint.com\/view-yum-history-to-find-packages-info\/\" target=\"_blank\" rel=\"noopener\">track of installed\/available software packages<\/a>\u00a0on your system, you can learn, and\/or keep in mind a few quick commands.<\/p>\n<p>In this article, we will explain how to list all installed rpm packages on CentOS, RHEL and Fedora distributions using four different ways.<\/p>\n<h3>1. Using RPM Package Manager<\/h3>\n<p><a href=\"https:\/\/www.tecmint.com\/20-practical-examples-of-rpm-commands-in-linux\/\" target=\"_blank\" rel=\"noopener\">RPM (RPM Package Manager)<\/a>\u00a0formerly known as Red-Hat Package Manager is an open source, low-level package manager, which runs on Red Hat Enterprise Linux (RHEL) as well as other Linux such as CentOS, Fedora and UNIX systems.<\/p>\n<p>You can compare it to\u00a0<a href=\"https:\/\/www.tecmint.com\/dpkg-command-examples\/\" target=\"_blank\" rel=\"noopener\">DPKG Package Manager<\/a>, the default packaging system for Debian and it\u2019s derivatives such as Ubuntu, Kali Linux etc.<\/p>\n<p>The following command will print a list of all installed packages on your Linux system, the flag\u00a0<code>-q<\/code>\u00a0meaning query and\u00a0<code>-a<\/code>\u00a0enables\u00a0<a href=\"https:\/\/www.tecmint.com\/tag\/linux-ls-command\/\" target=\"_blank\" rel=\"noopener\">listing of all installed packages<\/a>:<\/p>\n<pre># rpm -qa\r\n<\/pre>\n<div id=\"attachment_25027\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/List-All-Installed-Packages-in-CentOS.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-25027\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/List-All-Installed-Packages-in-CentOS.png\" alt=\"List All Installed Packages in CentOS\" width=\"531\" height=\"689\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">List All Installed Packages in CentOS<\/p>\n<\/div>\n<h3>2. Using YUM Package Manager<\/h3>\n<p><a href=\"https:\/\/www.tecmint.com\/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement\/\" target=\"_blank\" rel=\"noopener\">YUM (Yellowdog Updater, Modified)<\/a>\u00a0is an interactive, front-end rpm based, package manager.<\/p>\n<p>You can use the\u00a0<strong>yum command<\/strong>\u00a0below to list all installed packages on your system, one advantage with this method is, it includes the repository from which a package was installed:<\/p>\n<pre># yum list installed\r\n<\/pre>\n<div id=\"attachment_25028\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Yum-List-All-Installed-Packages.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-25028\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Yum-List-All-Installed-Packages.png\" sizes=\"auto, (max-width: 1088px) 100vw, 1088px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Yum-List-All-Installed-Packages.png 1088w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Yum-List-All-Installed-Packages-768x587.png 768w\" alt=\"Yum - List All Installed Packages\" width=\"1088\" height=\"831\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Yum \u2013 List All Installed Packages<\/p>\n<\/div>\n<h3>3. Using YUM-Utils<\/h3>\n<p><a href=\"https:\/\/www.tecmint.com\/linux-yum-package-management-with-yum-utils\/\" target=\"_blank\" rel=\"noopener\">Yum-utils<\/a>\u00a0is an assortment of tools and programs for managing yum repositories, installing debug packages, source packages, extended information from repositories and administration.<\/p>\n<p>To install it, run the command below as root, otherwise, use sudo command:<\/p>\n<pre># yum update &amp;&amp; yum install yum-utils\r\n<\/pre>\n<p>Once you have it installed, type the\u00a0<strong>repoquery<\/strong>\u00a0command below to list all installed packages on your system:<\/p>\n<pre># repoquery -a --installed \r\n<\/pre>\n<div id=\"attachment_25029\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Repoquery-List-All-Installed-Packages.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-25029\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/Repoquery-List-All-Installed-Packages.png\" alt=\"Repoquery - List All Installed Packages\" width=\"501\" height=\"722\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Repoquery \u2013 List All Installed Packages<\/p>\n<\/div>\n<p>To list installed packages from a particular repository, use the\u00a0<strong>yumdb<\/strong>\u00a0program in the form below:<\/p>\n<pre># yumdb search from_repo base\r\n<\/pre>\n<div id=\"attachment_25030\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/List-All-Installed-Packages-from-Repository.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-25030\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/03\/List-All-Installed-Packages-from-Repository.png\" alt=\"List All Installed Packages from Repository\" width=\"504\" height=\"716\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">List All Installed Packages from Repository<\/p>\n<\/div>\n<p>Read more about package management in Linux:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/linux-package-management\/\" target=\"_blank\" rel=\"noopener\">Linux Package Management with Yum, RPM, Apt, Dpkg, Aptitude and Zypper<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/linux-package-managers\/\" target=\"_blank\" rel=\"noopener\">5 Best Linux Package Managers for Linux Newbies<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement\/\" target=\"_blank\" rel=\"noopener\">20 Useful \u2018Yum\u2019 Commands for Package Management<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/dnf-commands-for-fedora-rpm-package-management\/\" target=\"_blank\" rel=\"noopener\">27 \u2018DNF\u2019 (Fork of Yum) Commands for RPM Package Management in Fedora<\/a><\/li>\n<\/ol>\n<p>In this article, we showed you how to list all installed packages on CentOS or RHEL four different ways.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/list-installed-packages-in-rhel-centos-fedora\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the several duties of a system administrator is to\u00a0install and manage software on a computer system-Linux\u00a0in this case and in order keep\u00a0track of installed\/available software packages\u00a0on your system, you can learn, and\/or keep in mind a few quick commands. In this article, we will explain how to list all installed rpm packages on &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/13\/3-ways-to-list-all-installed-packages-in-rhel-centos-and-fedora\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;3 Ways to List All Installed Packages in RHEL, CentOS and Fedora&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11297","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=11297"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11297\/revisions"}],"predecessor-version":[{"id":11298,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11297\/revisions\/11298"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}