clean package files after updates linux code example Example 1: auto clean ubuntu sudo apt-get autoclean Example 2: apt get remove unnecessary files sudo apt-get clean