sudo apt-get update:Commands related to the upgrade installation package,Refresh the list of installable software(But don’t do any actual installation)
sudo apt-get upgrade:Update the installation package(Software version upgrade)
sudo apt-get dist-upgrade:Upgrade the system version(Ubuntu version upgrade)
sudo do-release-upgrade:Ubuntu official recommended system upgrade method,If add parameters-d can also be upgraded to the development version,But it will be unstable
sudo apt-get autoclean:Clean up old version software cache
sudo apt-get clean:Clear all software cache
sudo apt-get autoremove:Delete orphaned software that is no longer used by the system
In Linux, /boot is the place where the system boot files are stored. When ubuntu is installed, a separate partition of 200M is enough, but after the system kernel is updated, the old kernel is still stored in the /boot partition. After several upgrades, it will prompt that there is insufficient /boot space .
We just need to delete the old kernel and free up space.
First check the installed kernel version
dpkg --get-selections |grep linux
You can see the installed version, and the one with image is generally the old version
deinstall represents the old version that has been deleted
install is an old version of the kernel that has not been deleted
uname -r
View current kernel version
sudo apt-get remove linux-image-xxxx
Delete the old version of the kernel, xxx is the kernel version number
Method 1: If you know the specific name of the software to be deleted, you can use
sudo apt-get remove --purge software name
sudo apt-get autoremove --purge software name
Method 2: If you do not know the specific name of the software to be deleted, you can use
dpkg --get-selections |grep'software related name'
sudo apt-get purge A package with a core, if there is no package with a core, it depends on the situation. 123
Recommended Posts