Ubuntu upgrade command

sudo apt-get update: upgrade installation package-related commands, refresh the list of software that can be installed (but do not do any actual installation action)

sudo apt-get upgrade: update installation package (upgraded software version)

sudo apt-get dist-upgrade: system version upgrade (upgrade version of Ubuntu)

sudo do-release-upgrade: Ubuntu official recommended system upgrade, if the increase -d parameter can also upgrade to the development version, but unstable

sudo apt-get autoclean: clean up older versions of the software cache

sudo apt-get clean: clean all cache software

Isolated Software Removal system no longer in use: sudo apt-get autoremove

 

Remove unused old kernel
in Linux / boot is a place to store the system startup files, separate partition to 200M enough to install ubuntu, but after updating the kernel, the old kernel is still stored in the / boot partition, after several upgrades, it It will prompt / lack of boot space.
We just delete the old kernel, it will free up space on it.
To view the installed kernel version
dpkg --get-selections | grep linux
can see installed versions, with the general image of the old version is
deinstall representatives are already deleted the old version of the
install is not yet deleted the old version of the kernel
uname -r

View the current kernel version
sudo apt-get remove linux-image -xxxx

Remove the old version of the kernel, xxx is the kernel version number
 

1. Remove Software

Method One, if you know you want to delete the specific name of the software, you can use

sudo apt-get remove --purge software name  
sudo apt-get autoremove --purge Software name

Second method, if you do not know the specific name you want to remove the software, you can use

dpkg --get-selections | grep 'software related names'

sudo apt-get purge of the core with a package, if the package is no tape core, it is the case may be. 123

2, clean up residual data

dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 

 

Original: https: //blog.csdn.net/woaiyaou/article/details/82956181

Guess you like

Origin www.cnblogs.com/tsxylhs/p/11003032.html