Cleanup after LTS upgrade

Discussion in 'Server Operation' started by razor7, Jan 30, 2023.

  1. razor7

    razor7 Member

    Hi! following the tutorial on how to upgrade Ubuntu server from 20.04 to 22.04 here https://www.howtoforge.com/ubuntu-20-04-to-22-04-upgrade/ I ended up (as expected) wit h lots of backup files like ~, bkp, old, dpkg-old, etc. Also there are a lot of old compressed log file (after three years of smooth run, that's obvious).
    Is there a way or command to clean up the installation of backup files and old unneeded stuff?
    Thanks!
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Those dpkg-old files do not bother me, so I let them be. You can delete them the usual way if needed.
    Old log files get deleted if you install logrotate. But if host has compressed log files, maybe it is logrotate that created those compressed files? Are the files 3 years old? You can adjust logrotate settings if you want the old log files deleted sooner.
     

Share This Page