How to use topgrade to upgrade packages on Linux

Topgrade is a command line utility useful for most Linux distributions like Debian, Arch Linux, Red Hat, etc. It constantly checks all installed tools and processes their updates. During the upgrade, it also detects and monitors errors.

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:

$ sudo appropriate update && sudo appropriate upgrade

Install the Cargo package manager:

$ sudo suitable To install Cargo libssl-dev pkg-config

Run the command to install the topgrade tool via Cargo on a Linux system:

$ charge To install top grade

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):

$ echoexport AWAY=$PATH:/hometown/Ward/.Charge/Container’ >> /hometown/Ward/bashrc

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:

$ top grade

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:

$ top grade –Clean up

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:

$ top grade –only <package names>

To the example:

$ top grade –only vim

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:

$ top grade –deactivate snap system


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.

Related Posts