Lubuntu : Uninstall and reinstall RUST
In this article, I will show you how to uninstall and reinstall RUST on Linux. Rust is a popular choice on Linux for a variety of use cases due to its performance, security and versatility. For example, Rust is also necessary for the installation of a GRIN node/server.
What is needed for this
- VirtualBox : Lubuntu 18 oder Lubuntu 19
- Linux Knowledge : Log in Lubuntu/Ubuntu in the terminal as root
- Linux Knowledge : Update Lubuntu/Ubuntu packages (update/upgrade)
Uninstall and reinstall RUST
Before reinstalling RUST, the previous RUST installation must be uninstalled. To do this, first log in to the terminal as root. Instruction: Log in Lubuntu/Ubuntu in the terminal as root Then execute this command and confirm the uninstallation with [Y].
$ sudo apt remove rustc
Now you can start the download and reinstallation of RUST by entering the following.
Tip: To enter the | character under Linux, press [AltGR] + [<>]. If you have installed the VBox Guest Additions, you can work with the clipboard, i.e. copy the text and paste it into the terminal with the right mouse button.
$ curl https://sh.rustup.rs -sSf | sh;
This query follows. Select 1 here.
The RUST installation is completed after approx. 1 minute. You should then receive the following success message.
Now configure your shell execution with the following command.
source $HOME/.cargo/env
And finally, you should update RUST. You can do this with the following command.
$ rustup update
RUST is now installed and up to date.