Topgrade is a multipurpose tool that allows the user to perform multiple operations. It also shows an overview before the package is updated and gives you the power to control it.
Install Topgrade on Linux
We can install Topgrade on a Linux system using Rust’s Cargo package manager. So we need to get it first with the mentioned command:
Install the Cargo package manager:
Run the command to install the topgrade tool via Cargo on a Linux system:
You may get an error message like this at the end of the installation:
Set a path using the command mentioned, substituting your username instead of mine (wardah):
Restart your Linux system for the functions to run perfectly.
Use Topgrade to upgrade packages on Linux
To upgrade the complete Linux system, run the topgrade command in the terminal:
At the end of the installation you will get the following response:
Clean temporary files with Topgrade
Topgrade is a multi-purpose command that is useful for upgrading purposes but also helps you clean up your system by removing temporary files. This would help free up system space and reduce the risk of errors.
Run the following command to clean up old files in Linux system:
Upgrade a specific package with Topgrade
The topgrade command also allows users to upgrade the specific packages instead of all. For this purpose, the –only option is used with the application name:
To the example:
Exclude package from updating with topgrade
Topgrade is also useful for excluding packages from upgrading. Let’s say to exclude snap the command would be:
Topgrade is a command line utility that handles system updates on most Linux distributions, including Debian, Red Hat, and Arch Linux. You can install this tool on a Linux system through the Cargo package manager. Once installed, you can use this tool to update a single package or all packages on your system. You can also use this tool to remove unnecessary temporary files to free up disk space on Linux system.