{"id":541,"date":"2024-07-15T10:54:54","date_gmt":"2024-07-15T10:54:54","guid":{"rendered":"https:\/\/webhostingdelhi.net.in\/tutorials\/?p=541"},"modified":"2024-07-15T16:39:30","modified_gmt":"2024-07-15T16:39:30","slug":"list-installed-packages-on-ubuntu","status":"publish","type":"post","link":"https:\/\/webhostingdelhi.net.in\/tutorials\/list-installed-packages-on-ubuntu\/","title":{"rendered":"How to List Installed Packages on Ubuntu ?"},"content":{"rendered":"\n<p>You can list installed packages on Ubuntu system using several different commands. <\/p>\n\n\n\n<p>Checking installed packages on operating systems like Ubuntu is crucial for effective system management. Listing these packages serves various purposes, including troubleshooting, maintenance, and <a href=\"https:\/\/www.webhostingdelhi.net.in\/vps-hosting-delhi\/\">optimization of your operating system<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"377\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/List-Installed-Packages-on-Ubuntu.png\" alt=\"List Installed Packages on Ubuntu\" class=\"wp-image-543\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/List-Installed-Packages-on-Ubuntu.png 565w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/List-Installed-Packages-on-Ubuntu-300x200.png 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/figure>\n<\/div>\n\n\n<p>Additionally, reviewing these packages allows you to identify and remove any redundant or undesired packages from the system.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Here are a few common methods:<\/h2><nav><ul><li class=\"\"><a href=\"#using-dpkg\">Using dpkg:<\/a><ul><li class=\"\"><a href=\"#list-installed-packages-on-ubuntu\"> List Installed Packages on Ubuntu:<\/a><\/li><li class=\"\"><a href=\"#list-all-installed-packages-with-detailed-information\">List all installed packages with detailed information:<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#using-apt\">Using apt:<\/a><ul><li class=\"\"><a href=\"#list-all-installed-packages\">List all installed packages:<\/a><\/li><li class=\"\"><a href=\"#search-for-a-specific-package\">Search for a specific package :<\/a><\/li><\/ul><\/li><li class=\"\"><a href=\"#list-installed-snap-packages\">List Installed Snap Packages :<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-dpkg\">Using <code>dpkg<\/code>:<\/h2>\n\n\n\n<p>For older versions of Ubuntu without the <strong>apt<\/strong> package manager, use the <strong>dpkg-query<\/strong> command. <strong>Dpkg-query <\/strong>usage is similar to <strong>apt <\/strong>but doesn\u2019t work with a remote repository.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"list-installed-packages-on-ubuntu\"><strong> List Installed Packages on Ubuntu:<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg --get-selections<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"237\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-6-1024x237.png\" alt=\"\" class=\"wp-image-544\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-6-1024x237.png 1024w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-6-300x69.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-6-768x178.png 768w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-6.png 1535w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"list-all-installed-packages-with-detailed-information\"><strong>List all installed packages with detailed information:<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg -l<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"351\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-7-1024x351.png\" alt=\"\" class=\"wp-image-545\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-7-1024x351.png 1024w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-7-300x103.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-7-768x263.png 768w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-7.png 1102w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-apt\">Using <code>apt<\/code>:<\/h2>\n\n\n\n<p>Use the <strong>apt list <\/strong>command to show all the available <strong>Ubuntu<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"list-all-installed-packages\"><strong>List all installed packages:<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt list \u2013-installed<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"348\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-8-1024x348.png\" alt=\"\" class=\"wp-image-546\" srcset=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-8-1024x348.png 1024w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-8-300x102.png 300w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-8-768x261.png 768w, https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-8.png 1115w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"search-for-a-specific-package\"><strong>Search for a specific package :<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>apt list --installed | grep -i &lt;package name&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"list-installed-snap-packages\"><strong>List Installed Snap Packages :<\/strong><\/h2>\n\n\n\n<p>To list installed Snap packages on Ubuntu, you can use the <code>snap<\/code> command<\/p>\n\n\n\n<p>Run the following command to list all installed Snap packages<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>snap list<\/code><\/pre>\n\n\n\n<p>This command will display a list of all Snap packages currently installed on your system, along with their version and publisher details.<\/p>\n\n\n\n<p>These commands provide a comprehensive way to view all the packages currently installed on your Ubuntu system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can list installed packages on Ubuntu system using several different commands. Checking installed packages on operating systems like Ubuntu is crucial for effective system management. Listing these packages serves various purposes, including troubleshooting, maintenance, and optimization of your operating system. Additionally, reviewing these packages allows you to identify and remove any redundant or undesired [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":552,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[54],"class_list":["post-541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ssh","tag-list-installed-packages-on-ubuntu"],"_links":{"self":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/comments?post=541"}],"version-history":[{"count":7,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/541\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/posts\/541\/revisions\/554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/media\/552"}],"wp:attachment":[{"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/media?parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/categories?post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-json\/wp\/v2\/tags?post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}