{"id":23713,"date":"2024-01-25T10:32:49","date_gmt":"2024-01-25T10:32:49","guid":{"rendered":"https:\/\/linuxways.net\/?p=23713"},"modified":"2024-01-25T10:44:27","modified_gmt":"2024-01-25T10:44:27","slug":"uninstall-package-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/uninstall-package-debian-12\/","title":{"rendered":"How to Uninstall Package on Debian 12"},"content":{"rendered":"<p>Debian is a popular Linux distribution that provides a user-friendly interface and various package managers. You can install, configure, and uninstall the packages from your system using numerous available package managers. The package managers can either be GUI or command line based; some are installed on your system by default, while some need to be installed. Each package manager has a specific method to install, run, and uninstall the package.<\/p>\n<p>It is important to install packages on your system, and equally important to uninstall unused packages. The reasons are these packages are occupying your storage space and are one of the reasons for slow system performance. There are various ways to uninstall the packages on the Debian system, and we are going to discuss them in detail in the next section of this post.<\/p>\n<h2><strong>Quick Outline<\/strong><\/h2>\n<ul>\n<li><strong>How to Uninstall Package on Debian 12<\/strong><\/li>\n<li><strong>How to Remove Broken Packages on Debian 12<\/strong><\/li>\n<li><strong>Conclusion<\/strong><\/li>\n<\/ul>\n<h2><strong>How to Uninstall Package on Debian 12<\/strong><\/h2>\n<p>The following are the two methods to uninstall a package from your Debian 12:<\/p>\n<ul>\n<li><strong>Through GUI<\/strong><\/li>\n<li><strong>Through Command Line<\/strong><\/li>\n<\/ul>\n<p><strong>Note: <\/strong>In order to uninstall any package from Debian, you will need administrative rights.<\/p>\n<h2><strong>How to <\/strong><a id=\"post-23713-2lzj7c1ci6ms\"><\/a><strong>Uninstall Package on Debian 12 Through GUI<\/strong><\/h2>\n<p>On Debian, you can remove the packages from the GUI using the following two ways:<\/p>\n<ul>\n<li><strong>Gnome Software<\/strong><\/li>\n<li><strong>Synaptic Package Manager<\/strong><\/li>\n<\/ul>\n<h3><strong>1: Uninstall the Package on Debian 12 From Gnome Software<\/strong><\/h3>\n<p><strong>Gnome Software<\/strong> is a built-in GUI tool that manages the packages installed on your Debian system from the official repository. You can use the <strong>Gnome Software<\/strong> tool to uninstall or remove any package from your Debian system. For example, to uninstall the <strong>GParted <\/strong>package from <strong>Debian 12<\/strong> using the <strong>Gnome Software<\/strong> tool, follow the below-mentioned steps:<\/p>\n<p><strong>Step 1: <\/strong>On your Gnome Desktop, click on the <strong>Activities <\/strong>option from the left top corner:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"456\" class=\"wp-image-23729\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-1.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-1-300x174.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-1-768x445.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p><strong>Step 2: <\/strong>In the search bar, type <strong>software <\/strong>and click on the <strong>Software<\/strong> tool to open:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"534\" class=\"wp-image-23736\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-2.png 747w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-2-300x214.png 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/p>\n<p><strong><br \/>\nStep 3: <\/strong>Next, switch to the <strong>Installed<\/strong> tab:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"501\" class=\"wp-image-23744\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-3.png 791w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-3-300x190.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-3-768x486.png 768w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/p>\n<p><strong>Step 4: <\/strong>Look for the <strong>GParted <\/strong>tool option and click on the <strong>delete icon <\/strong>present in front of the tool name:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"502\" class=\"wp-image-23750\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-4.png 760w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-4-300x198.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p><strong>Step 5: <\/strong>A pop-up will appear on your screen, click on the <strong>Uninstall<\/strong> option:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"499\" class=\"wp-image-23757\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-5.png 782w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-5-300x191.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-5-768x490.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>As soon as you enter the password, the installation process starts and completes within seconds.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>2: Uninstall Package on Debian 12 from Synaptic Package Manager<\/strong><\/h3>\n<p><strong>Synaptic Package Manager <\/strong>is another GUI tool pre-installed in the Debian system that uses the apt package manager to install, update, and remove packages from the system. To uninstall or remove the packages on Debian 12 using the <strong>Synaptic Package Manager<\/strong>, perform the below steps:<\/p>\n<p><strong>Step 1: <\/strong>Navigate to <strong>Activities<\/strong>, and search for<strong> Synaptic Package Manager:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"516\" class=\"wp-image-23766\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-6.png 796w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-6-300x194.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-6-768x498.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/p>\n<p><strong>Note: <\/strong>Ensure entering the administrative password to continue.<\/p>\n<p><strong>Step 2: <\/strong>Click the <strong>Search icon<\/strong> to search for the package:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"491\" class=\"wp-image-23772\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-7.png 798w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-7-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-7-768x473.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/p>\n<p><strong>Step 3: <\/strong>Type the name of the package you want to remove on Debian, and then click on the <strong>Search<\/strong> button:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"487\" class=\"wp-image-23778\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-8.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-8-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-8-768x470.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/strong><\/p>\n<p><strong>Step 4: <\/strong>All the relevant packages will appear on your screen, click on it and choose <strong>Mark for Removal <\/strong>from the available options:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"387\" class=\"wp-image-23786\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-9.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-9-300x146.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-9-768x374.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/strong><\/p>\n<p><strong>Step 5: <\/strong>Next, click on the <strong>Apply<\/strong> option to apply all the marked changes:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"437\" class=\"wp-image-23791\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-10.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-10-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-10-768x422.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<p><strong>Step 6: <\/strong>A prompt will appear on your screen, asking for confirmation, click on <strong>Apply<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"493\" class=\"wp-image-23797\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-11.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-11-300x188.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-11-768x480.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>You have successfully uninstalled the <strong>Gparted<\/strong> from your Debian system, click on <strong>Close<\/strong>:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"473\" class=\"wp-image-23801\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-12.png 770w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-12-300x184.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-12-768x472.png 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to Uninstall Package on Debian 12 Through Command Line<\/strong><\/h2>\n<p>The other approach to uninstall the package on Debian 12 is through the terminal. You can use four different package managers on Debian 12 to install, run, and deploy the packages on Debian. You can use these packages to easily uninstall packages from the system with all its dependencies and configuration files:<\/p>\n<ul>\n<li><a href=\"#post-23713-nnmkm3a5278i\"><strong>apt Package Manager<\/strong><\/a><\/li>\n<li><a href=\"#post-23713-8tgfckgjbmu0\"><strong>dpkg Package Manager<\/strong><\/a><\/li>\n<li><a href=\"#post-23713-brqj0xu3pq\"><strong>snap <\/strong><\/a><strong>Package Manager<\/strong><\/li>\n<li><a href=\"#post-23713-db8zuc1syoxa\"><strong>flatpak Package Manager<\/strong><\/a><\/li>\n<\/ul>\n<p>Let\u2019s discuss the uninstallation commands of these package managers on Debian 12.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to Uninstall Package on Debian 12 Using apt Package Manager<\/strong><\/h2>\n<p><strong>Apt <\/strong>(<strong>Advanced Packaging Tool<\/strong>) is a default command line package manager that is used to install, upgrade, update, and uninstall packages from the system. This package manager automatically installs dependencies on your system and installs the packages with their primary names on your system.<\/p>\n<p>To view the list of all installed packages on Debian 12, execute the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--installed<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"461\" class=\"wp-image-23803\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-13.png 785w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-13-300x176.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-13-768x451.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/p>\n<p>You can search for a specific package name on Debian 12 by piping the above command with the <strong>grep <\/strong>command followed by the package name:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> <span class=\"sy0\">&lt;<\/span>package_name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>In the below command, I have searched <strong>vlc <\/strong>in the list of installed packages of Apt:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--installed<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> vlc<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"457\" class=\"wp-image-23806\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-14.png 771w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-14-300x178.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-14-768x455.png 768w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/p>\n<p>The apt command provides numerous options to<\/p>\n<ul>\n<li><a href=\"#post-23713-5nwhh59ht6me\"><strong>Uninstall a Package from Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-23713-65frmcf0b1sz\"><strong>Remove Unused Dependencies of the Package<\/strong><\/a><\/li>\n<li><a href=\"#post-23713-ss7g8ytua018\"><strong>Remove the Configuration Files of the System<\/strong><\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><strong>1: Uninstall a Package from Debian 12<\/strong><\/h3>\n<p>To uninstall a package on Debian 12, use the below general syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove <span class=\"br0\">&#91;<\/span>package-name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p>In the following example command, I have uninstalled the <strong>vlc <\/strong>from my system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove vlc<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"452\" class=\"wp-image-23808\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-15.png 777w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-15-300x175.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-15-768x447.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/p>\n<p>The remove command deletes the package binaries but keeps the configuration files and dependencies.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>2: Remove Unused Dependencies of the Package<\/strong><\/h3>\n<p>During package installation, the software manager often installs additional packages that stay on the system and may affect its performance. To uninstall the package with all its unused dependencies on Debian, run the following command by replacing the <strong>[package-name]<\/strong> with the package you want to remove:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt autoremove <span class=\"br0\">&#91;<\/span>package-name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<h3><strong>3: Remove the Configuration Files of the System<\/strong><\/h3>\n<p>If you want to remove all the configuration files and data of the specific package, then use the <strong>purge <\/strong>command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt purge <span class=\"br0\">&#91;<\/span>package-name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p><strong>How to Uninstall Package on Debian 12 Using dpkg Package Manager<\/strong><\/p>\n<p>The <strong>dpkg <\/strong>or <strong>Debian Package Manager <\/strong>is used to install, build, retrieve information, and remove the Debian packages. Run the following command to view the list of all the installed packages on your system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--list<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"460\" class=\"wp-image-23811\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-16.png 789w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-16-300x175.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-16-768x448.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/p>\n<p>To remove a package using the<strong> dpkg<\/strong> tool on Debian, execute the following command and replace the <strong>[package-name]<\/strong> with the name of the package you wish to remove:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--remove<\/span> <span class=\"br0\">&#91;<\/span>package-name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p>Alternatively, you can remove all the configuration files and data of a package on Debian 12 through the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--purge<\/span> <span class=\"sy0\">&lt;<\/span>package name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><strong>Example: <\/strong>In the following example, I have used the remove command to uninstall the <strong>vlc <\/strong>from Debian 12:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--remove<\/span> vlc<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"202\" class=\"wp-image-23813\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-17.png 769w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-17-300x79.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to Uninstall Package on Debian 12 Using Snap Package Manager<\/strong><\/h2>\n<p>The <strong>Snap package manager <\/strong>is an independent package manager used to install the applications on your system without the need to install any additional dependencies or libraries. It installs the packages in a bundle in a sandbox environment. This means if you uninstall a package using Snap, it will delete all the files and associated data of that package.<\/p>\n<p>First, execute the following command to get the list of installed Snap packages on Debian 12:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">snap list<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"214\" class=\"wp-image-23814\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-18.png 775w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-18-300x83.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-18-768x212.png 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/p>\n<p>The syntax to remove the package from <strong>Debian 12<\/strong> using the <strong>Snap package manager<\/strong> is mentioned below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap remove <span class=\"br0\">&#91;<\/span>package-name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p><strong>Example: <\/strong>In the following example, I have uninstalled <strong>Spotify<\/strong> from <strong>Debian 12<\/strong> using the <strong>snap remove <\/strong>command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap remove spotify<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"106\" class=\"wp-image-23816\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-19.png 742w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-19-300x43.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to Uninstall Package on Debian 12 Using Flatpak Package Manager<\/strong><\/h2>\n<p>The <strong>Flatpak package manager <\/strong>provides an efficient way to manage the packages on Debian 12. You can easily install and run the applications on your system in a sandboxed environment, meaning the installed applications do not interfere with the other packages on the system. Using this package manager, you can install the packages with all the required libraries and dependencies into a single bundle. If you don\u2019t want to use a specific installed package on Debian, you can remove it anytime using the <strong>uninstall<\/strong> command:<\/p>\n<p>To remove the package using the<strong> Flatpak package manager<\/strong> on your system, you will need an application ID of the desired package. If you do not know the <strong>application ID<\/strong> of the package, then run the following command to get detailed information about the package:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> flatpak search <span class=\"re5\">--columns<\/span>=application <span class=\"br0\">&#91;<\/span>package-name<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p>The general syntax for removing the package from <strong>Debian 12<\/strong> using the <strong>flatpak package manager <\/strong>is written below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> flatpak uninstall <span class=\"br0\">&#91;<\/span>application ID<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p><strong>Example: <\/strong>In the below example, I have searched <strong>Skype<\/strong> to get its <strong>application ID<\/strong> using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> flatpak search <span class=\"re5\">--columns<\/span>=application skype<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"181\" class=\"wp-image-23817\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-20.png 708w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-20-300x77.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<p>Once you get the <strong>application ID<\/strong> of the <strong>Skype<\/strong>, execute the below command to uninstall it from <strong>Debian 12<\/strong>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> flatpak uninstall com.skype.Client<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"659\" height=\"188\" class=\"wp-image-23819\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-21.png 659w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-21-300x86.png 300w\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" \/><\/p>\n<p>The<strong> Skype <\/strong>package is successfully uninstalled from your Debian 12.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to Remove Broken Packages on Debian 12<\/strong><\/h2>\n<p>In the following command, the <strong>clean<\/strong> removes the cache of retrieved package files from the archives\u2019 directory, and the <strong>autoremove<\/strong> options delete all the unnecessary files, like dependencies that are no longer needed:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt clean <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt autoremove <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"159\" class=\"wp-image-23822\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-22.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-22-300x61.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-22-768x155.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>Adding <strong>-f<\/strong> flag with apt command followed by the <strong>install <\/strong>option will fix the broken dependencies and data corruption issues in the system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"re5\">-f<\/span> <span class=\"kw2\">install<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"223\" class=\"wp-image-23823\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-23.png 746w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-23-300x90.png 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/p>\n<p>Then use the following command to reconfigure all the unpacked packages on Debian:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--configure<\/span> <span class=\"re5\">-a<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"110\" class=\"wp-image-23824\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-24.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-24.png 784w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-24-300x42.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23713-24-768x108.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Managing packages on Debian 12 is a straightforward process, as there are numerous package managers available. You can use the <strong>Gnome Software<\/strong> tool and <strong>Synaptic Package Manager <\/strong>to install and uninstall the package from the system through GUI. Alternatively, you can use <strong>apt package manager<\/strong>, <strong>snap<\/strong>, <strong>flatpak<\/strong>, and<strong> dpkg<\/strong> to uninstall the packages from your system through the terminal. You can also <strong>sudo apt-get clean &amp;&amp; sudo apt-get autoremove <\/strong>to delete all the broken packages from the Debian system. We have discussed the commands used to uninstall the packages using these package managers in the above section of this guide.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>You can uninstall the package on Debian 12 using numerous package managers such as apt, flatpak, snap, dpkg, and Gnome Software.<\/p>","protected":false},"author":115,"featured_media":23831,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-23713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=23713"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23713\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23831"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}