blfriis
Wed Nov 12, 2014 1:12:19 am
Hi everyone here's a couple of commands I use for cleaning and updating my system. Maybe they're already in the forum, if so you can just delete this post.
Use this command for cleaning and updating your system, it doesn't remove or update the kernels.
If you want to remove old kernels too, then use this one.
Besure that your system runs on the latest kernel course you cant go back to the previous kernel
I've been using them in Zorin 9 for some time now and no problems,
Use this command for cleaning and updating your system, it doesn't remove or update the kernels.
- Code:
sudo dpkg --configure -a && sudo apt-get check -y && sudo apt-get autoremove -y --force-yes && sudo apt-get clean -y --force-yes && sudo rm -rf $HOME/.local/share/Trash/files && sudo rm -rf ~/.evolution/mail/local/folders.db && sudo find ~/.thumbnails -type f -exec rm {} \; && sudo rm -rf /var/log/*.gz && sudo updatedb && sudo apt-get update -y && sudo apt-get upgrade -y --force-yes
If you want to remove old kernels too, then use this one.
- Code:
sudo dpkg --configure -a && sudo apt-get check -y && sudo apt-get autoremove -y --force-yes && sudo apt-get clean -y --force-yes && sudo rm -rf $HOME/.local/share/Trash/files && sudo rm -rf ~/.evolution/mail/local/folders.db && sudo find ~/.thumbnails -type f -exec rm {} \; && sudo rm -rf /var/log/*.gz && sudo updatedb && sudo apt-get update -y && sudo apt-get upgrade -y --force-yes && sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $(uname -r | sed -r 's/-[a-z]+//') | sed ':a;N;$!ba;s/\n/ /g')
Besure that your system runs on the latest kernel course you cant go back to the previous kernel
I've been using them in Zorin 9 for some time now and no problems,