{"id":3379,"date":"2023-01-10T08:18:10","date_gmt":"2023-01-10T08:18:10","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=3379"},"modified":"2024-01-18T11:38:07","modified_gmt":"2024-01-18T11:38:07","slug":"apt-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/apt-command-in-linux\/","title":{"rendered":"The \u201capt\u201d Command in Linux [13+ Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>apt<\/strong> command in <strong>Linux<\/strong> stands for \u201c<strong>A<\/strong>dvanced <strong>P<\/strong>ackage <strong>T<\/strong>ool\u201d. It is a <strong>command-line<\/strong> <strong>interface<\/strong> for managing the packages on a user\u2019s system. You can perform several actions including installation, update, and removal of packages with this command. In this article, you will find the most common uses of the <strong>apt<\/strong> command in <strong>Linux<\/strong> with practical examples.<\/p>\n<div class=\"su-youtube su-u-responsive-media-yes\"><iframe width=\"600\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/Il6cXMEGjy8?\" frameborder=\"0\" allowfullscreen allow=\"autoplay; encrypted-media; picture-in-picture\" title=\"\"><\/iframe><\/div>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#A_Description\" >A. Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#B_Syntax\" >B. Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#C_Option\" >C. Option<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#D_Commands\" >D. Commands<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201capt\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_1_Installing_New_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 1: Installing New Packages Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_2_Reinstalling_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 2: Reinstalling Packages Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_3_Removing_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 3: Removing Packages Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_4_Removing_Configuration_Files_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 4: Removing Configuration Files Using the \u201capt\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Case_A_Removing_All_The_Leftover_Configuration_Files_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Case A: Removing All The Leftover Configuration Files Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Case_B_Removing_Leftover_Configuration_Files_of_a_Certain_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Case B: Removing Leftover Configuration Files of a Certain Package Using the \u201capt\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_5_Downloading_Package_Information_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 5: Downloading Package Information Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_6_Upgrading_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 6: Upgrading Packages Using the \u201capt\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Case_A_Upgrading_All_the_Existing_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Case A: Upgrading All the Existing Packages Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Case_B_Upgrading_a_Specific_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Case B: Upgrading a Specific Package Using the \u201capt\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_7_Upgrading_Full_System_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 7: Upgrading Full System Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_8_Listing_Available_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 8: Listing Available Packages Using the \u201capt\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Case_A_Listing_All_the_Available_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Case A: Listing All the Available Packages Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Case_B_Listing_Installed_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Case B: Listing Installed Packages Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Case_C_Listing_Upgradeable_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Case C: Listing Upgradeable Packages Using the \u201capt\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_9_Searching_for_a_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 9: Searching for a Package Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_10_Displaying_Package_Information_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 10: Displaying Package Information Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_11_Downloading_a_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 11: Downloading a Package Using the \u201capt\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_12_Automatically_Removing_Installed_Packages_That_are_No_Longer_Needed\" >Example 12: Automatically Removing Installed Packages\u00a0 That are No Longer Needed<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Example_13_Editing_the_%E2%80%9CSourcelist%E2%80%9D_File_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\" >Example 13: Editing the \u201cSource.list\u201d File Using the \u201capt\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A. Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>apt<\/strong> command in <strong>Linux<\/strong> provides an interactive interface for the user. You must use the <strong>sudo<\/strong> command along with <strong>apt<\/strong> to get <strong>root<\/strong> permissions while managing packages on your machine. These actions are achieved by combining <strong>apt<\/strong> with the corresponding commands.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"B_Syntax\"><\/span>B. Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The syntax for the <strong>apt<\/strong> command is quite easy to follow. At first, you will need to type the <strong>apt<\/strong> command. Then write the command for your desired action and then the name of the package\/s.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">apt command pkg\u2026<\/code><\/pre>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note: <\/strong>In the above syntax<strong> pkg<\/strong> followed by 3 dots represents that multiple packages can be utilized simultaneously. <\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"C_Option\"><\/span>C. Option<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Many useful <strong>options<\/strong> are available for the <strong>apt<\/strong> command. I have listed some of the most used ones here. However, you can look at the <strong>man page<\/strong> to learn more.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man apt<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Useful Options<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-d\/&#8211;download-only: <\/strong>Downloads a package but does not install.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8211;only-upgrade: <\/strong>Upgrades a specific package.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8211;installed: <\/strong>Returns only installed packages.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8211;upgradeable: <\/strong>Returns only upgradeable packages.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-y: <\/strong>Answers \u201cyes\u201d to prompt without interruption.<\/li>\n<\/ul>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note:<\/strong> The <strong>options<\/strong> in Linux <a href=\"https:\/\/linuxsimply.com\/cli-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>CLI (Command Line Interface)<\/strong><\/a> are all <strong>case-sensitive<\/strong>, So be cautious while using them. <\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"D_Commands\"><\/span>D. Commands<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The <strong>Linux <\/strong>distribution provides a list of commands for the <strong><a href=\"https:\/\/linuxsimply.com\/linux-basics\/package-management\/\" target=\"_blank\" rel=\"noopener\">package management<\/a><\/strong> system. These commands are applied along with the <strong>apt<\/strong> command in <strong>Linux<\/strong>. Below are the most frequently used package managing commands. You can find more details on the <strong>man page<\/strong> of this command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man apt<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Useful Commands<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>autoremove: <\/strong>Removes packages currently not needed.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>edit-sources: <\/strong>Allows editing of <strong>sources.list<\/strong> files.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>full-upgrade: <\/strong>Upgrades the system as a whole.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>install: <\/strong>Installs packages.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>list: <\/strong>Displays a list of packages.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>purge: <\/strong>Removes leftover configuration files.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>search: <\/strong>Searches for mentioned package.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>show: <\/strong>Displays information about the mentioned package.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>remove: <\/strong>Removes packaged data.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>reinstall: <\/strong>Reinstalls packages.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>update: <\/strong>Downloads package information from all configured sources.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>upgrade: <\/strong>Installs available upgrades of all packages currently installed.<\/li>\n<\/ul>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note:<\/strong> These <strong>commands<\/strong> in Linux <strong>CLI (Command Line Interface)<\/strong> are all <strong>case-sensitive<\/strong>, So be cautious while using them. <\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <strong>apt <\/strong>command in <strong>Linux <\/strong>provides an end-user interface for the package management system. You can handle packages from the <strong>command line<\/strong> using this tool. Here are some practical examples of managing packages using the <strong>apt <\/strong>command in <strong>Linux<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_Installing_New_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 1: Installing New Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using the <strong>apt<\/strong> command in <strong>Linux<\/strong> you can install new packages in your system. In this example, I will show you the installation of the <strong>ncal <\/strong>package using the <strong>apt<\/strong> command. You can follow the steps below to do the same.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <a href=\"https:\/\/linuxsimply.com\/what-is-terminal-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>Ubuntu Terminal<\/strong><\/a>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt install ncal<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the given image, you can see that I have installed the <strong>ncal<\/strong> package on my machine.<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-3401\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1.png\" alt=\"Installing packages using apt command in linux.\" width=\"825\" height=\"495\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-300x180.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-1024x614.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-767x460.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-1536x922.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-2048x1229.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-250x150.png 250w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-100x60.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-583x350.png 583w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-1-788x472.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/apt-get-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201capt-get\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/firewall-cmd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfirewall-cmd\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/finger-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfinger\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/env-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cenv \u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/enable-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cenable\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_Reinstalling_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 2: Reinstalling Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using the <strong>apt<\/strong> command in <strong>Linux<\/strong> you can reinstall existing packages in your system. In this example, I will show you the process of reinstalling the <strong>ncal <\/strong>package using the <strong>apt<\/strong> command.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first go to the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Write the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt reinstall ncal<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, press <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the image below, you can see that I have reinstalled the <strong>ncal<\/strong> package on my machine.<img decoding=\"async\" class=\"aligncenter size-full wp-image-3383\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2.png\" alt=\"Reinstalling sudo apt reinstall ncal\" width=\"825\" height=\"432\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-300x157.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-1024x536.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-768x402.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-1536x804.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-2048x1072.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-286x150.png 286w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-100x52.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-668x350.png 668w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-2-788x412.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_Removing_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 3: Removing Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can remove an existing package from your system using the <strong>apt<\/strong> command in <strong>Linux <\/strong>with the command <strong>remove<\/strong>. In this example, I will illustrate removing the <strong>ncal <\/strong>package from my machine.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt remove ncal<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Hit <strong>ENTER<\/strong>.<\/p>\n<p>\u277a Press <strong>Y<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the following image, you can see that I have removed the <strong>ncal<\/strong> package from my system.<img decoding=\"async\" class=\"aligncenter size-full wp-image-3384\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3.png\" alt=\"Removing sudo apt reinstall ncal\" width=\"825\" height=\"378\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-300x137.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-1024x469.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-766x351.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-1536x704.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-2048x938.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-327x150.png 327w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-100x46.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-764x350.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-3-788x361.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/time-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctime\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/tty-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctty\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/uptime-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cuptime\u201d Command in Linux [5 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cvmstat\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/uname-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cuname\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Removing_Configuration_Files_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 4: Removing Configuration Files Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Using the <strong>remove<\/strong> command with <strong>apt <\/strong>usually leaves the small <strong>configuration files<\/strong> on your system. You can get rid of these unwanted <strong>configuration files<\/strong> using the <strong>apt<\/strong> with the <strong>purge<\/strong> command. You will be able to remove all the leftover configuration files at once as well as files remaining from a specific package. To learn about the two different applications of the command follow the cases below.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Removing_All_The_Leftover_Configuration_Files_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Case A: Removing All The Leftover Configuration Files Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To remove all the unwanted configuration files follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first go to the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt purge<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In this image, you can see that the <strong>purge <\/strong>command searched for all the unwanted files on my machine. Since no file has left, it counted 0 files for removal.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8028 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-18.png\" alt=\"Removing all the leftover configuration files using apt command in linux.\" width=\"700\" height=\"116\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-18.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-18-300x50.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-18-766x127.png 766w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Removing_Leftover_Configuration_Files_of_a_Certain_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Case B: Removing Leftover Configuration Files of a Certain Package Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To remove the configuration file of a certain package try the given steps.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt purge ncal<\/code><\/pre>\n<p>\u278c Type your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In this image, you can see that I am removing the <strong>ncal<\/strong> package using the purge command. It removes the package along with all the configuration files.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3399\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19.png\" alt=\"Removing specific package configuration file using apt command in linux.\" width=\"825\" height=\"277\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-300x101.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-1024x344.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-765x257.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-1536x516.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-2048x688.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-447x150.png 447w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-100x34.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-1042x350.png 1042w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-19-788x264.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_5_Downloading_Package_Information_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 5: Downloading Package Information Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can download available package information from the <strong>command line<\/strong> using the <strong>apt<\/strong> with the command <strong>update<\/strong>. In this example, I will download available package information on my machine. To do so you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt update<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the given image, you can see that I have downloaded all the available package information on my terminal.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3385\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4.png\" alt=\"Downloading package information using apt command in linux.\" width=\"825\" height=\"641\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-300x233.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-1024x796.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-767x596.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-1536x1193.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-2048x1591.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-193x150.png 193w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-100x78.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-450x350.png 450w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-4-788x612.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/free-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfree\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgetent\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/groupadd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgroupadd\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/addgroup-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201caddgroup\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/groups-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgroups\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_6_Upgrading_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 6: Upgrading Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Using the <strong>apt<\/strong> command in <strong>Linux<\/strong> you can upgrade installed packages in your system. To do so you will need to combine the command <strong>upgrade<\/strong>. You can upgrade either all the available packages or a specific package. By following the examples below, you will be able to achieve any of the desired actions.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Upgrading_All_the_Existing_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Case A: Upgrading All the Existing Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To upgrade every package on your system follow the given steps.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first go to the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt upgrade<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In this image, you can see that I have upgraded all the available packages on my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3387\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6.png\" alt=\"upgrading all packages using apt command in linux.\" width=\"825\" height=\"647\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-300x235.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-1024x803.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-768x602.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-1536x1205.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-2048x1606.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-191x150.png 191w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-100x78.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-446x350.png 446w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-6-788x617.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Upgrading_a_Specific_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Case B: Upgrading a Specific Package Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>In this example, I will show you upgrading only the <strong>ncal<\/strong> package on my machine. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first go to the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt install ncal --only-upgrade<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, press <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the given image, you can see that I have only upgraded the <strong>ncal<\/strong> package on my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3386\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5.png\" alt=\"Upgrading specific package using apt command in linux.\" width=\"825\" height=\"275\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-300x100.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-1024x341.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-768x256.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-1536x512.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-2048x683.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-450x150.png 450w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-100x33.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-1050x350.png 1050w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-5-788x262.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note:<\/strong> The <strong>update<\/strong> command applied with <strong>apt<\/strong> will not update the packages on your system. Rather it will only download the available package information. On the contrary, the <strong>upgrade<\/strong> command can be used for updating packages.<\/p>\n<\/div><\/div>\n<div class=\"su-youtube su-u-responsive-media-yes\"><iframe width=\"600\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/ur_VYH6eUTo?\" frameborder=\"0\" allowfullscreen allow=\"autoplay; encrypted-media; picture-in-picture\" title=\"\"><\/iframe><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Example_7_Upgrading_Full_System_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 7: Upgrading Full System Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using the <strong>apt<\/strong> command in <strong>Linux<\/strong> you can upgrade the system as a whole. The full-upgrade command may remove installed packages and install updated packages. In this example, I will upgrade my full system. You can follow the steps below to do the same.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt full-upgrade<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Press <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the following image, you can see that I have upgraded the system using the <strong>apt<\/strong> command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3391\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11.png\" alt=\"Full system upgrade using apt command in linux.\" width=\"825\" height=\"636\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-300x231.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-1024x789.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-768x592.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-1536x1184.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-2048x1579.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-195x150.png 195w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-100x77.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-454x350.png 454w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-11-788x607.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/groupmod-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgroupmod\u201d Command in Linux [5+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cid\u201d Command in Linux [7+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/service-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cservice\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sestatus-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csestatus\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/shutdown-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cshutdown\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_8_Listing_Available_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 8: Listing Available Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can display a list of packages on your <strong>Terminal<\/strong> using the apt command in <strong>Linux<\/strong>. For this, you will need to use the command <strong>list<\/strong> as well. You can display all the available packages, installed packages, and upgradeable packages separately. Follow the examples below to learn about the separate applications of these commands.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Listing_All_the_Available_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Case A: Listing All the Available Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To list all the available packages on the machine follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt list<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the image below, you can see that I have listed all the available packages on my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8026\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-7.png\" alt=\"Listing all packages using apt command in linux.\" width=\"700\" height=\"804\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-7.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-7-261x300.png 261w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-7-768x882.png 768w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Listing_Installed_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Case B: Listing Installed Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To display a list of installed packages on your system follow the given steps.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt list --installed<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In this image, you can see that I have displayed the installed packages on my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3389\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9.png\" alt=\"Listing all installed using apt command in linux.\" width=\"825\" height=\"641\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-300x233.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-1024x796.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-767x596.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-1536x1193.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-2048x1591.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-193x150.png 193w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-100x78.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-450x350.png 450w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-9-788x612.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_C_Listing_Upgradeable_Packages_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Case C: Listing Upgradeable Packages Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To list the upgradeable packages on your system follow the given process.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt list --upgradeable<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In this, you can see that I have listed all the upgradeable packages on my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3390 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10.png\" alt=\"Listing all upgradeable packages using apt command in linux.\" width=\"825\" height=\"641\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-300x233.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-1024x796.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-767x596.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-1536x1193.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-2048x1591.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-193x150.png 193w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-100x78.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-450x350.png 450w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-10-788x612.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_9_Searching_for_a_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 9: Searching for a Package Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can search for a specific package from the <strong>command line<\/strong> using the <strong>apt<\/strong> with the command <strong>search<\/strong>. In this example, I will search for the <strong>ncal <\/strong>package on my system. To do so you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt search ncal<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In this image, you can see that I have searched for the <strong>ncal<\/strong> package. The command returned every package that has the string \u201c<strong>ncal<\/strong>\u201d in its name along with the <strong>ncal<\/strong> package.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8027 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-12.png\" alt=\"Searching for a package Full-system upgrade using apt command in linux.\" width=\"700\" height=\"507\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-12.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-12-300x217.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-12-768x556.png 768w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/dmesg-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdmesg\u201d Command in Linux [7+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/install-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cinstall\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/reboot-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201creboot\u201d Command in Linux [3 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sync-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csync\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/chage-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cchage\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_10_Displaying_Package_Information_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 10: Displaying Package Information Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can display information about a package from the <strong>command line<\/strong> using the <strong>apt<\/strong> with the command <strong>show<\/strong>. In this example, I will show information about the <strong>ncal<\/strong> package. You can follow the steps below to do the same.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt show ncal<\/code><\/pre>\n<p>\u278c Give your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the given image, you can see that I have shown the <strong>ncal<\/strong> package information on my <strong>Terminal<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3397\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17.png\" alt=\"Display package information using apt command in linux.\" width=\"825\" height=\"490\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-300x178.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-1024x608.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-768x456.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-1536x912.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-2048x1216.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-253x150.png 253w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-100x59.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-589x350.png 589w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-17-788x468.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_11_Downloading_a_Package_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 11: Downloading a Package Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You will be able to download a package using the <strong>apt<\/strong> command in Linux. The download command used for this task only downloads the package on your machine. In this example, I will illustrate downloading the <strong>ncal<\/strong> package. You can follow the given steps to do the same.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt install --download-only ncal<\/code><\/pre>\n<p>\u278c Type your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Press <strong>ENTER<\/strong> key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the image below, you can see that I have downloaded the <strong>ncal<\/strong> package from my <strong>Terminal<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33824\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dwonload-package-using-apt.png\" alt=\"Download the 'ncal' package using apt.\" width=\"825\" height=\"294\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dwonload-package-using-apt.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dwonload-package-using-apt-300x107.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dwonload-package-using-apt-768x274.png 768w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_12_Automatically_Removing_Installed_Packages_That_are_No_Longer_Needed\"><\/span>Example 12: Automatically Removing Installed Packages\u00a0 That are No Longer Needed<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Using the <strong>apt<\/strong> command in <strong>Linux<\/strong> you can remove packages that are no longer needed. These packages are generally installed to satisfy dependency with other packages. In this example, I will remove unnecessary packages using the <strong>apt<\/strong> command. You can follow the steps below to do the same.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command line:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt autoremove<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Now, hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the given image, you can see that I have removed the unnecessary packages from my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3394\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14.png\" alt=\"Automatically remove unwanted packages using apt command in linux.\" width=\"825\" height=\"492\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-300x179.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-1024x611.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-768x458.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-1536x916.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-2048x1221.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-252x150.png 252w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-100x60.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-587x350.png 587w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-14-788x469.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_13_Editing_the_%E2%80%9CSourcelist%E2%80%9D_File_Using_the_%E2%80%9Capt%E2%80%9D_Command_in_Linux\"><\/span>Example 13: Editing the \u201cSource.list\u201d File Using the \u201capt\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>apt <\/strong>command in <strong>Linux <\/strong>allows you to edit the \u201c<strong>source.list<\/strong>\u201d file. To do so you will need to run the command <strong>edit-source<\/strong>. In this example, I will open my \u201c<strong>source.list<\/strong>\u201d file on a text file editor. You can achieve the same result by following the process below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt edit-sources<\/code><\/pre>\n<p>\u278c Enter your <strong>Password<\/strong>.<\/p>\n<p>\u2779 Hit <strong>ENTER<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the image below, you can see that I have opened the \u201c<strong>source.list<\/strong>\u201d file on the <strong>nano<\/strong> editor. The command allows editing of this file.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3396\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16.png\" alt=\"Command for editing source.list file .\" width=\"528\" height=\"28\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16.png 528w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16-300x16.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16-1024x54.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16-754x40.png 754w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16-1536x81.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16-2048x109.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16-100x5.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-16-788x41.png 788w\" sizes=\"(max-width: 528px) 100vw, 528px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3395\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15.png\" alt=\"Editing source.list file using apt command in linux.\" width=\"825\" height=\"720\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-300x262.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-1024x894.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-768x670.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-1536x1341.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-2048x1787.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-172x150.png 172w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-100x87.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-401x350.png 401w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux-15-788x687.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, I have presented the most frequent applications of the <strong>apt<\/strong> command in <strong>Linux<\/strong>. You will find more <strong>commands<\/strong> and <strong>options<\/strong> associated with the <strong>apt<\/strong> on its <strong>man page<\/strong>. However, these practical examples of the <strong>apt<\/strong> command should aid your engagement with <strong>Linux<\/strong> and make you an expert in the <strong>command line<\/strong>.<\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/passwd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;passwd&#8221; Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sudo-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csudo\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/df-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdf\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/top-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;top&#8221; Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/htop-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;htop&#8221; Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;3379&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201capt\u201d Command in Linux [13+ Practical Examples]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The apt command in Linux stands for \u201cAdvanced Package Tool\u201d. It is a command-line interface for managing the packages on &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201capt\u201d Command in Linux [13+ Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/#more-3379\" aria-label=\"Read more about The \u201capt\u201d Command in Linux [13+ Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314896,"featured_media":3400,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[51],"class_list":["post-3379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-system-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201capt\u201d Command in Linux [13+ Practical Examples]<\/title>\n<meta name=\"description\" content=\"The apt command in Linux offers a high level interface for user interactions. You can manage processes from Terminal with this command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201capt\u201d Command in Linux [13+ Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The apt command in Linux offers a high level interface for user interactions. You can manage processes from Terminal with this command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/profile.php?id=100005994046772&amp;mibextid=ZbWKwL\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-10T08:18:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-18T11:38:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Anonnya Ghosh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anonnya Ghosh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/\"},\"author\":{\"name\":\"Anonnya Ghosh\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\"},\"headline\":\"The \u201capt\u201d Command in Linux [13+ Practical Examples]\",\"datePublished\":\"2023-01-10T08:18:10+00:00\",\"dateModified\":\"2024-01-18T11:38:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/\"},\"wordCount\":2502,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/apt-command-in-linux.png\",\"keywords\":[\"system commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/\",\"name\":\"The \u201capt\u201d Command in Linux [13+ Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/apt-command-in-linux.png\",\"datePublished\":\"2023-01-10T08:18:10+00:00\",\"dateModified\":\"2024-01-18T11:38:07+00:00\",\"description\":\"The apt command in Linux offers a high level interface for user interactions. You can manage processes from Terminal with this command.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/apt-command-in-linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/apt-command-in-linux.png\",\"width\":400,\"height\":400,\"caption\":\"apt command in linux.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/apt-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201capt\u201d Command in Linux [13+ Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\",\"name\":\"Anonnya Ghosh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"caption\":\"Anonnya Ghosh\"},\"description\":\"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=100005994046772&mibextid=ZbWKwL\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/anonnya-ghosh-6a934b211\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/anonya\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201capt\u201d Command in Linux [13+ Practical Examples]","description":"The apt command in Linux offers a high level interface for user interactions. You can manage processes from Terminal with this command.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/apt-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201capt\u201d Command in Linux [13+ Practical Examples]","og_description":"The apt command in Linux offers a high level interface for user interactions. You can manage processes from Terminal with this command.","og_url":"https:\/\/linuxsimply.com\/apt-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","article_published_time":"2023-01-10T08:18:10+00:00","article_modified_time":"2024-01-18T11:38:07+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux.png","type":"image\/png"}],"author":"Anonnya Ghosh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Anonnya Ghosh","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/"},"author":{"name":"Anonnya Ghosh","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c"},"headline":"The \u201capt\u201d Command in Linux [13+ Practical Examples]","datePublished":"2023-01-10T08:18:10+00:00","dateModified":"2024-01-18T11:38:07+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/"},"wordCount":2502,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux.png","keywords":["system commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/apt-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/","url":"https:\/\/linuxsimply.com\/apt-command-in-linux\/","name":"The \u201capt\u201d Command in Linux [13+ Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux.png","datePublished":"2023-01-10T08:18:10+00:00","dateModified":"2024-01-18T11:38:07+00:00","description":"The apt command in Linux offers a high level interface for user interactions. You can manage processes from Terminal with this command.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/apt-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/apt-command-in-linux.png","width":400,"height":400,"caption":"apt command in linux."},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/apt-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201capt\u201d Command in Linux [13+ Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c","name":"Anonnya Ghosh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","caption":"Anonnya Ghosh"},"description":"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","https:\/\/www.linkedin.com\/in\/anonnya-ghosh-6a934b211"],"url":"https:\/\/linuxsimply.com\/author\/anonya\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/3379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314896"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=3379"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/3379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/3400"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=3379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=3379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=3379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}