sudo apt-get dist-upgrade
If you want to know which specific installation package details you need to upgrade, just add the -s option behind:
sudo apt-get -s upgrade
This command is really useful if you are not sure whether this update affects other components in the system.
After downloading, Ubuntu will temporarily store these files in case of reuse. However, you can still remove this cache to save disk space with:
sudo apt-get clean
But if you just want to keep the latest version, use the following command:
sudo apt-get autoclean
If you want to check which applications are installed, we will use dpkg:
sudo dpkg -list
Browse the entire list with the command:
sudo dpkg –list | less
Search with the accompanying grep parameter:
dpkg –list | grep [search term]
If you find any suitable results, the system will display full and clear information for users. Besides, we can use the shortened syntax below to search:
dpkg –l 'search term'
The search keyword must be enclosed in parentheses (''), can be used in lowercase or uppercase:
Here are some basic and detailed information about the process of finding, installing, upgrading or removing software in Ubuntu using the command line. We look forward to receiving your comments and sharing your experience through the comment section below. Good luck!