{"id":75,"date":"2020-05-18T17:32:00","date_gmt":"2020-05-18T17:32:00","guid":{"rendered":"https:\/\/raspberrytips.com\/?p=75"},"modified":"2025-10-02T20:52:05","modified_gmt":"2025-10-02T18:52:05","slug":"uninstall-programs-raspberry-pi","status":"publish","type":"post","link":"https:\/\/raspberrytips.com\/uninstall-programs-raspberry-pi\/","title":{"rendered":"How to Uninstall Programs on Raspberry Pi (Free Up Space)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I conduct many tests on Raspberry Pi that require me to install different applications, but I don&#8217;t necessarily&nbsp;clean up afterwards. If you&#8217;re here, you might be in the same boat. Let&#8217;s learn how to easily uninstall your applications to free up space on your Raspberry Pi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>To remove applications on Raspberry Pi OS with Desktop, you can use the &#8220;Add\/Remove Software tool&#8221; and uncheck the programs to uninstall. It&#8217;s also possible to uninstall applications from the command line: <em>sudo apt remove [package_name]<\/em>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, I will show you how to generate a list of currently&nbsp;installed packages, uninstall applications from your Raspberry Pi, and gain more space on your SD card.<\/p>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);background-color:var(--global-palette7, #EDF2F7);box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-contents-title{font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-content-wrap .kb-table-of-content-list{font-size:var(--global-kb-font-size-sm, 0.9rem);font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:before{background-color:var(--global-palette7, #EDF2F7);}<\/style>\n\n<p class='ml_begpost' id='ml_begpost_commands'>If you&#8217;re new to Raspberry Pi or Linux, I\u2019ve got something that can help you right away! <br \/><a rel='noopener' href='https:\/\/raspberrytips.com\/downloads\/?source=begpost&#038;lm=4' target='_blank'>Download my free Linux commands cheat sheet<\/a> \u2013 it\u2019s a quick reference guide with all the essential commands you\u2019ll need to get things done on your Raspberry Pi. <a rel='noopener' href='https:\/\/raspberrytips.com\/downloads\/?source=begpost&#038;lm=4' target='_blank'><b>Click here to get it for free!<\/b><\/a><\/p>\n\n\n<h2 class=\"wp-block-heading\">List Installed Packages on Raspberry Pi<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Use the Package Manager<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Current Status of the SD Card<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The first question you might ask is:&nbsp;<strong>how do I find the used space on my SD card?<\/strong><br>The quickest way to do this is to go to <strong>Accessories&gt; File Manager<\/strong>, right-click on the &#8220;\/&#8221; folder (at the very&nbsp;top) and then click Properties.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"373\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/disk-space-e1744653678728.jpg\" alt=\"disk space usage raspberry pi os desktop\" class=\"wp-image-4058\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/disk-space-e1744653678728.jpg 382w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/disk-space-e1744653678728-300x293.jpg 300w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">This&nbsp;window will <strong>show you all space used by your files<\/strong>. From there, you can guess the remaining space available depending on the media size.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">List Installed Packages<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">On the desktop, the way to find the installed packages is to go to the package manager: <strong>Preferences&gt; Add \/ Remove Software<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The tool displays installed programs with a checked box, so you can easily find and uninstall them as needed:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"380\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/add-remove-software.jpg\" alt=\"\" class=\"wp-image-4059\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/add-remove-software.jpg 600w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/add-remove-software-300x190.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Unfortunately, this method is not perfect. There isn&#8217;t a way to get a list of all installed packages on one page. You have to enter each category and scroll through the list to find the checked lines.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is probably the main reason why&nbsp;beginners on Raspberry Pi, or at least those who are not familiar with Linux commands, have trouble removing packages. I&#8217;ll give you other solutions for this throughout this post. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The good news is that <strong>you can see the package size in the bottom-right corner.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also go to Options &gt; Package logs, and <strong>see the latest changes made to the packages<\/strong>. It looks like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"226\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/packages-log.jpg\" alt=\"\" class=\"wp-image-180\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/packages-log.jpg 900w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/packages-log-300x75.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/packages-log-768x193.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">This&nbsp;screen displays the latest packages installed and generally allows you to find which ones you can quickly remove.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>Note<\/strong>: it still isn<\/em>&#8216;<em>t perfect, as packages installed with the command line are not shown here. I also noticed that it sometimes doesn&#8217;t include the full packages list.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to go through the GUI, know that it is possible to <strong>install Synaptic<\/strong>, which is a similar tool, but it allows more advanced filters, like only listing installed packages (I suggest it in <a rel=\"noreferrer noopener\" href=\"https:\/\/raspberrytips.com\/best-apps-raspberry-pi\/\" data-type=\"post\" data-id=\"843\" target=\"_blank\">my favorite apps for Raspberry Pi<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can find Synaptic in the Add\/Remove Software tool.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then start Synaptic, click Status &gt; Installed in the left menu, and you will <strong>get the list of installed packages<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"506\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/synaptic-installed.jpg\" alt=\"synaptic package manager\" class=\"wp-image-4061\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/synaptic-installed.jpg 695w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/synaptic-installed-300x218.jpg 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">An easier way to view installed packages is via the command line. <br>Let&#8217;s learn how to do this next.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Alternative: Use the Command Line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you manage to&nbsp;remember these few commands, using a terminal is the fastest way to<strong> find the packages installed on your Raspberry<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Disk Usage<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, if you want to <strong>see the disk space used<\/strong> in a terminal or ssh, use the df command like this:<br><code>df -h<\/code><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"176\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/df-h.jpg\" alt=\"\" class=\"wp-image-16013\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/df-h.jpg 912w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/df-h-300x58.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/df-h-768x148.jpg 768w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The -h option displays values in a human-readable format.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">List&nbsp;Installed Packages<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To<strong> list every package installed<\/strong> on your Raspberry Pi you can use:<br><code>dpkg -l<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This&nbsp;command will list all packages, in this format:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"290\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/dpkg-list-1024x290.jpg\" alt=\"dpkg -l command\" class=\"wp-image-16014\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/dpkg-list-1024x290.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/dpkg-list-300x85.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/dpkg-list-768x218.jpg 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/dpkg-list.jpg 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The df command doesn&#8217;t display the space used by each program directly, but to <strong>find the most significant packages<\/strong> you can do something like this:<br><code>dpkg-query -W -f='${Installed-Size;8} ${Package}\\n' | sort -nr | head -10<\/code><br><em>(you don&#8217;t have to memorize this one ^^)<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  688414  wolfram-engine\n  171382  chromium-browser\n  168481  oracle-java8-jdk\n  143795  scratch2\n  114332 &nbsp;raspberrypi-kernel\n  110694  libgl1-mesa-dri\n   84603 &nbsp;libreoffice-core\n   83391 &nbsp;libreoffice-common\n   49227  quake3-demo-data\n   47627  gnome-user-guide<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command will list packages that use the most disk space, and sort them by size. You can modify the -10 at the end of the command to get more results.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"313\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/top-10-packages-size-1024x313.jpg\" alt=\"\" class=\"wp-image-16016\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/top-10-packages-size-1024x313.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/top-10-packages-size-300x92.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/top-10-packages-size-768x235.jpg 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/top-10-packages-size.jpg 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#c71e4b5e\"><strong>Note<\/strong>: If you&#8217;d like to see these steps in action, I have a video on package management just for community members. <a href=\"https:\/\/raspberrytips.com\/school\/community\/?coupon=IP25CTY&amp;utm_source=raspberrytips&amp;utm_medium=website&amp;utm_campaign=inpost\">Join here to watch<\/a>, and get access to 30+ other lessons for Raspberry Pi along with many other benefits!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Uninstall Programs on Raspberry Pi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now you know how much space is left on your Raspberry Pi, and which packages use the most space. Let&#8217;s learn how to remove these programs! It&#8217;s not very complicated.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Use the Package Manager<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>In graphical mode, the search is not very convenient, but removing a package is simple<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you find the package to delete, uncheck the box, click <strong>Apply<\/strong> at the bottom and confirm.<br>The package will be uninstalled immediately.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Use the Command Line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Most of the time, you can use apt to remove the package via the terminal<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if I see that I forgot to remove Quake3 from <a href=\"https:\/\/raspberrytips.com\/install-play-quake-3-raspberry-pi\/\" target=\"_blank\" rel=\"noreferrer noopener\">our tutorial<\/a>, I can do it with:<br><code>sudo apt remove quake3-demo-data<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And that&#8217;s it, the package will be deleted and disk space released.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/raspberrytips.com\/apt-linux-command\/\" data-type=\"link\" data-id=\"https:\/\/raspberrytips.com\/apt-linux-command\/\">APT also has interesting options<\/a> you can use from the command line:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can ask it to remove all related files with:<br><code>sudo apt remove --purge &lt;package&gt;<\/code><br><img loading=\"lazy\" decoding=\"async\" width=\"1066\" height=\"282\" class=\"wp-image-15937\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/mysql-remove-purge.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/mysql-remove-purge.jpg 1066w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/mysql-remove-purge-300x79.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/mysql-remove-purge-1024x271.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2023\/02\/mysql-remove-purge-768x203.jpg 768w\" sizes=\"auto, (max-width: 1066px) 100vw, 1066px\" \/><\/li>\n\n\n\n<li>Use a wildcard to remove everything related to a specific application or service:<br><code>sudo apt remove quake3*<\/code><br>Make sure to carefully check the output, as something using a wildcard can select packages you don&#8217;t want to remove.<\/li>\n\n\n\n<li>And use autoremove to uninstall dependencies that are no longer needed:<br><code>sudo apt autoremove<\/code><\/li>\n<\/ul>\n\n\n\r\n\t\t<!-- wp:paragraph -->\r\n\t<p  id=\"inpost_lm_linux_commands\"><b>Tip: <\/b> Command lines can be a pain to memorize. I put the essential Linux commands on a printable cheat sheet so you don't have to keep googling them.\u00a0You can <a rel=\"noreferrer noopener\" href=\"https:\/\/raspberrytips.com\/downloads\/?source=rb_linux&lm=4\" target=\"_blank\">grab the PDF here<\/a> if you want to save some time.<\/p>\r\n\t<!-- \/wp:paragraph -->\r\n\t\t\n\n\n<h2 class=\"wp-block-heading\">Tips to Free More Space on Raspberry Pi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I have an entire on this topic that <a href=\"https:\/\/raspberrytips.com\/raspbian-free-disk-space\/\" data-type=\"post\" data-id=\"3158\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1170\">you can find here<\/a>, but I&#8217;ll give you a few tips in this section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Temporary Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In theory, temporary files are temporary. This means&nbsp;<strong>they are automatically deleted when you restart<\/strong> your Raspberry Pi. But if you can&#8217;t reboot it, or you&#8217;re stuck, you can empty the folder with one of these commands:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Remove only old temporary files<\/strong>: <br><code>sudo find \/tmp -type f -atime +10 -delete <\/code><\/li>\n\n\n\n<li><strong>Clear all temporary files<\/strong> (can corrupt some running apps): <br><code>sudo rm -rf \/tmp\/* <\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Related: <a href=\"https:\/\/raspberrytips.com\/find-file-raspberry-pi\/\" data-type=\"post\" data-id=\"5451\">3 Commands to Search for a File on Raspberry Pi (and Find It!)<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">APT Cache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The APT tool caches a large part of the information used, to avoid downloading everything each time you use it.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Clearing this cache may allow you to unlock a stuck Raspberry Pi due to the lack of disk space. Simply execute this command:<br><code>sudo apt clean<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But remember that the cache will return after a system update, so it&#8217;s a temporary solution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we talk about the cache, if you surf on the internet with your Raspberry Pi, <strong>remember to clear the browser&#8217;s cache too.<\/strong> I bet that you will gain some&nbsp;valuable MB.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On any browser, you have to&nbsp;go to Options\/Preferences to clear the cache.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By the way, if you are looking for the best web browser on Raspberry Pi, <a href=\"https:\/\/raspberrytips.com\/best-web-browsers-raspberry-pi\/\" data-type=\"post\" data-id=\"10358\" target=\"_blank\" rel=\"noreferrer noopener\">you&#8217;ll find the answer here<\/a>. I tested all of them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Remove Unused Packages<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When you uninstall packages,<strong> dependencies often do not automatically uninstall<\/strong>, so you can uninstall them with this command:<br><code>sudo apt autoremove<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But the most effective way to free up space, if you do not use these tools is to uninstall wolfram-engine and LibreOffice. <strong>This&nbsp;tip will allow you to gain about 1&nbsp;GB<\/strong> of disk space in 10s.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use these commands:<br><code>sudo apt remove --purge wolfram-engine libreoffice* <br>sudo apt autoremove<\/code><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"37\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/07\/freed.png\" alt=\"free space\" class=\"wp-image-85\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/07\/freed.png 495w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/07\/freed-300x22.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Yes, I do!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Find Other&nbsp;Big Folders and Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ok, let&#8217;s say you still have a disk space issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We saw how to remove packages or clear different caches, but this is not necessarily the most important part of your used disk space.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have a huge log file or hundreds of photos\/videos stored on your SD card, you&#8217;ll have to deal with it before, but how do you find them? Let&#8217;s learn how.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Graphical Way:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&#8220;Gnome utility&#8221; is a great tool that&nbsp;you can use (the package name is baobab)<\/strong>. You can find it in the Add\/Remove software tool, search for &#8220;baobab&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It will graphically show you exactly how much free&nbsp;space you have left&nbsp;and which folder is taking up a lot of space:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"508\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/baobab.jpg\" alt=\"\" class=\"wp-image-169\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/baobab.jpg 900w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/baobab-300x169.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/baobab-768x433.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Thanks to this, it will be much easier to find a file that&nbsp;you would have missed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I talk a bit more about this in my article on <a href=\"https:\/\/raspberrytips.com\/raspbian-free-disk-space\/\" data-type=\"post\" data-id=\"3158\" target=\"_blank\" rel=\"noreferrer noopener\">how to free up space on a Raspberry Pi<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Command Line:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In a terminal, you can do something similar.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">du is a command available directly on Raspberry Pi OS (and most other Linux distributions).<br><strong>It lists the size of the files and folders on the disk.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With some additional options, we will get the same result as the graphical tool:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can see the <strong>size taken by each subfolder<\/strong> like this: <br><code>sudo du -h --max-depth=1 \/ <\/code><br><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"241\" class=\"wp-image-16017\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-root-depth.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-root-depth.jpg 813w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-root-depth-300x89.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-root-depth-768x228.jpg 768w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/li>\n\n\n\n<li>And you can also <strong>find the biggest files<\/strong> on the disk like this: <br><code>sudo du -ak | sort -nr | head -50 <\/code><br><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"280\" class=\"wp-image-16018\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-top-50.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-top-50.jpg 971w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-top-50-300x87.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/05\/du-top-50-768x221.jpg 768w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><br><p>You can change the -50 options to get more or fewer files in the list.<br>Don&#8217;t pay attention to access errors when running the command.<\/p><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">You have now learned <strong>how to uninstall packages on your Raspberry Pi<\/strong>, and also some <strong>tips to free space on your SD card<\/strong> (<a href=\"https:\/\/raspberrytips.com\/raspbian-free-disk-space\/\" data-type=\"post\" data-id=\"3158\" target=\"_blank\" rel=\"noreferrer noopener\">I go into more details here<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And of course,&nbsp;if you have a lot of issues with your SD card, it might mean that it is too small and you will have to&nbsp;think about changing it. It does not cost much nowadays, so you will be relieved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check out my <a data-lasso-id=\"1171\" href=\"https:\/\/raspberrytips.com\/best-sd-card-raspberry-pi\/\" target=\"_blank\" rel=\"noopener\">review of the best SD cards for Raspberry Pi<\/a> if you don&#8217;t know which to choose.<br>USB can also be a solution if you really need a lot of space. I explain <a href=\"https:\/\/raspberrytips.com\/raspberry-pi-usb-vs-sd\/\" data-type=\"post\" data-id=\"10636\">how to choose between SD cards and USB drives<\/a> here.<\/p>\n\n\n<section id=\"end-block-pi\">\r\n<div class=\"rt-community-card \">\r\n\t<div class=\"rt-community-card__inner\">\r\n\r\n\t\t<div class=\"rt-community-card__main\">\r\n\t\t\t<h3 class=\"rt-community-card__headline\">\r\n\t\t\t\tNot getting the same result?\t\t\t<\/h3>\r\n\r\n\t\t\t<p class=\"rt-community-card__description\">\r\n\t\t\t\tEven when you follow every step, small differences in OS version, hardware or config can change the outcome. Instead of wasting time guessing, get help from people who have already fixed the same kind of issue.\t\t\t<\/p>\r\n\r\n\t\t\t<div class=\"rt-community-card__actions\">\r\n\t\t\t\t<a class=\"rt-community-card__button\" href=\"https:\/\/raspberrytips.com\/school\/community\/?coupon=EBCTY\">\r\n\t\t\t\t\t<span>Ask your question now<\/span>\r\n\t\t\t\t\t<span class=\"rt-community-card__button-arrow\">\u2192<\/span>\r\n\t\t\t\t<\/a>\r\n\r\n\t\t\t\t\t\t\t\t\t<div class=\"rt-community-card__small\">\r\n\t\t\t\t\t\t<span class=\"rt-community-card__small-lock\">\ud83d\udd12<\/span>\r\n\t\t\t\t\t\tNo risk. Cancel anytime.\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t<\/div>\r\n\r\n\t\t\t\t\t<div class=\"rt-community-card__side\">\r\n\t\t\t\t<ul class=\"rt-community-card__benefits\">\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Get help on your exact issue<\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Access step-by-step videos for tricky setups<\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Browse the website without ads<\/li>\r\n\t\t\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t<\/div>\r\n\t\t\r\n\t<\/div>\r\n<\/div>\r\n<\/section>\r\n\r\n<style>\r\n.rt-community-card {\r\n\t--rt-bg: #f7f7f9;\r\n\t--rt-border: #e4e4e8;\r\n\t--rt-text: #15171b;\r\n\t--rt-muted: #5b6270;\r\n\t--rt-accent: #C61E4A;\r\n\t--rt-accent-hover: #aa183f;\r\n\t--rt-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);\r\n\r\n\tmargin: 36px 0;\r\n\tcolor: var(--rt-text);\r\n\tfont-family: inherit;\r\n}\r\n\r\n.rt-community-card__inner {\r\n\tdisplay: grid;\r\n\tgrid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.95fr);\r\n\tgap: 34px;\r\n\talign-items: start;\r\n\tbackground: var(--rt-bg);\r\n\tborder: 1px solid var(--rt-border);\r\n\tborder-radius: 22px;\r\n\tpadding: 34px 36px;\r\n\tbox-shadow: var(--rt-shadow);\r\n}\r\n\r\n.rt-community-card__main {\r\n\tmin-width: 0;\r\n}\r\n\r\n.rt-community-card__side {\r\n\tborder-left: 1px solid #e1e1e6;\r\n\tpadding-left: 28px;\r\n}\r\n\r\n.rt-community-card__benefits {\r\n\tmargin: 6px 0 0;\r\n\tpadding: 0;\r\n\tlist-style: none;\r\n\tdisplay: grid;\r\n\tgap: 18px;\r\n}\r\n\r\n.rt-community-card__benefits li {\r\n\tposition: relative;\r\n\tpadding-left: 18px;\r\n\tfont-size: 18px;\r\n\tline-height: 1.55;\r\n\tcolor: var(--rt-text);\r\n}\r\n\r\n.rt-community-card__benefits li::before {\r\n\tcontent: \"\";\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0.72em;\r\n\twidth: 7px;\r\n\theight: 7px;\r\n\tborder-radius: 999px;\r\n\tbackground: var(--rt-accent);\r\n\ttransform: translateY(-50%);\r\n}\r\n\r\n.rt-community-card__actions {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: flex-start;\r\n\tgap: 10px;\r\n\tmargin-top: 30px;\r\n}\r\n\r\n.rt-community-card__button {\r\n\tdisplay: inline-flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tgap: 10px;\r\n\tmin-height: 60px;\r\n\tpadding: 0 28px;\r\n\tborder-radius: 14px;\r\n\tbackground: var(--rt-accent);\r\n\tcolor: #fff !important;\r\n\ttext-decoration: none !important;\r\n\tfont-size: 21px;\r\n\tfont-weight: 700;\r\n\tline-height: 1;\r\n\tbox-shadow: 0 12px 22px rgba(198, 30, 74, 0.22);\r\n\ttransition: background .2s ease, transform .2s ease, box-shadow .2s ease;\r\n}\r\n\r\n.rt-community-card__button:hover {\r\n\tbackground: var(--rt-accent-hover);\r\n\tcolor: #fff !important;\r\n\ttransform: translateY(-1px);\r\n\tbox-shadow: 0 14px 26px rgba(198, 30, 74, 0.28);\r\n}\r\n\r\n.rt-community-card__button-arrow {\r\n\tfont-size: 20px;\r\n\tline-height: 1;\r\n}\r\n\r\n.rt-community-card__small {\r\n\tfont-size: 15px;\r\n\tline-height: 1.5;\r\n\tcolor: #6a717d;\r\n\tpadding-left: 2px;\r\n}\r\n\r\n.rt-community-card__small-lock {\r\n\tmargin-right: 6px;\r\n\tfont-size: 14px;\r\n\tvertical-align: baseline;\r\n}\r\n\r\n\/* Tablet *\/\r\n@media (max-width: 900px) {\r\n\t.rt-community-card {\r\n\t\tmargin: 28px 0;\r\n\t}\r\n\r\n\t.rt-community-card__inner {\r\n\t\tgrid-template-columns: 1fr;\r\n\t\tgap: 24px;\r\n\t\tpadding: 28px 24px;\r\n\t}\r\n\r\n\t.rt-community-card__side {\r\n\t\tborder-left: 0;\r\n\t\tborder-top: 1px solid #e1e1e6;\r\n\t\tpadding-left: 0;\r\n\t\tpadding-top: 22px;\r\n\t}\r\n\r\n\t.rt-community-card__benefits {\r\n\t\tgrid-template-columns: 1fr;\r\n\t\tgap: 12px;\r\n\t}\r\n}\r\n\r\n\/* Mobile *\/\r\n@media (max-width: 640px) {\r\n\t.rt-community-card__inner {\r\n\t\tpadding: 22px 18px;\r\n\t\tborder-radius: 18px;\r\n\t\tgap: 20px;\r\n\t}\r\n\t\r\n\t.rt-community-card__side {\r\n\t\tpadding-top: 18px;\r\n\t}\r\n\r\n\t.rt-community-card__benefits li {\r\n\t\tfont-size: 16px;\r\n\t}\r\n\r\n\t.rt-community-card__actions {\r\n\t\tmargin-top: 24px;\r\n\t\talign-items: stretch;\r\n\t}\r\n\r\n\t.rt-community-card__button {\r\n\t\twidth: 100%;\r\n\t\tmin-height: 56px;\r\n\t\tfont-size: 18px;\r\n\t\tpadding: 0 20px;\r\n\t}\r\n\r\n\t.rt-community-card__small {\r\n\t\ttext-align: center;\r\n\t\tpadding-left: 0;\r\n\t}\r\n}\r\n<\/style>\r\n\t\r\n","protected":false},"excerpt":{"rendered":"<p>I conduct many tests on Raspberry Pi that require me to install different applications, but I don&#8217;t necessarily&nbsp;clean up afterwards. If you&#8217;re here, you might be in the same boat. Let&#8217;s learn how to easily uninstall your applications to free up space on your Raspberry Pi. To remove applications on Raspberry Pi OS with Desktop,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4072,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-tutorials"],"taxonomy_info":{"category":[{"value":2,"label":"How-To Tutorials"}]},"featured_image_src_large":["https:\/\/raspberrytips.com\/wp-content\/uploads\/2019\/05\/uninstall-programs-raspberry-pi-1024x683.jpg",1024,683,true],"author_info":{"display_name":"Patrick Fromaget","author_link":"https:\/\/raspberrytips.com\/author\/admin\/"},"comment_info":3,"category_info":[{"term_id":2,"name":"How-To Tutorials","slug":"how-to-tutorials","term_group":0,"term_taxonomy_id":2,"taxonomy":"category","description":"","parent":0,"count":228,"filter":"raw","cat_ID":2,"category_count":228,"category_description":"","cat_name":"How-To Tutorials","category_nicename":"how-to-tutorials","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":43,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":44814,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/75\/revisions\/44814"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media\/4072"}],"wp:attachment":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}