The Pacman Package Manager in Arch Linux

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey guys today I'm gonna be discussing pac-man pac-man is the package manager in Arch Linux and is also the package manager in most Arch Linux based distributions pac-man allows you to install and remove programs it allows you to sync your local machine with the remote repositories it allows you to query available packages for install pac-man has a ton of functionality to it today I'm just going to give a brief overview of some of the basic commands you will need in pac-man for those of you that are new to arch linux and arch linux face distributions so let's get started the probably most important command you will need to know as far as pac-man is concerned is how to upgrade your system's packages how you do this for most Arch machines is you can either login as Super User with issue and then give your root password and now you're the Super User and you can do pac-man - capital s lowercase Y lowercase u that works for those of you that don't like to log in as issue let me exit out of this you can sudo heck man - capital s why you sudo pac-man - capital S lower case Y lower case you give your root password and my systems up to date there's nothing to do here what this command did the sudo Peck man - capital s why you the - capital s and the lower case y together basically it synchronizes the repos and then the U stands for upgrade upgrade all the packages on the system i've already upgraded this machine so there there was nothing to do for me but that is how you would go ahead and update all of your systems packages it's very similar for those of you familiar with Debian and amoun two based distributions you know sudo apt update sudo apt upgrade basically the sudo pac-man - capital S lowercase Y lowercase u is the same thing as new and a sudo apt update sudo apt upgrade now for installing and removing software let's start with installing software so today I'm running Manjaro here and what I'm going to do is pseudo pac-man again you have to be super user you have to be the root user to install or remove software to upgrade your system to do any kind of system changes so sudo peckmon - capital S again s first sink to the repos and then the name of the package you want to install I know in this particular VM I'm running I don't have GU deceive you install so GU vcq which is a webcam in pseudo pac-man - capital s name of the program hit enter and it tells me the installation size yes or no do I want to proceed with the installation yes and there we go we just installed G UVC whew now to remove a package to remove a package you would sudo pac-man - capital R for removed G UVC view in this case but the name of the package you wish to remove now this will remove G UVC view but it will only remove G UVC view when I install G UVC you remember in installed actually two programs that nostalgy UVC view but as also installed port audio which is a dependency of G UVC view I want to remove G UVC view I also want to remove port audio that dependency because I don't need it if I'm not gonna use G UVC view anymore so Soto Peck man - capital R lowercase s g UVC view hit enter and it will remove G UVC view and the dependencies for G UVC view that are no longer needed there we go I'm one note on the sudo pac-man - capital R lowercase yes for remove with dependencies it will only remove dependencies for the program as long as they're not required by any other program on your system so it is a pretty safe command to run there are ways to a force pac-man to remove program plus all its dependencies whether those dependencies are required by other programs I'm not gonna show that because that's kind of dangerous and that's kind of advanced stuff you guys that need to do something like that I'm gonna let you find that on your own today I'm gonna stick with mostly safe stuff stuff that's not likely to break anything all right say you need to query a package for install so sudo let me get back into the terminal here sudo pac-man - capital s lowercase s and then the package you wish you wish to search for in the remote repositories so I know I don't have G UVC view installed on this machine because I just removed it so G you deceive you and this will search the repositories the remote repositories for this package and there it returned a community /g UVC view it gives me the the description of that particular program a simple GDK interface for capturing and viewing video from yeah yeah whatever alright so that is how you query the remote repositories what about querying packages already installed on your local system sudo pac-man - cute yes and then I know I have Firefox installed on this machine so I'll query Firefox and there you go local / Firefox 59 0.1 and then a description of the program standalone web browser from Mozilla for some system maintenance stuff some system cleaning sometimes you want to figure out what packages are installed on your system that are no longer required they're no longer required as dependencies of other programs are what we call orphan packages so sudo pac-man actually I don't even think I need sudo for this because I'm not installing anything I'm just doing a search so tech man - Q capital Q lowercase the lowercase t run that command and I have don't know about 10 or 12 programs packages that are no longer needed so I can just go ahead and remove these packages if I wish because they're not required on the system anymore they're not a dependency for anything else so how do you remove those dependencies those or excuse me those unneeded dependencies now those orphan packages how do you remove those well you can actually do that with one command this is kind of a complicated command you don't have to run this command very often to get rid of these orphan packages I always have to look it up because I don't remember this just off the top of my head but it's sudo Peck man - capital R lowercase in lowercase a s in space the dollar symbol then in parentheses pac-man space - capital Q lowercase T lowercase D lowercase Q again it's kind of a convoluted kind of command but can you run that and it tells me 26 packages that are no longer needed these orphaned packages that are gonna be removed and just like that I cleared all these unneeded packages off my system so just a quick recap up and some of the commands you will constantly use again to update your machine it's probably the most important one is the one you will use the most sudo pac-man - capital S lower case Y lower case u upgrades all your systems packages this is how you update your machine a pseudo Peck man - capital s package name is how you install a program sudo pac-man - capital R package is how you remove a program and - are lowercase s removes the package and all unneeded dependencies for that package alright sudo pac-man - capital S lowercase s package name queries the remote repositories for that package so it's searching for packages and the remote repositories - capital QES queries a package that is installed locally on your machine pac-man - capital Q DT gives you all the orphaned packages on your machine you don't need sudo privileges to run that query and then to remove all those orphaned packages you would need to run this particular command here just google it when you need to run it up if you search for arch pac-man remove orphans you'll find this it's actually in the Arch Linux wiki pages for pac-man of course the best place to get information on pac-man and its usage and its various flags and all of its functionality it has a lot more functionality than what I've discussed here it's got some pretty advanced features to one go to the Arch Linux wiki page for pac-man I'll link it in the description too just read the man page so man name of the program in this case pac-man gives us the manual page for pac-man pac-man it's a package manager utility and I'm just gonna scroll through here so you can see that pac-man has a ton of Flags various use flags and I didn't discuss most of these but if you're wondering what some of those flags in the commands earlier I shared with you like we used why a lot why is for refresh the - capital s that was in so many commands is for sync is syncing the repos you was for upgrade Q capital Q I think was for query and so forth and so on so guys uh for those of you that are coming to arch linux or arch based distributions anew and you're wondering about some of the terminal commands for your package manager of course these days you can always do GUI package managers in arch base distros the ones up most people use there's a octopi system updater tool there is a pad which is a GUI package manager for arch and arch based Linux distributions but once you familiarize yourself with the command-line functions for your package managers with pac-man apt DNF emerge whatever whatever the case may be it's so much easier to install and remove software and to upgrade your system through the terminal and once you know a few basic commands so guys that is pac-man peace [Music]
Info
Channel: DistroTube
Views: 34,341
Rating: undefined out of 5
Keywords: Pacman, package manager, management, Arch, Linux, distro, Manjaro, Antergos, install, remove, software, update, upgrade, dependencies
Id: -UvZ4BEAXFU
Channel Id: undefined
Length: 11min 43sec (703 seconds)
Published: Thu Mar 29 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.