{"id":336,"date":"2024-07-31T11:58:33","date_gmt":"2024-07-31T11:58:33","guid":{"rendered":"https:\/\/orissawebhosting.in\/knowledgebase\/?p=336"},"modified":"2024-07-31T12:00:42","modified_gmt":"2024-07-31T12:00:42","slug":"how-to-list-installed-packages-on-ubuntu","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/knowledgebase\/how-to-list-installed-packages-on-ubuntu\/","title":{"rendered":"How to List Installed Packages on Ubuntu ?"},"content":{"rendered":"\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li ><a href=\"#using-dpkg\">Using\u00a0dpkg:<\/a><ul><li ><a href=\"#list-installed-packages-on-ubuntu\">List Installed Packages on Ubuntu:<\/a><\/li><li ><a href=\"#list-all-packages-with-detailed-information\">List all packages with detailed information:<\/a><\/li><\/ul><\/li><li ><a href=\"#using-apt\">Using\u00a0apt:<\/a><ul><li ><a href=\"#list-all-packages\">List all packages:<\/a><\/li><li ><a href=\"#search-for-a-specific-package\">Search for a specific package :<\/a><\/li><\/ul><\/li><li ><a href=\"#list-installed-snap-packages\">List Installed Snap Packages :<\/a><ul><li ><a href=\"#using-dpkg-debian-package-manager\">Using dpkg (Debian Package Manager)<\/a><\/li><li ><a href=\"#using-apt-advanced-package-tool\">Using apt (Advanced Package Tool)<\/a><\/li><li ><a href=\"#using-aptitude-advanced-front-end-for-apt\">Using aptitude (Advanced front-end for apt)<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<p>You can list installed packages on Ubuntu system using several different commands.<\/p>\n\n\n\n<p>Checking on operating systems like Ubuntu is crucial for effective system management. Listing these packages serves various purposes, including troubleshooting, maintenance, and\u00a0<a href=\"https:\/\/www.orissawebhosting.in\/unlimited-orissa-web-hosting\/\">optimization of your operating system<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" 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\"\/><\/figure>\n\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<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-dpkg\">Using&nbsp;<code>dpkg<\/code>:<\/h2>\n\n\n\n<p>For older versions of Ubuntu without the&nbsp;<strong>apt<\/strong>&nbsp;package manager, use the&nbsp;<strong>dpkg-query<\/strong>&nbsp;command.&nbsp;<strong>Dpkg-query&nbsp;<\/strong>usage is similar to&nbsp;<strong>apt&nbsp;<\/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\"><img decoding=\"async\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-6-1024x237.png\" alt=\"\" class=\"wp-image-544\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"list-all-packages-with-detailed-information\"><strong>List all 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\"><img decoding=\"async\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-7-1024x351.png\" alt=\"\" class=\"wp-image-545\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-apt\">Using&nbsp;<code>apt<\/code>:<\/h2>\n\n\n\n<p>Use the&nbsp;<strong>apt list&nbsp;<\/strong>command to show all the available&nbsp;<strong>Ubuntu<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"list-all-packages\"><strong>List all 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\"><img decoding=\"async\" src=\"https:\/\/webhostingdelhi.net.in\/tutorials\/wp-content\/uploads\/2024\/07\/image-8-1024x348.png\" alt=\"\" class=\"wp-image-546\"\/><\/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&nbsp;<code>snap<\/code>&nbsp;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 <a href=\"https:\/\/www.squarebrothers.com\/web-hosting-india\/\" rel=\"nofollow noopener\" target=\"_blank\">your system<\/a>, 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.SSHTagged:\u00a0List Installed Packages on Ubuntu<\/p>\n\n\n\n<p>To list the installed packages on an Ubuntu system, you can use various commands depending on the package manager you&#8217;re using. Here are some common methods:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-dpkg-debian-package-manager\">Using <code>dpkg<\/code> (Debian Package Manager)<\/h3>\n\n\n\n<p><code>dpkg<\/code> is the base package management system for Debian-based distributions, including Ubuntu.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>List all installed packages:<\/strong>bashCopy code<code>dpkg --list<\/code><\/li>\n\n\n\n<li><strong>List installed packages with details:<\/strong>bashCopy code<code>dpkg -l<\/code><\/li>\n\n\n\n<li><strong>Search for a specific package:<\/strong>bashCopy code<code>dpkg -l | grep &lt;package-name><\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-apt-advanced-package-tool\">Using <code>apt<\/code> (Advanced Package Tool)<\/h3>\n\n\n\n<p><code>apt<\/code> is a front-end for the <code>dpkg<\/code> package manager and provides a more user-friendly interface.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>List all installed packages:<\/strong>bashCopy code<code>apt list --installed<\/code><\/li>\n\n\n\n<li><strong>Search for a specific package:<\/strong>bashCopy code<code>apt list --installed | grep &lt;package-name><\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-aptitude-advanced-front-end-for-apt\">Using <code>aptitude<\/code> (Advanced front-end for <code>apt<\/code>)<\/h3>\n\n\n\n<p>If <code>aptitude<\/code> is installed on your system, you can also use it to list installed packages. <code>aptitude<\/code> provides a text-based user interface for managing packages.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>List all installed packages:<\/strong>bashCopy code<code>aptitude search '~i'<\/code><\/li>\n\n\n\n<li><strong>Search for a specific package:<\/strong>bashCopy code<code>aptitude search '~i &lt;package-name>'<\/code><\/li>\n<\/ol>\n\n\n\n<p>These commands are useful for checking what software is currently installed on your system, troubleshooting, or managing dependencies. If you&#8217;re looking for more detailed information, the <code>dpkg-query<\/code> command can also be helpful:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopy code<code>dpkg-query -l\n<\/code><\/pre>\n\n\n\n<p>Always ensure you have the necessary permissions (e.g., using <code>sudo<\/code> if required) when running these commands, especially on system directories.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can list installed packages on Ubuntu system using several<\/p>\n","protected":false},"author":1,"featured_media":337,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-installed-packages"],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/posts\/336"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":2,"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/posts\/336\/revisions\/340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/media\/337"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/knowledgebase\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}