{"id":1696,"date":"2021-12-16T13:53:07","date_gmt":"2021-12-16T10:53:07","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/02\/27\/debian-uninstall-package-guide\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/02\/27\/debian-uninstall-package-guide\/"},"modified":"2021-12-16T13:53:07","modified_gmt":"2021-12-16T10:53:07","slug":"debian-uninstall-package-guide","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1696-debian-uninstall-package-guide\/","title":{"rendered":"Debian: uninstall package [Guide]"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>\u00a0From Apt-get to Synaptic Package Manager, there are many ways to uninstall packages in Debian Linux. In this guide, we\u2019ll show you all the ways you can uninstall packages from your Debian Linux system.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396359 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/debian-uninstall-package-guide.png\" alt=\"Debian: uninstall package \" width=\"1201\" height=\"590\"\/><\/p>\n<h2>Debian: uninstall package \u2013 Apt-get<\/h2>\n<p>The best way to uninstall a package on Debian Linux is with the\u00a0<strong>Apt-get\u00a0<\/strong>tool.\u00a0<strong>Apt-get\u00a0<\/strong>has been the standard Debian package manager for a very long time. It\u2019s incredibly versatile and easy to use. Here\u2019s how to use it to uninstall packages.<\/p>\n<p>First, open up a terminal window. To open up a terminal window on the Debian desktop, press\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard. Alternatively, search for \u201cTerminal\u201d in the app menu to open it.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396351 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/debian-uninstall-package-guide-2.png\" alt=\"\" width=\"1200\" height=\"557\"\/><\/p>\n<p>Once the terminal window is open and ready to use, execute the\u00a0<strong>dpkg-query\u00a0<\/strong>command. This command will display all installed packages on your Debian Linux system.<\/p>\n<pre>\nsudo dpkg-query -l | less\n<\/pre>\n<p>Look through the list of installed packages on your Debian Linux PC and find the name of the package you wish to remove. Once you\u2019ve found the name of the package you want to remove from Debian, make use of the <strong>apt-get remove\u00a0<\/strong>command below.<\/p>\n<pre>\nsudo apt-get remove package_to_remove\n<\/pre>\n<p>Alternatively, if you want to thoroughly purge the package and all of its configuration files from Debian, you can use the <strong>\u2013purge\u00a0<\/strong>function.<\/p>\n<pre>\nsudo apt-get remove package_to_remove --purge\n<\/pre>\n<h2>Debian: uninstall package \u2013 Apt<\/h2>\n<p>Another way you can uninstall a package from Debian Linux is with the\u00a0<strong>Apt\u00a0<\/strong>command.\u00a0<strong>Apt\u00a0<\/strong>is a modern reformation of\u00a0<strong>Apt-get<\/strong>. It has more advanced functionality, is faster, and has a built-in search feature, so you do not need to use <strong>dpkg-query<\/strong>.\u00a0<\/p>\n<p>To uninstall a package on Debian, you must first use the <strong>apt search\u00a0<\/strong>feature and use it to find the name of the package you wish to install. Using the\u00a0<strong>apt search\u00a0<\/strong>command below, search for your package.<\/p>\n<pre>\napt search package_to_remove\n<\/pre>\n<p>After executing your search term, look through the list of search results for the package you wish to uninstall. Keep in mind that the search results may be very long.\u00a0<\/p>\n<p>If you cannot find your installed package in the search results, try combining it with the <strong>grep\u00a0<\/strong>command to filter out packages that are not installed on your computer.\u00a0<\/p>\n<p>To filter out your search results, enter the following command into a terminal window.\u00a0<\/p>\n<pre>\napt search package_to_remove | grep \"installed\"\n<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396349 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/debian-uninstall-package-guide-3.png\" alt=\"\" width=\"1200\" height=\"559\"\/><\/p>\n<p>Once you\u2019ve determined the name of the package you wish to remove from your Debian Linux system, make use of the following\u00a0<strong>apt remove\u00a0<\/strong>command to uninstall the package from your Debian Linux system.<\/p>\n<pre>\nsudo apt remove package_to_remove\n<\/pre>\n<p>Want to thoroughly purge the package from your Debian system, along with all of its configuration files? Use the <strong>\u2013purge\u00a0<\/strong>command-line switch.<\/p>\n<pre>\nsudo apt remove package_to_remove --purge\n<\/pre>\n<h2>Debian: uninstall package \u2013 Synaptic<\/h2>\n<p>If you use Debian and need to uninstall a package but don\u2019t like using the terminal, Synaptic Package Manager is the way to go. To get started, open up the app menu and launch Synaptic.\u00a0<\/p>\n<p>Synaptic comes pre-installed on many Debian Linux installations. If you do not have Synaptic installed on your system, open up a terminal window and install it with the\u00a0<strong>apt install\u00a0<\/strong>command below.<\/p>\n<pre>\nsudo apt install synaptic\n<\/pre>\n<p>Once the Synaptic Package Manager application is open and ready to use, follow the step-by-step instructions below to learn how to uninstall packages on Debian with it.<\/p>\n<p><strong>Step 1:<\/strong> Inside Synaptic Package Manager, find the \u201cStatus\u201d button in the bottom-left corner and click on it with the mouse. The \u201cStatus\u201d area allows users to sort packages based on \u201cInstalled,\u201d \u201cNot Installed,\u201d etc.<\/p>\n<p><strong>Step 2:<\/strong> After clicking on the \u201cStatus\u201d button, you will see various choices. Choose \u201cInstalled\u201d to filter out all Debian Linux packages that are not installed on your system.<\/p>\n<p><strong>Step 3:<\/strong> Once you\u2019ve selected the \u201cInstalled\u201d status filter in Synaptic, look through the installed packages for the package you wish to remove.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396358 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/debian-uninstall-package-guide-4.png\" alt=\"\" width=\"1200\" height=\"591\"\/><\/p>\n<p>If you cannot find the package, locate the \u201cSearch\u201d button in the app\u2019s upper-right corner and click on it with the mouse. Then, in the search box, type in the name of the package you wish to remove and press the <strong>Enter\u00a0<\/strong>key to search.<\/p>\n<p><strong>Step 4:<\/strong> When you\u2019ve located the package you wish to uninstall from Debian, right-click on it with the mouse. Inside the right-click menu, find the \u201cMark For Removal\u201d option and select it.<\/p>\n<p><strong>Step 5:<\/strong> After clicking on the \u201cMark For Removal\u201d button, find \u201cApply\u201d and click on it. When you click \u201cApply,\u201d the Synaptic Package Manager will attempt to remove your package.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-396359 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/debian-uninstall-package-guide.png\" alt=\"\" width=\"1201\" height=\"590\"\/><\/p>\n<p>When the package removal process is complete, close the Synaptic Package Manager.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles \u00a0From Apt-get to Synaptic Package Manager, there are many ways to uninstall packages in Debian Linux. In this guide, we\u2019ll show you all the ways you can uninstall packages from your Debian Linux system. Debian: uninstall package \u2013 Apt-get The best way to uninstall a package on Debian Linux is with the\u00a0Apt-get\u00a0tool.\u00a0Apt-get\u00a0has been &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1697,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1696"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1696"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1696\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1697"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}