{"id":23053,"date":"2023-10-31T07:23:03","date_gmt":"2023-10-31T07:23:03","guid":{"rendered":"https:\/\/linuxways.net\/?p=23053"},"modified":"2023-10-31T07:23:03","modified_gmt":"2023-10-31T07:23:03","slug":"list-all-installed-packages-ubuntu-using-apt","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/list-all-installed-packages-ubuntu-using-apt\/","title":{"rendered":"How to List all Installed Packages in Ubuntu Using apt?"},"content":{"rendered":"<p>In Ubuntu, a bunch of Packages are Installed and it might be hectic for a User when searching for a specific Package or a specific version of a Package. Thus, to keep track of the packages installed on your Ubuntu System and also to troubleshoot any dependency or error, the User must know the Packages Installed on their Ubuntu System. Also, if any manual upgrade of a package is required, the current version of the installed package must be known. For this purpose, Ubuntu offers the \u201capt\u201d command which lists all the Installed and even the Available Packages on your System.<\/p>\n<p>This article demonstrates the use of the \u201capt\u201d command in listing installed packages on Ubuntu.<\/p>\n<h2><strong>How to List all Installed Packages in Ubuntu Using apt? <\/strong><\/h2>\n<p>The \u201capt\u201d or \u201cAdvance Package Tool\u201d is a useful command in the Terminal that is used for updating packages, removing a specific package, and also for installing a specific package. The \u201capt\u201d command can be used in multiple approaches along with multiple options.<\/p>\n<ul>\n<li>List Installed and the Available Packages with the \u201capt\u201d Command.<\/li>\n<li>List Specific Packages using the \u201capt\u201d Command.<\/li>\n<li>List Packages Matching a Pattern using the \u201capt\u201d Command.<\/li>\n<li>List the Number of Installed Packages using the \u201capt\u201d Command.<\/li>\n<li>List Upgradable Packages using the \u201capt\u201d Command.<\/li>\n<li>List All Versions of Packages using the \u201capt\u201d Command.<\/li>\n<\/ul>\n<h3><strong>Open Terminal<\/strong><\/h3>\n<p>As you will use the \u201capt\u201d command in the Terminal of your Ubuntu System, open the Terminal Directly with the \u201cctrl+alt+t\u201d command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1514\" height=\"460\" class=\"wp-image-23054\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-1.png 1514w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-1-300x91.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-1-1024x311.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-1-768x233.png 768w\" sizes=\"auto, (max-width: 1514px) 100vw, 1514px\" \/><\/p>\n<h3><strong>List all Installed and Available Packages <\/strong><\/h3>\n<p>The \u201capt\u201d command can be used to list all the Installed as well as the Available Packages in the Repository using the \u201capt\u201d command. To list the Installed and Available Packages, the \u201capt\u201d command along with the \u201clist\u201d command is used:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list<\/div><\/div>\n<p>This will list all the available and Installed packages in the Terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"411\" class=\"wp-image-23055\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-2.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-2-300x155.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-2-768x397.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<p>The \u201clist\u201d command outputs all the available packages. Although the listed packages in the Terminal are in large amounts, you can filter the list to only list the first 10 lines while retrieving the installed and available packages. To filter only the first 10 lines, use the \u201chead\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"sy0\">|<\/span> <span class=\"kw2\">head<\/span><\/div><\/div>\n<p>The Terminal will only display the first 10 packages that are either available or installed on your Ubuntu System:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"417\" class=\"wp-image-23056\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-3.png 799w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-3-300x157.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-3-768x401.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p>To list solely the installed packages in the Terminal, you can use the \u201c&#8211;installed\u201d option:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--installed<\/span><\/div><\/div>\n<p>The Terminal will filter and list only the packages that are currently installed on your Ubuntu System:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"335\" class=\"wp-image-23057\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-4.png 829w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-4-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-4-768x310.png 768w\" sizes=\"auto, (max-width: 829px) 100vw, 829px\" \/><\/p>\n<p>As the list is too long for you to read, you can also make it easier to read by using the \u201cless\u201d command with the \u201capt list\u201d Command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">less<\/span><\/div><\/div>\n<p>A new window will appear in the Terminal that will list the Packages:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"414\" class=\"wp-image-23058\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-5.png 841w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-5-300x148.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-5-768x378.png 768w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/p>\n<p>In this new window in the Terminal, you can now manually see the packages by pressing Enter. Pressing Enter will list a new package and so on, which makes it easier for the user to read the packages:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"473\" class=\"wp-image-23059\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-6.gif\" \/><\/p>\n<p>Once you are done reading the list, you can exit the packages list window by pressing \u201cq\u201d.<\/p>\n<h3><strong>List Specific Package using \u201capt\u201d Command<\/strong><\/h3>\n<p>Apart from listing all the packages which, in some cases, is hectic for you to read, you can list a specific package as well. With the \u201capt list\u201d command, you can specify the package you want to be listed in the Terminal by writing only the package name:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"sy0\">&lt;<\/span>packageName<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>In our case, we searched for the \u201cpython3\u201d package using the \u201capt list\u201d Command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list python3<\/div><\/div>\n<p>The Terminal will list both the available and the installed package of \u201cpython3\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"152\" class=\"wp-image-23060\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-7.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-7-300x58.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-7-768x148.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>To only list the Installed package, the \u201c&#8211;installed\u201d command can be used. Using our previous case, to list only the Installed Packages of \u201cpython3\u201d, the command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list python3 <span class=\"re5\">--installed<\/span><\/div><\/div>\n<p>The Terminal will only list the Installed \u201cPython3\u201d Packages:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"225\" class=\"wp-image-23061\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-8.png 792w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-8-300x85.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-8-768x218.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>The <strong>[installed, automatic] <\/strong>message in front of the listed package in the Terminal indicates the package was installed automatically as a dependency for another software package.<\/p>\n<p>You can also list the Information about a specific package in the Terminal with the \u201capt show\u201d command having the syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt show <span class=\"sy0\">&lt;<\/span>packageName<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>In our case, to list the information about the \u201cpython3\u201d package installed on our Ubuntu System, the \u201capt show\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt show python3<\/div><\/div>\n<p>The information about the \u201cPython3\u201d package will be displayed in the Terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"344\" class=\"wp-image-23062\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-9.png 794w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-9-300x130.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-9-768x333.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<h3><strong>List Packages matching a Pattern Using the \u201capt\u201d Command<\/strong><\/h3>\n<p>With the \u201capt\u201d command, you can also list only specific packages that match a specified pattern. The \u201c<strong>pattern<\/strong>\u201d command is used along with the \u201capt list\u201d command to list only the specific packages that match the given pattern. The pattern command can either be used to list the Packages that start with a specified pattern, or that end with the specified pattern.<\/p>\n<p>To List Packages starting with a specific pattern, the \u201cpattern\u201d command along with the \u201capt list\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list pattern <span class=\"st_h\">&#039;&lt;startingPattern&lt;strong&gt;&gt;*&#039;<\/span><span class=\"sy0\">&lt;\/<\/span>strong<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>In our case, to list only the packages that start with the word \u201cfir\u201d, the \u201capt list\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list pattern <span class=\"st_h\">'fir*'<\/span><\/div><\/div>\n<p>The Terminal will display all the Packages that start with the word \u201cfir\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"335\" class=\"wp-image-23063\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-10.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-10-300x128.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-10-768x326.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>Similarly, to list all the packages starting with the word \u201cclon\u201d, the \u201capt list\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list pattern <span class=\"st_h\">'clon*'<\/span><\/div><\/div>\n<p>As you can see in the Terminal, only the packages that start with \u201cclon\u201d are listed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"113\" class=\"wp-image-23064\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-11.png 792w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-11-300x43.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-11-768x110.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>Now, to List Packages ending with a specific pattern, the \u201capt list\u201d command along with the \u201cpattern\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list pattern <span class=\"st_h\">'*&lt;endingPattern&gt;'<\/span><\/div><\/div>\n<p>In our case, to list all the packages that end with the word \u201ccompact\u201d, the \u201capt list\u201d Command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list pattern <span class=\"st_h\">'*compact'<\/span><\/div><\/div>\n<p>As you can see in the Terminal, only the Packages that end with \u201ccompact\u201d are displayed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"119\" class=\"wp-image-23065\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-12.png 792w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-12-300x45.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-12-768x115.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>Similarly, to list only the packages ending with the word \u201cdep\u201d, the \u201capt list\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list pattern <span class=\"st_h\">'*dep'<\/span><\/div><\/div>\n<p>The Terminal will only display the Packages ending with \u201cdep\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"88\" class=\"wp-image-23066\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-13.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-13-300x33.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-13-768x85.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<h3><strong>List the Number of Installed Packages using the \u201capt\u201d Command<\/strong><\/h3>\n<p>Using the \u201capt\u201d command along with the \u201clist\u201d command, you can list the number of installed packages on Ubuntu. To list the Number of Installed packages on your Ubuntu System, the \u201cwc -l\u201d option is used along with the \u201capt list\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">wc<\/span> <span class=\"re5\">-l<\/span><\/div><\/div>\n<p>In our case, the Terminal displays 1904 packages that are currently installed on our Ubuntu System:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"155\" class=\"wp-image-23067\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-14.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-14-300x58.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-14-768x150.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<p>You can also list the number of installed packages of a specific Application on your Ubuntu System. To list the number of Installed Packages, use the name of the Package along with the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"sy0\">&lt;<\/span>packageName<span class=\"sy0\">&gt;<\/span> <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">wc<\/span> <span class=\"re5\">-l<\/span><\/div><\/div>\n<p>In our case, to list the Number of Installed Packages of the Firefox Application on our Ubuntu System, the \u201capt list\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list firefox <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">wc<\/span> <span class=\"re5\">-l<\/span><\/div><\/div>\n<p>The Terminal displays 2 installed packages of Firefox on our Ubuntu System:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"110\" class=\"wp-image-23068\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-15.png 791w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-15-300x42.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-15-768x107.png 768w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/p>\n<h3><strong>List the Upgradeable Packages using the \u201capt\u201d Command<\/strong><\/h3>\n<p>You can also list the Upgradeable Packages on your Ubuntu System using the \u201capt\u201d command. To list all the Packages on your Ubuntu System that require an Upgrade, sync your Ubuntu repository first with the \u201capt update\u201d Command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p>The \u201capt update\u201d command will look for the packages that require any upgrade:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"266\" class=\"wp-image-23069\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-16.png 786w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-16-300x102.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-16-768x260.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>Now, to list all the Packages requiring an Upgrade, use the \u201capt list\u201d command along with the \u201c&#8211;upgradeable\u201d option:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--upgradeable<\/span><\/div><\/div>\n<p>Only the Packages that require an Upgrade will be listed in the Terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"831\" height=\"324\" class=\"wp-image-23070\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-17.png 831w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-17-300x117.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-17-768x299.png 768w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/p>\n<h3><strong>List All Versions of Packages using the \u201capt\u201d Command<\/strong><\/h3>\n<p>With the \u201capt\u201d Command, you can also verify a specific version of a package installed and available on your Ubuntu System. To list all the Versions of Installed and Available Packages on your Ubuntu System, use the \u201capt list\u201d command along with the \u201c&#8211;all-versions\u201d which filters and lists all the versions of the Packages:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--all-versions<\/span><\/div><\/div>\n<p>All the Versions of the Installed and Available Packages will be displayed in the Terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"410\" class=\"wp-image-23071\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-18.png 835w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-18-300x147.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-18-768x377.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>You can also filter your list with a specific Package Name with the Syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--all-versions<\/span> <span class=\"sy0\">&lt;<\/span>packageName<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>In our case, to list all the Installed and Available Versions of Packages of the Firefox Application, the \u201capt list\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--all-versions<\/span> firefox<\/div><\/div>\n<p>The Terminal will display all the Versions of the Firefox Application:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"86\" class=\"wp-image-23072\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-19.png 829w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-19-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-19-768x80.png 768w\" sizes=\"auto, (max-width: 829px) 100vw, 829px\" \/><\/p>\n<p>Similarly, to list all the Package Versions of \u201csudo\u201d, the \u201capt list\u201d command will be:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--all-versions<\/span> <span class=\"kw2\">sudo<\/span><\/div><\/div>\n<p>The Terminal will display all the Packages Version as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"151\" class=\"wp-image-23073\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-20.png 835w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-20-300x54.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-23053-20-768x139.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Keeping track of the packages Installed on your Ubuntu System is crucial for troubleshooting any dependency or error in the Packages or your overall System. With the \u201capt\u201d command, you can easily list all the Installed as well as the Available Packages, you can list specific packages installed on your Ubuntu System, and you can also list the upgradeable and the number of installed packages on your Ubuntu System, and you can modify your search with the \u201cpattern\u201d command. This article explained each methodology in detail with examples.<\/p>","protected":false},"excerpt":{"rendered":"<p>The \u201capt\u201d command is useful in listing the Installed Packages on Ubuntu, and it can be used in various ways with multiple options to modify the search.<\/p>","protected":false},"author":110,"featured_media":23074,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-23053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=23053"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23074"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}