Reasons for difference in freed spaces after package uninstallation

I have installed a LightDM over my RaspberryPi 3B+. During this process I was asked to confirm that additional 22 MB will be used:

enter image description here

When uninstalling exactly the same package only 770 kB of spaces was promised to be freed:

enter image description here

What am I missing? Why removing of just installed package returns 4% of previously occupied space?

Answers 1

  • Actually when you install a package you get other packages(known as dependencies) which are required by the desired package. But on uninstalling only that specific package you mention gets removed. Hence the storage is still occupied by dependencies. You will have to use sudo apt autoremove to remove dependencies. However it too doesn't remove all the dependencies you installed with a particular package in case they are independent packages in themselves.

Related Questions