How to install Rust on Linux

Опубликовано: 10 Октябрь 2024
на канале: How To Make Tech Work from TechRepublic
8,662
129

Rust is an incredibly important programming language for creating both system and backend software. Find out how to install Rust on Linux in a few quick steps.

For the full step-by-step article, head to https://www.techrepublic.com/article/...

List of Commands:

sudo apt-get install curl -y
sudo dnf install curl -y
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
source ~/.profile
sudo apt-get install build-essential -y
sudo dnf install cmake gcc -y
mkdir rusttest
cd rusttest
nano rusttest.rs
fn main() {
println!("Hello, TechRepublic!");
}
rustc rusttest.rs
./rusttest

Watch more How To videos:    / @howtomaketechwork  
Watch more TechRepublic videos: https://www.techrepublic.com/videos/
Follow TechRepublic on Twitter:   / techrepublic  
Follow TechRepublic on Facebook:   / techrepublic  
Follow TechRepublic on Instagram:   / techrepublic  
Follow TechRepublic on LinkedIn:   / tech.  .

Watch Tech Stories, a series of mini documentaries from TechRepublic: https://www.youtube.com/watch?v=RRPAs...