ubuntu delete unused packages code example
Example 1: how to remove unnecessary packages in linux
sudo apt autoremove --purge
sudo apt-get clean
Example 2: ubuntu remove all unnecessary packages
du -sh /var/cache/apt/archives
sudo apt autoremove --purge
sudo apt-get clean
du -sh /var/cache/apt/archives