Delete the pre-installed applications on your Raspberry Pi [Full Guide]


close This entry was posted for 5 months 6 days , so it is possible it is out of date. The proposed information are perhaps expired.

Rasberry-Pi2


Given that I use more my Raspberry Pi , I have to format it regularly when I realize new tests. I also particularly invested in the last sensor Raspberry Pi Sensor Hat … but we will return in a future article! 😉


The distribution is based provides for the Raspberry Pi is really damn good and very complete. Both simple to take hands and not have all the packages that any beginner can do someting with and even right out of the minicomputer. However, we must also admit that the default Raspbian (thus based on Debian) comes with a multitude of packages and default applications that may not appeal to everyone.


Default Apps Raspbian


I invite you to see all how we can take stock of these packages and how to remove .


If you connect your Raspberry Pi to HDMI, you can already see that the application menu is provides by default. You especially have:


  • BlueJ Java IDE (for your developments in Java)

  • Greenfoot Java IDE (same)

  • Mathematica (mathematical continued)

  • Different versions of Python

  • Scratch (to teach younger development informatique)

  • Wolfram

  • La Following LibreOffice

  • Some games

  • And many other things …

So well course, all is not useless, far from it! But not mine all of these tools can take place if you use the default SD card included with your Raspberry Pi and corresponds often to 8 GB. A small cleaning and some deletions can therefore allow you to save space .


First thing to do before going further, a list of all packages / applications currently installed on your Raspbian this allows you to see more clearly and make a list of things to remove


to do this, run the following command:..


 dpkg-query -l 

Or even to store the result in a text file (easier to read):


 dpkg-query -l> list_packages.txt 

list_packages


me I get this way the list_packages .


If we look more closely, we can note the presence of the following packages (which correspond to the applications mentioned above), which do not interest me to use that I would do my Raspberry Pi :


  • wolfram-engine

  • bluej

  • greenfoot

  • nodered

  • nuscratch

  • scratch

  • sonic-pi

  • libreoffice

  • claws-mail

  • claws-mail-i18n

  • minecraft-pi

  • python-pygame

Nous let’s remove all these packages with the following command:


 sudo apt-get remove --purge wolfram-engine bluej Greenfoot nodered nuscratch scratch sonic-pi * libreoffice claws-mail claws-mail-i18n minecraft -pi python-pygame 

removing_packages


you can indeed add more packages to remove at once, separated by a space. you will also asked to confirm your choice by pressing Y . Note that the star for the package libreoffice * deletes all packages that start with libreoffice (and therefore the entire suite).


once this is done, if necessary perform a reboot routine and now run the following command to clean and erase packages that have dependencies with those you have un-installed (since these dependencies are also unneeded):


 sudo apt-get autoremove --purge 

purge


then finish it all by doing a general update with the following command:


 sudo apt-get update && sudo apt-get upgrade -y 

Here, c ‘is finished. So finally, if we sum the following 3 command were used:


sudo apt-get remove --purge wolfram-engine bluej Greenfoot nodered nuscratch scratch sonic-pi * libreoffice claws-mail claws-mail-i18n minecraft-feet python-pygamesudo apt-get autoremove --purgesudo apt-get update && sudo apt-get upgrade -y

Your Raspberry Pi was purged of all previous applications mentioned that we considered unnecessary (you are free to retain or remove more depending on your needs) .


No comments:

Powered by Blogger.