{"id":25975,"date":"2024-02-29T15:25:11","date_gmt":"2024-02-29T15:25:11","guid":{"rendered":"https:\/\/linuxways.net\/?p=25975"},"modified":"2024-02-29T15:25:11","modified_gmt":"2024-02-29T15:25:11","slug":"list-installed-packages-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/list-installed-packages-ubuntu-22-04\/","title":{"rendered":"How to List Installed Packages on Ubuntu 22.04"},"content":{"rendered":"<p>Listing down all the installed packages is a very useful practice. It is mostly performed by system administrators. It gives a brief idea about the existing applications on your system. Listing packages on Ubuntu is useful, especially when you are migrating from one machine to another, or want to upgrade the applications. After listing the packages on Ubuntu, you can free up your system space by removing the unused packages from your system.<\/p>\n<p><strong>Outline<\/strong>:<\/p>\n<ul>\n<li><a href=\"#post-25975-_9s0vr8htosjg\">How to List Installed Packages on Ubuntu 22.04<\/a><\/li>\n<li><a href=\"#post-25975-_ncof77tx9bl5\">Bonus Tip 1: How to Create a List of Installed Packages on Ubuntu 22.04 Using dpkg-query<\/a><\/li>\n<li><a href=\"#post-25975-_2azer12qr5j5\">Bonus Tip 2: How to Count the Number of Installed Packages on Ubuntu 22.04<\/a><\/li>\n<li><a href=\"#post-25975-_37e5eciba90m\">Conclusion<\/a><\/li>\n<\/ul>\n<h2><a id=\"post-25975-_9s0vr8htosjg\"><\/a>How to List Installed Packages on Ubuntu 22.04<\/h2>\n<p>The installed packages can be retrieved through:<\/p>\n<ul>\n<li><a href=\"#post-25975-_2tuwhb5c1t7j\">apt Package Manager<\/a><\/li>\n<li><a href=\"#post-25975-_7ffax5aqmj5q\">dpkg Package Manager<\/a><\/li>\n<li><a href=\"#post-25975-_urakiaab4nw9\">Snap Store<\/a><\/li>\n<li><a href=\"#post-25975-_5mptd9tdu2zu\">Synaptic Package Manager (GUI)<\/a><\/li>\n<li><a href=\"#post-25975-_urakiaab4nw9\">Ubuntu Software Store (GUI)<\/a><\/li>\n<\/ul>\n<h3><a id=\"post-25975-_2tuwhb5c1t7j\"><\/a>Method 1: List Installed Packages on Ubuntu 22.04 Using apt Package Manager<\/h3>\n<p>Ubuntu versions later than 14 come with the support of the apt package manager. It is the default package manager and can list down the installed applications on Ubuntu. Let&#8217;s check the options given below to get the list of installed packages.<\/p>\n<p><strong>Option 1: List Installed Packages<\/strong><\/p>\n<p>To get only the list of installed packages, use the <strong>apt list<\/strong> command alongside the <strong>&#8211;installed<\/strong> flag in the Terminal:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list <span class=\"re5\">--installed<\/span><\/div><\/div>\n<p>The <strong>&#8211;installed<\/strong> flag makes sure that Terminal only displays the installed packages on Ubuntu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"991\" height=\"310\" class=\"wp-image-25982\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-1.png 991w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-1-300x94.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-1-768x240.png 768w\" sizes=\"auto, (max-width: 991px) 100vw, 991px\" \/><\/p>\n<p>In the installed packages list, the:<\/p>\n<ul>\n<li><strong>[Installed]<\/strong> indicates that the package was installed from the official repository.<\/li>\n<li><strong>[Installed, automatic]<\/strong> refers to the applications installed alongside other applications.<\/li>\n<li><strong>[Installed, Local]<\/strong> indicates that the package was installed from an unofficial repository.<\/li>\n<\/ul>\n<p>To get the list of installed packages with minimal output, simply pipe the command to get installed packages to the <strong>less<\/strong> command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">less<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"314\" class=\"wp-image-25984\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-2.png 966w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-2-300x98.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-2-768x250.png 768w\" sizes=\"auto, (max-width: 966px) 100vw, 966px\" \/><\/p>\n<p><strong>Option 2: List Available and Installed Packages on Ubuntu 22.04<\/strong><\/p>\n<p>To get the list of both available and installed packages on Ubuntu, simply run the apt list command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"312\" class=\"wp-image-25987\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-3.png 909w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-3-300x103.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-3-768x264.png 768w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/p>\n<p><strong>Option 3: List Upgradeable Installed Packages on Ubuntu 22.04<\/strong><\/p>\n<p>Alongside getting the list of installed packages, you can get the packages that can be upgraded. To get the list of upgradeable packages on Ubuntu, simply provide the <strong>&#8211;upgradeable<\/strong> flag to the <strong>apt list<\/strong> command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list <span class=\"re5\">--upgradable<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1036\" height=\"263\" class=\"wp-image-25993\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-4.png 1036w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-4-300x76.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-4-1024x260.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-4-768x195.png 768w\" sizes=\"auto, (max-width: 1036px) 100vw, 1036px\" \/><\/p>\n<p><strong>Option 4: List a Specific Installed Package on Ubuntu 22.04<\/strong><\/p>\n<p>Provide the package name to the <strong>apt list<\/strong> command alongside the <strong>&#8211;installed<\/strong> flag to get the specified installed package on Ubuntu:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list firefox <span class=\"re5\">--installed<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"134\" class=\"wp-image-25999\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-5.png 817w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-5-300x49.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-5-768x126.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/p>\n<p>Alternatively, you can combine the <strong>apt list<\/strong> command with the <strong>grep<\/strong> command to get the specified installed package on Ubuntu.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> <span class=\"re5\">-i<\/span> firefox<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"181\" class=\"wp-image-26004\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-6.png 815w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-6-300x67.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-6-768x171.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>Alternatively, users can retrieve the specific installed package by providing the package name to the <strong>apt show<\/strong> command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt show firefox<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"181\" class=\"wp-image-26005\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-7.png 816w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-7-300x67.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-7-768x170.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/p>\n<p><strong>Option 5: List All Installed Packages Versions on Ubuntu 22.04<\/strong><\/p>\n<p>With the <strong>apt list<\/strong> command, you can get the versions of all the installed packages on Ubuntu. To get the installed package versions, specify the <strong>&#8211;all-versions<\/strong> flag to the apt list command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list <span class=\"re5\">--all-versions<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"293\" class=\"wp-image-26007\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-8.png 955w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-8-300x92.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-8-768x236.png 768w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/strong><\/p>\n<h3><a id=\"post-25975-_7ffax5aqmj5q\"><\/a>Method 2: List Installed Packages on Ubuntu 22.04 Using dpkg<\/h3>\n<p>Ubuntu users can also get the list of installed packages on the system through the dpkg package manager. Check the guided options below to get the list of installed packages on Ubuntu through dpkg.<\/p>\n<p><strong>Option 1: List Installed Packages<\/strong><\/p>\n<p>To retrieve installed applications along with their versions on Ubuntu using the dpkg command, simply execute the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"425\" class=\"wp-image-26009\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-9.png 817w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-9-300x156.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-9-768x400.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/p>\n<p>Alternatively, you can also use the dpkg-query command to get the list of installed packages on Ubuntu 22.04. The dpkg-query command is more like an apt command. It was more common on older versions of Ubuntu which did not have the support of apt command back then. To retrieve installed packages, use the dpkg-query command as shown below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> dpkg-query <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"549\" class=\"wp-image-26014\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-10.png 814w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-10-300x202.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-10-768x518.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/p>\n<p><strong>Option 2: List a Specific Installed Package on Ubuntu 22.04<\/strong><\/p>\n<p>Any specific installed package on Ubuntu can be retrieved using the dpkg command when combined with the grep command. To get the specific installed package, first pipe the <strong>dpkg<\/strong> command alongside the <strong>-l<\/strong> flag to the grep command and then specify the package name:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">-l<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> firefox<\/div><\/div>\n<p>Remember to replace the package name with your package name:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"138\" class=\"wp-image-26015\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-11.png 815w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-11-300x51.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-11-768x130.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>You can also get the specific installed package using the dpkg-query command. To get the specified installed package, execute the below command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> dpkg-query <span class=\"re5\">-l<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> firefox<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"136\" class=\"wp-image-26017\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-12.png 814w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-12-300x50.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-12-768x128.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/p>\n<h3><a id=\"post-25975-_urakiaab4nw9\"><\/a>Method 3: List Installed Packages on Ubuntu 22.04 Using Snap<\/h3>\n<p>Another alternate method to get the installed packages is through the Snap package manager. This method only shows the packages installed through Snap.<\/p>\n<p>To retrieve the installed applications on Ubuntu 22.04 through the snap utility, simply execute the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap list<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"510\" class=\"wp-image-26018\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-13.png 903w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-13-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-13-768x434.png 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/p>\n<h3><a id=\"post-25975-_5mptd9tdu2zu\"><\/a>Method 4: List Installed Packages on Ubuntu 22.04 Using Synaptic Package Manager (GUI)<\/h3>\n<p>Once <strong>Synaptic Package Manager<\/strong> was the default package manager on Ubuntu, and it was possibly the best package manager on Linux. However, it can still be used on Ubuntu to manage applications, such as install, remove, and get the list of applications on Ubuntu.<\/p>\n<p>Follow the guided steps given below to retrieve installed applications on Ubuntu 22.04.<\/p>\n<p><strong>Step 1: Install Synaptic Package Manager<\/strong><\/p>\n<p>Execute the below-mentioned command to install the <strong>Synaptic Package Manager <\/strong>on Ubuntu:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> synaptic <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"306\" class=\"wp-image-26022\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-14.png 855w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-14-300x107.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-14-768x275.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/p>\n<p><strong>Step 2: Launch Synaptic Package Manager<\/strong><\/p>\n<p>Once the <strong>Synaptic Package Manager<\/strong> is installed, click on the <strong>Show Applications<\/strong> button available in the left-bottom corner, search<strong> Synaptic<\/strong> and launch <strong>Synaptic Package Manager:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"281\" class=\"wp-image-26025\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-15.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-15-300x130.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<p>Enter the user password and hit the <strong>Authenticate<\/strong> button to launch it.<\/p>\n<p><strong>Step 3: List Installed Packages<\/strong><\/p>\n<p>After launching <strong>Synaptic Package Manager<\/strong> on Ubuntu, first, click on the <strong>Status<\/strong> button to get all the applications on Ubuntu. Then, click on the <strong>Installed <\/strong>button to only get the list of installed applications, as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"514\" class=\"wp-image-26027\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-16.png 696w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-16-300x222.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/p>\n<h3><a id=\"post-25975-_7c7jrrvgtqry\"><\/a>Method 5: List Installed Packages on Ubuntu 22.04 Using the Ubuntu Software Store (GUI)<\/h3>\n<p>You can also get the list of installed packages through the <strong>Ubuntu Software<\/strong> application. Check the guided steps given below to get installed applications through the <strong>Ubuntu Software<\/strong> application.<\/p>\n<ul>\n<li>Open the <strong>Ubuntu Software<\/strong> store via the left-screen application panel.<\/li>\n<li>Move to the <strong>Installed<\/strong> section:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"936\" height=\"522\" class=\"wp-image-26037\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-17.png 936w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-17-300x167.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-17-768x428.png 768w\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" \/><\/p>\n<h2><a id=\"post-25975-_ncof77tx9bl5\"><\/a>Bonus Tip 1: How to Create a List of Installed Packages on Ubuntu 22.04 Using dpkg-query<\/h2>\n<p>The <strong>dpkg-query<\/strong> command-line utility allows the users to save the installed packages list into the text file. To create an installed packages list, first, get the list of installed packages and then pipe them to the text file using the export sign &gt; and specify the text file where the list of installed packages on Ubuntu 22.04 will be stored. Execute the given command to create the list of installed packages on Ubuntu 22.04:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">dpkg-query <span class=\"re5\">-f<\/span> <span class=\"st_h\">'${binary:Package}\\n'<\/span> <span class=\"re5\">-W<\/span> <span class=\"sy0\">&gt;<\/span> list-debian-packages.txt<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"93\" class=\"wp-image-26046\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-18.png 963w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-18-300x29.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-18-768x74.png 768w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/p>\n<p>Remember to replace the text file with your text file:<\/p>\n<p>Now, read the text file to verify whether the installed packages list was created or not. To read the text file provide the text file to the cat command and then pipe it to the head command to print the first lines of the text file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">cat<\/span> list-debian-packages.txt <span class=\"sy0\">|<\/span> <span class=\"kw2\">head<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"287\" class=\"wp-image-26056\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-19.png 835w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-19-300x103.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-19-768x264.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>To install the saved packages on any Linux system, use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">xargs<\/span> <span class=\"re5\">-a<\/span> list-debian-packages.txt apt <span class=\"kw2\">install<\/span><\/div><\/div>\n<h2><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"309\" class=\"wp-image-26068\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-20.png 837w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-20-300x111.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-20-768x284.png 768w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/p>\n<h2><a id=\"post-25975-_2azer12qr5j5\"><\/a>Bonus Tip 2: How to Count the Number of Installed Packages on Ubuntu 22.04<\/h2>\n<p>Alongside getting the installed applications, you can also count the total number of installed packages through the apt command line utility. To get the total number of installed packages on Ubuntu, first write the command to get the installed packages and then pipe it to the wc command (World Count) alongside the<strong> -l<\/strong> command to count the number of lines:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> 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><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"181\" class=\"wp-image-26081\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-21.png 815w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-21-300x67.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-21-768x171.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>Alternatively, you can also count the number of installed packages using the dpkg command, as shown below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">-l<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">wc<\/span> <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"126\" class=\"wp-image-26088\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-22.png 890w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-22-300x42.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25975-22-768x109.png 768w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/p>\n<h2><a id=\"post-25975-_37e5eciba90m\"><\/a>Conclusion<\/h2>\n<p>Ubuntu lets you list down installed packages on your system. It lists down pre-installed, locally installed, and dependencies that depend on other applications on the system. The list of installed packages on Ubuntu can be retrieved through apt, dpkg, snap utility, and Ubuntu Software store. You can utilize any of the methods mentioned in the above section of this article to retrieve the list of applications installed on Ubuntu according to your preferences. Doing this will allow you to manage applications on your system and remove them to free up the disk space on the system.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can get the list of installed packages on Ubuntu through the apt package manager, dpkg package manager, snap utility, and Ubuntu Software store. <\/p>","protected":false},"author":110,"featured_media":26129,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-25975","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\/25975","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=25975"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/25975\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/26129"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=25975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=25975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=25975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}