 Hi, I'm Denshi and this is the Yay Package Manager. It's what a lot of people use on Arch Linux, including me, because it's not only just a wrapper for Pacman, which is the stock Arch Linux package manager that comes with Arch Linux and they use to install all your packages, but it also has support for the AUR or the Arch Linux user repository, which is that big repository with all the user-maintained packages. And it just has a lot of really useful packages in it, and you might want to use that at some point. It's probably the greatest selling point of selling points free, but the greatest thing about Arch is the accessibility to that repository. And with using this tool called Yay, you can search and install and do a bunch of things that are really useful regarding the AUR. So first of all, let's take a look at how to install this on your Arch Linux system. So you're going to want to have Git installed. So this is going to be a sudo pacman-s-git if you don't already have it installed. As you can see, it says reinstalled. So I already have that. Cancel command with Ctrl C. We're going to go to this website over here. The AUR.archlinux.org package is Yay. So this is the Yay package. And we're going to click here at the Git clone URL. You can click it and a copy pastes it. And then we can go to our terminal choice. I'm using termite here, but you can use whatever terminal. And we're going to do Git clone. So you should have the Git command installed. And we're going to paste that. It might be Ctrl Shift V or Ctrl Alt V, depending on what terminal you're using. For me, it's Ctrl Shift V to copy-paste things into my terminal. Press Enter and it will download the Yay source code. Now, this isn't exactly the best way of going around this in terms of speed because what I've just done here is downloaded the Git repository, sort of the Git font, the archlinux source code for Yay. So what I'm going to do is following these steps over here, so we've already cloned it. We're going to change directory to Yay. So cd Yay. And then we're going to make package dash si. So that just builds this package for us so we can use Yay. It's going to ask to install the Go programming language so it can compile it. And we're going to just press Enter when it asks for that. Eventually, once that's installed, it downloads the tar there and it begins building this. So as you can see, it's building Yay from source. So it's taking the source code we downloaded and turning it into a package we can actually install on the system. It's just going to have to press Enter here. It might ask for sudo privileges. So type in your password if you have, you know, sudo privileges, root privileges. And now that we've done that, we can just change directory back to where we were before if you want. We can now use the Yay command. You can, you know, press it and it will automatically start doing stuff. If you just type Yay nothing, we'll cover that later. Now the reason I say this isn't the best way of doing this is because you can also go and download Yay-bin. So this is a different link from what we downloaded before. So if you go up in our commands, you notice that we cloned just Yay. But if we were to clone Yay-bin instead and then change directory to Yay-bin and then make the package as we did before, it doesn't ask to install Go because this is a pre-compiled package. And as you can see, it installed much faster. I just told it not to actually cover what we've already installed as Yay. But basically, if you clone this URL, which is what I have in the description, you're going to be building Yay from source. And if your computer isn't the most powerful thing in the world, that might take a little while. However, if you want to, you know, if you want to do this, then this is probably the best way to get the most up-to-date versions of Yay. And there's always the Yay-bin package. So you can just change this command to Yay-bin and download the binary version of Yay so you can speed up this whole process. Okay, so now that we've covered the install process, you should have the Yay command installed on your system. We're going to take a look at how to use it. If you run Yay and nothing else, it updates all your repositories and your packages. As you can see, I don't really have anything to update. So it doesn't show up anything. But if I had packages, both in my regular repositories and off the AUR that needed updating, that would have updated both of those. If we run Yay, then a search term. So for example, let's say I'm searching for a package. I want something GNOME related. I would type in GNOME, so Yay GNOME. And it's going to show up with a list of packages that have GNOME somewhere, whether it be in their name or in their group, which is these square brackets over here. These are our package groups or their description. And you know, it shows up all these various packages. And this is essentially the same as running sudo pacman-ssgnome. It's the same thing. However, the difference with this command is that it gives you numbers, so you can, so as you can see, all these numbers are 25 and all this stuff. And you can type in the numbers you want to install, so if I want to install packages like 15, and four, and seven, and all this kind of stuff, press Enter. And then it begins to download them. I'm not going to actually install them. So you can install them. And this Yay, then a search term, also searches the AUR. So as you can see, it's all extra repositories, things that are in the arch, but if you go high enough, you'll notice that soon you'll reach community, and then you'll reach the AUR. So this little thing where it says AUR, then slash, that means those are packages that come from the AUR. So you can search the AUR for things. So that's what Yay is really useful for. There's one last thing I want to say with search terms, and that's that you can discriminate with the search terms as you go along. So let's say I want to download a GNOME program, so something that's either in GNOME groups or with GNOME somewhere in the name of description. And then I want to look specifically for packages that have both GNOME and CLOCK in their name. So we're gonna look for packages that have GNOME in their name and then out of those packages, we're gonna search for CLOCK. And we can keep doing this, so we can keep adding things, but let's just do GNOME, then CLOCK, and you'll see that a couple of things come up. So GNOME CLOCK, GNOME Shell Extension, GNOME CLOCK, get, so you can discriminate with every next term in the search. If we type in Yay-S, then a package, or Yay-U, then a package, or Yay-R, then a package, is gonna do the same thing as sudo pacman-s or U or R, but it's gonna take it to consideration AUR package. For example, there's an AUR package called DaVinci Resolve, which is DaVinci Resolve video editor. I can do Yay-S DaVinci Resolve, and it's gonna download and install it from the AUR. So if I run that, as you can see, it's gonna ask for the dependencies, just press enter and all these different steps, and it's gonna begin downloading it and installing it. Cancel that because I already have that installed on my system, but you can do that. You can also run Yay-SYU as you would for sudo pacman-s, the exact same thing. Yay-C is a very useful command. It uninstalls any unnecessary packages that were installed for, let's say they were installed to compile a certain AUR package, or they're just generally useless. It's going to uninstall them for you. You could also run Yay-SC, which is the same as pacman-SC, where it clears all cache and stuff. Just give you confirmations for everything, and it just gets rid of all Yay, so AUR cache and pacman-cache, that just clears up space in your system. All of these commands can be run with Yay-no-confirm to remove all prompts. If I do dash-no-confirm, and I do dash-s vim, for example, so I want to install vim with no confirmation, just install it, press enter, and it will automatically install it like that without asking me for yes or no. It's gonna do it with the dash-no-confirmation. Now, a couple of last things we want to talk about is the dash-g and dash-b options. So Yay-g, the name of a package, downloads that package's package build. So we noticed at the beginning of this video, what we did was getClone and then a URL. We were downloading something called a package build. So essentially, it makes a folder. In this case, as you can see, we got a folder called Yay, and that was made when we downloaded this using getClone. Now, we can do that exact same thing but using the Yay command, and without the need for a URL, we can just type in the name of the package. So we can do Yay-g-dvinshresolve, for example, and it's gonna download the dvinshresolve package build. So as you can see, we now have a folder called dvinshresolve. And if we change directory to dvinshresolve, and we do make package-si, you'll see that it will begin installing dvinshresolve as it would when you do Yay-s-dvinshresolve. This is the way to download the package build by itself. If you want to, let's say, modify the source code and then build. The last thing I wanna take a look at is a pretty cool command, Yay-p-dash-stats. This lists statistics on both your AUR packages and your regular packages. So as you can see, we have 993 packages installed. We got 16 foreign packages. So those are packages from the AUR. Explicitly installed packages, 167, and packages that are taking up space in our system. That's 11.5 gigabytes of space. It lists your 10 biggest packages, which I think is a very useful thing if you're looking through your packages, you wanna find big ones that maybe you don't really need. So yeah, that's a very useful command that I find quite good. But anyway, that was the Yay package manager. It's a relatively simple piece of software to use, but very powerful. Downloading things from the AUR is super good if you're using Arch Linux. It's a great commodity. And I love the AUR. It's very large. It's got a lot of useful packages. And this makes up for the relatively small Pac-Man, just stock arch repositories, because those are normally quite small. So anyway, I hope you enjoyed this video. I've been Denshi. Goodbye.