{"id":5016,"date":"2024-10-10T07:09:28","date_gmt":"2024-10-10T07:09:28","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=5016"},"modified":"2024-10-10T07:23:59","modified_gmt":"2024-10-10T07:23:59","slug":"how-to-remove-unused-packages-in-linux","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/","title":{"rendered":"How To Remove Unused Packages in Linux"},"content":{"rendered":"\n<p>While using Linux, we all run out of disk space some time or the other. One of the simple ways to free up disk space is to just remove unnecessary packages in Linux. Otherwise, over time, our system will get crowded with too many applications and packages which eat up a lot of space. Also, when we install a Linux package, it invariably installs several dependencies along with it. They continue to exist even after you have uninstalled the original application. In this article, we will learn different ways to find and remove unused packages in Linux.<\/p>\n\n\n\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 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#Why_Remove_Unused_Packages_in_Linux\" >Why Remove Unused Packages in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#How_to_Find_Unused_Packages\" >How to Find Unused Packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#How_To_Remove_Unused_Packages_in_Linux\" >How To Remove Unused Packages in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#1_Using_apt-get_purge\" >1. Using apt-get purge<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#2_Using_apt-get_remove\" >2. Using apt-get remove<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#3_Using_apt-get_autoremove\" >3. Using apt-get autoremove<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#4_Using_ppa-purge\" >4. Using ppa-purge<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#5_Using_dpkg\" >5. Using dpkg<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#6_Using_Dnf\" >6. Using Dnf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#8_Using_Yum\" >8. Using Yum<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Remove_Unused_Packages_in_Linux\"><\/span>Why Remove Unused Packages in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>It is important to regularly find and remove unnecessary packages from our Linux system. Otherwise, they will fill up our hard disk and we will run out of disk space. This will adversely affect our system performance and sometimes it may even crash. Sometimes, these applications are enabled to auto start in the background during system startup. In such cases, they will be automatically loaded into your system&#8217;s memory and you will run out of RAM too. <\/p>\n\n\n\n<p>When you update or upgrade your system, all these unused packages will be updated unnecessarily, causing unnecessary downloads, increased data consumption and longer update time. Their dependencies might interfere with those of the applications that you actually use and disrupt your system. For all these reasons, it is prudent to periodically clean up your system of unused packages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Find_Unused_Packages\"><\/span>How to Find Unused Packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before we uninstall a package, we need to find out if it is present in our system or not, along with its exact name. For this purpose, you can use dpkg or apt commands. Here are the commands to list all installed packages on Debian\/Ubuntu systems.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt list --installed<br>OR<br>$ sudo dpkg --list<\/pre>\n\n\n\n<p>If you want to search for a specific package name, you can run the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt list --installed | grep &lt;software_name><br>OR<br>$ sudo dpkg --list | grep &lt;software_name><\/pre>\n\n\n\n<p>For example, here are the commands to search for package name of firefox in your system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt list --installed | grep firefox<br>OR<br>$ sudo dpkg --list | grep firefox<\/pre>\n\n\n\n<p>On Redhat\/Fedora\/CentOS systems, you can use Yum package manager.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum search &lt;package_name><br>OR<br># yum list *&lt;package_name>*<\/pre>\n\n\n\n<p>You can also find orphaned packages on your system using third-party packages such as deborphan for Debian\/Ubuntu systems and rpmorphan for RPM-based Linux such as Redhat\/Fedora\/CentOS.<\/p>\n\n\n\n<p>Here is the command to install deborphan and use it to list orphaned packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install deborphan<br>$ deborphan<\/pre>\n\n\n\n<p>Here is the command to install rpmorphan and use it to list orphaned packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># dnf install perl perl-Tk<br># rpm -Uvh rpmorphan-1.16-1.noarch.rpm<br># rpmorphan<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_To_Remove_Unused_Packages_in_Linux\"><\/span>How To Remove Unused Packages in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Once you have found out all unused packages on your system, you can use any of the following methods to uninstall them. First, we will cover different solutions for Debian\/Ubuntu systems, followed by those for RPM-based systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Using_apt-get_purge\"><\/span>1. Using apt-get purge<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/APT_(software)\" target=\"_blank\" rel=\"noreferrer noopener\">APT<\/a> is one of the most popular package managers for Ubuntu systems. It provides apt-get command that is commonly used for installing as well uninstalling software. You can use &#8216;apt-get purge&#8217; command followed by package name, to completely uninstall the package. Here is its syntax.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get purge &lt;package_name><\/pre>\n\n\n\n<p>The above command will also remove configuration files and user settings along with software files. It is useful if you are sure you will never use the package again, or if you want to do a fresh re-install.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Using_apt-get_remove\"><\/span>2. Using apt-get remove<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can also use &#8216;apt-get remove&#8217; command, followed by package name, to remove only the software files, but retain the configuration files and user settings.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get remove &lt;package_name><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Using_apt-get_autoremove\"><\/span>3. Using apt-get autoremove<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When we install a package, it also installs several dependencies along with it. When we remove the package using above commands, its dependencies are not removed. To remove these dependencies, you can run the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get autoremove<\/pre>\n\n\n\n<p>The above command will automatically scan your system for all unused dependencies and display them along with Y\/N prompt to confirm their uninstallation. It is a good practice to regularly run this command to keep your system clean.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Using_ppa-purge\"><\/span>4. Using ppa-purge<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The above commands work only on packages which have been installed using apt-get command. If you have installed the package via ppa repository, then you can use ppa-purge command to completely remove it from your system. Here is the command to install ppa-purge utility.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install ppa-purge<\/pre>\n\n\n\n<p>Once you have installed ppa-purge, you can remove a package using the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo ppa-purge &lt;ppa:repository-name><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Using_dpkg\"><\/span>5. Using dpkg<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you have installed packages using dpkg package manager, then you can uninstall them using the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo dpkg --remove &lt;package_name><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_Using_Dnf\"><\/span>6. Using Dnf<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>On RPM-based systems such as Redhat, Fedora and CentOS, you can use dnf command to easily remove packages using the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo dnf --remove &lt;package_name><\/pre>\n\n\n\n<p>The above command will only remove the package and not its dependencies. In order to remove these dependencies, you need to also run the following command afterwards.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo dnf autoremove<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8_Using_Yum\"><\/span>8. Using Yum<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Yum is a popular package manager for RPM-based systems such as Redhat, Fedora, and CentOS. You can remove RPM packages from your Linux system using the following command. Please remember to log in as root or privileged user before you run these commands because only they have adequate permission to run them.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ yum remove &lt;package_name><br>OR<br>$ yum erase &lt;package_name><\/pre>\n\n\n\n<p>Once you have removed the above package, you <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we have learnt several simple ways to quickly find and remove unused packages in Linux. You can use any of these methods depending on your requirements. It is important to regularly identify and uninstall unnecessary packages from your system, to avoid running out of disk space. This will keep your system nimble and healthy.<\/p>\n\n\n\n<p>Also read:<\/p>\n\n\n\n<p><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-uninstall-nvidia-drivers-in-ubuntu\/\">How to Uninstall NVIDIA Drivers in Ubuntu<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-clone-object-in-javascript\/\">How to Clone Object in JavaScript<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-split-list-into-even-chunks-in-python\/\">How to Split Python List into Even Chunks<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Often System administrators need to remove unused packages in Linux. Here are the different ways to uninstall packages in Linux.<\/p>\n","protected":false},"author":1,"featured_media":5046,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[110],"tags":[319],"class_list":["post-5016","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-remove-package"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Remove Unused Packages in Linux - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Often System administrators need to remove unused packages in Linux. Here are the different ways to uninstall packages in Linux.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Remove Unused Packages in Linux - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Often System administrators need to remove unused packages in Linux. Here are the different ways to uninstall packages in Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-10T07:09:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-10T07:23:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How To Remove Unused Packages in Linux\",\"datePublished\":\"2024-10-10T07:09:28+00:00\",\"dateModified\":\"2024-10-10T07:23:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/\"},\"wordCount\":908,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1\",\"keywords\":[\"remove package\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/\",\"url\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/\",\"name\":\"How To Remove Unused Packages in Linux - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1\",\"datePublished\":\"2024-10-10T07:09:28+00:00\",\"dateModified\":\"2024-10-10T07:23:59+00:00\",\"author\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Often System administrators need to remove unused packages in Linux. Here are the different ways to uninstall packages in Linux.\",\"breadcrumb\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1\",\"width\":300,\"height\":200,\"caption\":\"remove unused packages in linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ubiq.co\/tech-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Remove Unused Packages in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#website\",\"url\":\"https:\/\/ubiq.co\/tech-blog\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/\"],\"url\":\"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Remove Unused Packages in Linux - Ubiq BI","description":"Often System administrators need to remove unused packages in Linux. Here are the different ways to uninstall packages in Linux.","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:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How To Remove Unused Packages in Linux - Ubiq BI","og_description":"Often System administrators need to remove unused packages in Linux. Here are the different ways to uninstall packages in Linux.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2024-10-10T07:09:28+00:00","article_modified_time":"2024-10-10T07:23:59+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How To Remove Unused Packages in Linux","datePublished":"2024-10-10T07:09:28+00:00","dateModified":"2024-10-10T07:23:59+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/"},"wordCount":908,"commentCount":0,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1","keywords":["remove package"],"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/","name":"How To Remove Unused Packages in Linux - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1","datePublished":"2024-10-10T07:09:28+00:00","dateModified":"2024-10-10T07:23:59+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Often System administrators need to remove unused packages in Linux. Here are the different ways to uninstall packages in Linux.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1","width":300,"height":200,"caption":"remove unused packages in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-unused-packages-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How To Remove Unused Packages in Linux"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2024\/10\/remove-unused-packages-in-linux.jpg?fit=300%2C200&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-1iU","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/5016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=5016"}],"version-history":[{"count":35,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/5016\/revisions"}],"predecessor-version":[{"id":5052,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/5016\/revisions\/5052"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/5046"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=5016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=5016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=5016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}