how to remove uslesse packages in ubuntu code example Example: how to remove unnecessary packages in linux sudo apt autoremove --purge sudo apt-get clean