 All right. So you've just installed Arch Linux or any other Pac-Man based Linux distribution. And then you're kind of at a standstill. Maybe you're used to Debian or Rubuntu or something. You just don't quite know how package management on distributions like Arch quite work. So that's what we're going to be talking about today. We're going to be talking about how to manage the packages on any distribution with the Pacman package manager. And more specifically, I'm going to be talking about how to use yay and paru, which are AUR managers. So we'll talk about that later. Now the first basic things that you probably already know is that you can run pseudo Pacman. You always have to run Pacman with pseudo. You can never run Pacman without the privileges of a super user. And you can run dash s and then type the name of the package like GIMP, for example. And there you go. You can install and press and over here and press enter. There you go. I canceled it. One thing you'll notice is that if you do this from time to time, maybe the package is actually outdated because your database hasn't been updated. Either that or sometimes you'll be downloading a package and it just doesn't download. It cannot find it on the repositories. And this is often due to the fact that you have not updated your databases. To do this, you have to run Pacman dash capital S. Why? Lowercase why? So running this, it'll update all of the package databases. Now you'll notice something over here. I have the core extra and community in multi lib databases, but I also have a custom one over here, which is home un googled chromium arch. You can make an arch Linux repository of your own and you can use arch Linux repositories maintained by other people. If you go to the file Etsy pacman.com and go right to the bottom where all the repositories are, you'll notice that there are many here. There's the testing repositories or you can get more exclusive packages. And of course is the main repositories, the core extra and community repositories. But over here at the bottom, I have a custom repository, which is this one over here for un googled chromium. Now you can get this off a GitHub page and stuff. There's many of these for specific packages. It's kind of like the Ubuntu PPAs or Debbie and repositories. So I just wanted to make this a point is that if you ever feel like there's missing packages in the pacman repositories, look online and see if somebody's made a repository for you to add to the config file because sometimes that may be the case. But anyways, that's already getting a little bit advanced. Go back to what we were talking about before, which is updating databases. If you want to update the databases and update the packages on your system, you can run pseudo pacman dash s lowercase y and lowercase u. So you for update, learning that you'll update all of the databases like we did before. And then you'll update all the packages as well. So there's a few package updates available to press enter over here, because the wise capital letter that means the default option when you press enter will always be yes. And then it'll start installing the packages start downloading them simultaneously and do it all that kind of job. Actually, speaking of the simultaneous downloads, we can make those even more. So go on a pacman.conf. If you go down over here to this section says parallel downloads and uncommented, you'll see that it'll download everything in one go. And that's really cool to look at. I wouldn't recommend increasing this above like seven or eight five will do for now to list all the packages on your system, you can run pacman dash q s, that's going to list all of them with a description and everything like that. If you want pacman dash ql, it'll list all of the files on the system with packages. So if you run that and then pipe out of no, gimp into it, right, we're going to grab for gimp, we'll see all the files that the package gimp adds on our system. And we can make this a little bit more useful by using pacman dash f if you run pseudo pacman dash f and then search for any kind of file on our system, the system will then look through the package repositories for a package that could hold that. So for example, there's a command called net stat, right? I don't have it installed. So net stat. And let's say you don't know what package that app retains to. So you want to use that net stack command. But the package doesn't exist. There's no such thing as a net stack command, it probably has a different name, right? And you do not know the name. So you can run pseudo pacman dash f y user bin net stat. So that's probably the path of the net stat tool. It'll update the repositories for the files. And right over there, we can see that user bin net stat is owned by net dash tools. So if you run pseudo pacman dash s net dash tools, and then run net stat, there you go, we have net stat running over there. So anyways, those are some basic usability tips. I'll move it on to more specific things, the a u r. That's what I really want to be talking about today. So if you go to a u r dot archlinux.org, and search over here, you can get a plethora of different packages maintained by users. Now this often means you're going to have to compile the package from source if you're installing from the a u r. Now you might not really understand what that really means. And you don't really have to because the a u r does all that for you, your a u r manager will do all the compilation for you. We're going to get to how to install an a u r manager in a second. But I just wanted to clarify, if you go to etsy, make package.com, and this line over here, make flags, make sure to uncomment it. So there might be a hashtag to begin with it, just delete that or number symbol, and change this to a number of threads in your computer. So Mike is I have 12 threads. So you might make that dash j four, or dash j eight, I'm going to make it 12. This means that everything you compile on the system using the arch Linux make package tool, which we're also going to cover later, we'll use 12 threads, which is going to make it much faster. So anyways, I'm just going to write and quit, write and quit. And now let's take a look at how to install a popular a u r manager about being yay. So if you go back to the a u r website, you'll see you can get some a u r managers on here. And the popular one is called paru. So if you search for paru, there you go, you can install this one. And of course, there's also yay. So that's what I'm going to search for. Yay. And right over there, there's the yay package. So I'll have this linked in the description. And if you click on this link over here, this git clone URL, it'll copy it to your clipboard. So you can go back to your terminal, run git clone, and then paste that link. So if you run this command, assuming you've installed the git software, you've now created a folder called the a or a repository. So we're going to go into a by using CD. And then if you run make package dash si, the system will start compiling and installing it. I've already done this. So I'm not going to do it. I'm going to cancel. I'm going to press Ctrl C. However, if you were to go through with this process and press enter over here, the system would start downloading go and then it would compile yay would download the sources to yay and get all that done. And then eventually, by the end of that process, you will be able to run the yay command. If you run the yay command alone with no other parameters, it will automatically run pacman dash capital syu. So update databases and update all packages, including a war packages, which it can install. If you run the yay and then pass a search term to it, like let's say I want to install whatever the kids are into nowadays, you know, Spotify, right Spotify, you can see that not only does it give results from the arch repositories, it also gives tons of results from the a you are now I'm not going to touch any of this because I don't use Spotify and ever touched it. So I'm going to just ignore this press Ctrl C. However, you are able to search the entirety of the a you are just using this one command from your terminal, just think about how amazing that is. You can look through a gigantic repository of packages, probably the biggest in the world from your terminal from the comfortable states that just sitting here and typing stuff. Isn't that great? Anyways, another few things that yay can do that pacman cannot. It can run dash p commands, which are not in pacman, which gives statistics about the system. One that I'm going to use is yay dash p dash dash stats, which gives us some useful statistics on the packages on our system. So as we can see, we have a few very large packages over here, you know, the common offenders, the firmware, Nvidia stuff, La Tech, Google Chromium, Firefox, web browsers in general, honestly, and creta and of course, GCC. And as you can see against the total installed packages, the foreign installed packages that stuff from the a you are or things that you personally cloned and installed explicitly installed packages, we're going to cover that later in a second, because this is quite important and the size the packages occupy. So in this case, 7.8 gibby bites. Anyways, my final note for today is going to be this explicitly installed packages thing over here, this and I cannot explain how important this is. If you want to clean up your system and get rid of old packages, this functionality is essential. If you run pseudo pacman or just yay dash Q E, you will get a list of every single package that you personally typed on the terminal, not the packages installed on the system, which includes all the dependencies of it. These are all the things which you explicitly installed and the system maintains a database of this on purpose. This means that if you're looking to delete packages from your system to get rid of old stuff or anything you think is a little bit bloated, that you can easily look through this list instead of looking through the full package list, which would be once again, yay dash Q, which remember lists everything and and pseudo pacman dash Q does a similar thing. So this command over here, yay dash Q lowercase e is imperative to cleaning up your system. Anyways, I've been density. That was a video about Arch Linux package management. Thanks for watching and goodbye.