Clean accumulated .deb files from /var/cache/apt/archives
Move .deb files to external drive
cd /var/cache/apt/archives
sudo mv *.deb /media/sangram/Elements/Ubuntu22.4LTSAPTArchieve/
ls -lh .
Run autoclean
sudo apt-get autoclean
Truncate System,Kernel & Auth Logs:
sudo truncate -s 0 /var/log/syslog
sudo truncate -s 0 /var/log/auth.log
sudo truncate -s 0 /var/log/kern.log
Remove Apt Cache:
sudo truncate -s 0 /var/log/apt/history.log
sudo truncate -s 0 /var/log/apt/term.log
cd /var/log/apt
sudo rm -rf *.gz
ls -lh /var/log/apt/
Restart rsynclog servicea
sudo systemctl restart rsyslog
No comments:
Post a Comment