![]() ![]() ![]() Halt and power down the server via " sudo shutdown -h now".You can also shutdown the server remotely via Webmin (Goto "System" ⇒ "Bootup and Shutdown" ⇒ "Shutdown System" or "Reboot System"). $ sudo shutdown -r now // Shutdown and restart (r) $ sudo shutdown -h now // Shutdown the machine, halt (h) and "power down" after shutdown To shutdown the machine via a terminal (remotely thru SSH, or local system console): $ sudo apt clean // clean up Shutdown/Restart Server $ sudo du -sh /var/cache/apt/archives // display the cache size $ sudo apt autoremove // Update GRUB for kernel changes $ sudo apt purge linux-image-3.19.0-56-generic $ sudo apt purge linux-image-3.19.0-25-generic $ sudo dpkg -list 'linux-image*'|awk ''|grep -v `uname -r` ![]() $ sudo purge-old-kernels -y -keep 1 // Purge old kernels except the current one // (for 14.04 LTS) $ sudo apt install -y byobu // If not installed To clean-up the server: // Remove old kernel (if "df -h" shows /boot is 100% - no new software can be installed) Install each of the kept-back packages one by one or "sudo apt-get dist-upgrade" // The following packages have been kept back. $ sudo apt full-upgrade // or "sudo do-release-upgrade" Not recommended for production system. Run the actual software upgrade, upgrading to new version if available. $ sudo apt upgrade // or "sudo apt-get upgrade" $ sudo apt update // or "sudo apt-get update" // Run the actual software upgrade, without upgrading the version. (in /etc/apt/sources.list and /etc/apt/ directory). To apply the latest software patches: // Update (Synchronize) the local package index files Ubuntu uses apt tool for managing software.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |