Ubuntu upgrade software and ubuntu upgrade system commands

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

Delete unused old kernel##

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

  1. Remove software

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
  1. Clean up residual data
    dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P

Recommended Posts

Ubuntu upgrade software and ubuntu upgrade system commands
Ubuntu18.04 system installation and prerequisite software installation guide
Ubuntu software
Ubuntu configuration source and installation software
Install utility software collection under Ubuntu system
Linux install Docker and run Ubuntu system
Ubuntu common commands
Ubuntu16 upgrade Python3
Ubuntu system installation
Ubuntu14 upgrade MySQL
ubuntu14.04.1 upgrade openssh
ubuntu16.04 upgrade python2
Summary of Ubuntu system and privacy cleaning tools
Basic configuration and common software installation after ubuntu 18.04 installation
Technical corner | Windows 10/7 and Ubuntu 18.04 dual system installation
stacer personally thinks the best ubuntu system management software
CentOS7.5-1804 system kernel upgrade
Ubuntu update software source
Summary: Ubuntu Python2.x and
How to upgrade to Ubuntu 20.04
Ubuntu and RHEL dual Linux operating system installation tutorial
Ubuntu20.04 experience and beautification
Ubuntu introduction and installation
Ubuntu configure network commands
The difference between CentOS and Ubuntu in Linux system
How to modify time zone and time in ubuntu system
Ubuntu12 step-by-step installation and configuration (system, FTP, TELNET.. settings)
How to install theano and keras on ubuntu system
Linux firewall related configuration commands and operations (centos and ubuntu)
Common exceptions and solutions for Ubuntu system installation and configuration
ubuntu dpkg software uninstall
Ubuntu backup and restore
Ubuntu dual system installation
How to upgrade to Ubuntu 20.04
Ubuntu own software record
Talk about | Install and use Linux system Ubuntu under Win10
systemback ubuntu system backup and recovery is simple, fast and effective
Ubuntu 16.04 A series of software installation commands, including QQ, Sogou
How to install JDK and Mysql on Ubuntu 18.04 linux system
ubuntu16.04 build vim and pyt
Ubuntu 16.04 compile and install PHP 7.2
ubuntu18.04 compile and install python3.8
Upgrade Ubuntu 18.04 on Azure to 18.10
Ubuntu16.04 installation and simple configuration
Server upgrade Ubuntu 20.04 LTS record
Jmeter (18)_Ubuntu deploy jmeter and ant
Centos7 system commonly used commands
ubuntu install and configure GitLab
Ubuntu deployment and experience Nexus3
Ubuntu Xfce desktop system settings
Server upgrade Ubuntu 20.04 LTS record
Install common software on Ubuntu 16.04
Ubuntu16.04 install SVN and configuration
Ubuntu16.04 install and uninstall VMware-Workstation 14
Ubuntu PostgreSQL installation and configuration
How to upgrade to Ubuntu 16.04 LTS
Common exceptions and solutions in the use and development of Ubuntu system