{"id":899,"date":"2023-05-21T06:34:57","date_gmt":"2023-05-21T06:34:57","guid":{"rendered":"https:\/\/www.dedicatedcore.com\/blog\/?p=899"},"modified":"2024-10-05T07:10:29","modified_gmt":"2024-10-05T07:10:29","slug":"list-installed-packages-centos-yum","status":"publish","type":"post","link":"https:\/\/www.dedicatedcore.com\/blog\/list-installed-packages-centos-yum\/","title":{"rendered":"How to List Installed Yum or RPM Packages on CentOS"},"content":{"rendered":"<p data-block-id=\"2abf8fc1-cba6-4472-956d-4b0529cbaf83\" data-pm-slice=\"1 1 []\">Whether you&#8217;re an experienced system administrator or a novice learning about Linux. Managing software packages is an essential chore for each CentOS user. Must know how to list installed packages since it enables you to keep track of the applications. That is installed on your system, diagnose problems, and schedule upgrades or maintenance. Grasp the process of clearing YUM cache on CentOS and Fedora to <a href=\"https:\/\/www.dedicatedcore.com\/blog\/clean-up-yum-cache\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">optimize disk usage.<\/a> Ensure the latest package metadata by following these precise commands for cleaning packages, headers, and metadata.<\/p>\n<p data-block-id=\"d71e35d9-fe06-4ac6-afaf-0c86e2979b88\">In this composition, we&#8217;ll look at Yum and RPM, two crucial techniques for listing installed packages on CentOS. We have designed VPS hosting to meet the needs of your site in Japan. It is <a href=\"https:\/\/www.dedicatedcore.com\/vps-hosting\/japan\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">addressed as Tokyo<\/a> server where you will get unbeatable 1gbps port network speed.<\/p>\n<p data-block-id=\"9bd1ae96-7392-4dfc-a38c-30395244a963\">These techniques are strong tools that give you important information. Info on the software environment of your system. Let&#8217;s get started and discover how to use their abilities. The installed software packages are frequently necessary for managing a CentOS operating system. This list can be used to duplicate a work environment on another machine. Roll out software upgrades, or rebuild an operating system. Enjoy top-tier Windows server with kernel-based virtual hosting <a href=\"https:\/\/www.dedicatedcore.com\/kvm-windows-vps-hosting\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">with no risk on quality<\/a> and experience high website uptime.<\/p>\n<h2>List Installed Packages on CentOS with Yum, RPM &amp; Yum-Utils<\/h2>\n<p>Apart from this, Set up a Kubernetes cluster on CentOS 7 with this direction, <a href=\"https:\/\/www.dedicatedcore.com\/blog\/install-kubernetes-cluster-centos\/\" target=\"_blank\" rel=\"noopener\">covering repository setup<\/a>, package installation, and configuration of firewall and SELinux for effective container management. Now coming to the topic list of installed packages on centOS let&#8217;s get into the options below:<\/p>\n<h3>Option 1: Use YUM to List Installed Packages<\/h3>\n<p>Yellowdog Updater, Modified is referred to as YUM. You may install, uninstall, update, view, or search software packages with this upgraded package manager.<\/p>\n<p>To view all installed packages, run the yum command as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo yum list installed<\/pre>\n<p>Use the grep command to filter the output and see if a particular package has been installed using YUM:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo yum list installed | grep xorg<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-902\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/grep-command-check-specific-package.png\" alt=\"command will display specific package installed\" width=\"800\" height=\"508\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/grep-command-check-specific-package.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/grep-command-check-specific-package-300x191.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/grep-command-check-specific-package-150x95.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/grep-command-check-specific-package-768x488.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/grep-command-check-specific-package-100x64.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/grep-command-check-specific-package-700x445.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>Using YUM, you can show information about a specific package:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">yum info httpd<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-903\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/yum-info-package-details.png\" alt=\"output display details of particular package\" width=\"800\" height=\"428\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/yum-info-package-details.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/yum-info-package-details-300x161.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/yum-info-package-details-150x80.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/yum-info-package-details-768x411.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/yum-info-package-details-100x54.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/yum-info-package-details-700x375.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The complete package list can alternatively be output by YUM to a file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo yum list installed &gt; listed_packages.txt<\/pre>\n<p>To copy the installed packages on another system, this file can be copied:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo yum \u2013y install $(cat listed_packages.txt)<\/pre>\n<p>All installation prompts are answered with &#8220;yes&#8221; by the -y option. The file&#8217;s contents are concatenated into the yum install command using the cat command.<\/p>\n<p>Use yum &#8211;help for further details on the yum command.<\/p>\n<h3>Option 2: Using RPM List Installed Packages<\/h3>\n<p>The RedHat Package Manager is known as RPM. The majority of Red Hat-based Linux operating systems, including CentOS and Fedora, include it by default.<\/p>\n<p>The following commands should be entered in a terminal window to show a list of installed packages:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo rpm \u2013qa<\/pre>\n<ul>\n<li>-q stands for &#8220;query.&#8221;<\/li>\n<li>The -a switch denotes all.<\/li>\n<\/ul>\n<p>Enter the following command to sort packages by the installation date.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo rpm \u2013qa \u2013\u2013last<\/pre>\n<p>Find a package using its name by using:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo rpm \u2013qa | grep \u2013i httpd<\/pre>\n<p>The Apache software&#8217;s results are returned by this command.<\/p>\n<p>Enter the following to output the packages list to a file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo rpm \u2013qa &gt; listed_packages.txt<\/pre>\n<p>This command stores a copy of the list in the currently open working directory as a text file with the name listed_packages.txt.<\/p>\n<p>Show details about a certain package:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rpm \u2013qi httpd<\/pre>\n<ul>\n<li>The query is the meaning of the -q option.<\/li>\n<li>Info is the meaning of the -i option.<\/li>\n<\/ul>\n<p>The total number of installed packages is as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo rpm \u2013qa | wc \u2013l<\/pre>\n<ul>\n<li>A word count is produced by the wc command.<\/li>\n<li>The number of lines is counted by the -l option.<\/li>\n<\/ul>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-904\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/rpm-word-count.png\" alt=\"rpm wc command counts total number of packages installed\" width=\"800\" height=\"168\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/rpm-word-count.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/rpm-word-count-300x63.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/rpm-word-count-150x32.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/rpm-word-count-768x161.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/rpm-word-count-100x21.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/rpm-word-count-700x147.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>By package name and revision number, RPM lists packages. This tool could be tougher to read if the text is wrapped. For additional options, use the rpm &#8211;help command or consult the manual.<\/p>\n<h3>Option 3: Using yum-utils, List Installed Packages<\/h3>\n<p>A software application called Yum-utils enhances the capabilities of the default YUM package management.<\/p>\n<p>Enter the command to begin installing the yum-utils software package.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo yum \u2013y install yum-utils<\/pre>\n<p>Using the repoquery command, list all installed packages:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo repoquery \u2013a \u2013\u2013installed<\/pre>\n<p>The yum-utils software retrieves data from yum repositories.<\/p>\n<h3>The Methods of Listing Installed Packages:<\/h3>\n<ul>\n<li>Option 1: Use YUM to List Installed Packages<\/li>\n<li>Option 2: Using RPM List Installed Packages<\/li>\n<li>Option 3: Using yum-utils, List Installed Packages<\/li>\n<\/ul>\n<h4>Final Thought on List Installed Packages on CentOS with Yum or RPM<\/h4>\n<p data-block-id=\"778798ec-a9a7-45cd-b9cd-377e24c29967\" data-pm-slice=\"1 1 []\">In the empire of CentOS, maintaining control over your software packages. Need to keep your system safe and secure. No matter if you choose Yum&#8217;s user-friendly approach or RPM&#8217;s more powerful low-level features. So being able to list installed packages is a useful ability. It gives you the power to make knowledgeable decisions about the software on your system. Ensuring that you&#8217;re constantly current, secure, and effective.<\/p>\n<p data-block-id=\"a5dd108e-e95f-40eb-8d57-e24785a75f2d\">You&#8217;re taking a big step toward becoming a professional CentOS user. Becoming an administrator by understanding these package listing procedures. Continue learning about the CentOS ecosystem by doing so. Keep in mind that the information you learn today will be helpful to you as you progress with Linux.<\/p>\n<h4>Frequently Asked Questions (FAQ)<\/h4>\n<p><strong>1. What is the Difference between Yum and RPM?<\/strong><\/p>\n<p>Yum stands for Yellowdog Updater, Modified manages software packages in Linux, it is an open-source tool. It is used to install, modernize, release, and question software packages.<\/p>\n<p>RPM stands for Red Hat Package Manager, it is a package administration technique, used by different Linux allocations.<\/p>\n<p><strong>2. Why would I need to List Installed Packages on CentOS?<\/strong><\/p>\n<p>There are many reasons to list installed packages on Centos:<\/p>\n<p>1. Maintaining your system secure and ensure.<\/p>\n<p>2. Replicating a profession conditions.<\/p>\n<p>3. Reconstructing OS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whether you&#8217;re an experienced system administrator or a novice learning about Linux. Managing software packages is an essential chore for each CentOS user. Must know&#8230;<\/p>\n","protected":false},"author":1,"featured_media":924,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/899"}],"collection":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/comments?post=899"}],"version-history":[{"count":11,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/899\/revisions"}],"predecessor-version":[{"id":2351,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/899\/revisions\/2351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media\/924"}],"wp:attachment":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media?parent=899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/categories?post=899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/tags?post=899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}