1 00:00:05,920 --> 00:00:12,430 In this lecture, we're going to talk about how to install the latest version of Rust on Linux. 2 00:00:12,850 --> 00:00:16,120 My Linux operating system is going to be Ubuntu 20. 3 00:00:17,110 --> 00:00:22,330 So the first thing that we're going to want to do is make sure that we have kernel installed. 4 00:00:23,650 --> 00:00:27,310 So we're going to run pseudo apt install kernel. 5 00:00:27,940 --> 00:00:30,190 I have kernel installed already. 6 00:00:30,730 --> 00:00:35,830 The next thing we want to make sure that we have installed is the build essential package. 7 00:00:35,830 --> 00:00:43,240 So again, sudo apt install build essential. 8 00:00:44,260 --> 00:00:46,720 I also have build essential already installed. 9 00:00:46,720 --> 00:00:50,890 So now once you have both of those installed, we are ready to. 10 00:00:51,880 --> 00:00:54,820 Download and run the rust. 11 00:00:55,670 --> 00:00:57,050 Installation script. 12 00:00:58,790 --> 00:01:08,660 So what you're going to do is you're going to curl protocol for protocol HTTPS at the TLS version 1.2 13 00:01:09,260 --> 00:01:11,030 https. 14 00:01:13,220 --> 00:01:20,150 Rest up RS Tech SE Capital S.F. pipe it and run. 15 00:01:25,590 --> 00:01:30,780 So what it's going to do is it's going to go out download the Rust Installer. 16 00:01:31,320 --> 00:01:37,470 It's going to modify the path variable force, which is really important, allowing us to interact with 17 00:01:37,470 --> 00:01:41,670 all the rust tools from our terminal. 18 00:01:41,820 --> 00:01:46,320 So we're going to type one to proceed with the default installation. 19 00:01:47,380 --> 00:01:52,030 Hit Enter and it's going to go out and it's going to download all of the rest components for us and 20 00:01:52,030 --> 00:01:58,660 it looks like it is getting rust version 1.57, which is great because that is the last. 21 00:01:59,830 --> 00:02:00,790 Stable release. 22 00:02:03,130 --> 00:02:10,810 So now that it is finished, we are going to run source 23 00:02:12,880 --> 00:02:15,730 home dot cargo. 24 00:02:23,340 --> 00:02:24,660 And now we can run. 25 00:02:24,810 --> 00:02:26,310 Russ Sea tech. 26 00:02:26,310 --> 00:02:28,140 Tech version. 27 00:02:29,430 --> 00:02:31,980 And as you can see, let me clear. 28 00:02:33,540 --> 00:02:37,020 We now have the latest version of rust installed. 29 00:02:37,050 --> 00:02:40,230 These steps also work on Mac OS. 30 00:02:40,410 --> 00:02:48,150 I will place all these steps in the resources tab just for quick reference and I will also make note 31 00:02:48,150 --> 00:02:52,770 of how you can get a C compiler on mac os.