 There are so many people that contribute to Linux and free and open source software they put in all of this effort all of this Time and effort and put in so much work and so many people's work goes Underappreciated and today I wanted to change that a little bit because I wanted to shine a spotlight on someone because Just today I came across one of these unsung heroes I was looking at the arch Linux site because I was installing some packages I've got a lot of Haskell packages installed on my system because I'm you know do a lot with Haskell I've got a probably 300 different Haskell packages installed on my system and The maintainer and the packager of all of these Haskell programs I notice is always the same guy Felix Yan pretty much anything I search for Haskell related Felix is the one that packaged that so that is really cool but it goes beyond that I started looking at other packages if I just go to packages here and You know of the thousands of packages that are in the standard arch repositories if I just click on anything at random zero ad Who is the packager the person that actually packaged it was Felix and right? He is not the maintainer someone named spin is actually maintaining the package, but there are literally thousands of packages All over the arch repos that are actually packaged by Felix if I just click on his name here Let's see all of these packages are associated with Felix in some way 3720 packages he has packaged 3700 packages for arch Linux and remember the arch repos are not very big because so much stuff associated with arch is also in the AUR so their standard repositories are actually kind of small so his 3720 packages is a huge percentage of the arch repository One man That's incredible. And of course being curious, you know, I wanted to look up who Felix actually is he has a github And I'm looking at his github and of course he's got a lot of arch Linux related stuff You know package builds and everything look at his contributions to github. So these are his commits in the last year Yes 231,835 Commits in the last year That's incredible a quarter of a million commits to this github and all of these related projects now obviously This is all automated I mean he's had to automate all of this to be able to do what he's doing maintaining all of these packages for arch Linux But even the automation there's so much work that goes into building all of the the scripts and the code to get All of that to work properly and still you've got to maintain stuff to keep it all working This is really incredible. So Felix, I commend you job. Well done now We don't want to just make this video all about hey go say thank you to Felix Obviously, we want to do some educational stuff, too So what I would suggest is let's open a terminal and figure out the percentage of packages that Felix Packaged on my system or on your system. You can follow along with these commands as well So I'm gonna switch over to this workspace and let me zoom in a little bit So if we want to find out all of the packages that Felix had something to do with on our system We need to use the command Pac-Man dash qi and then name of program. It really doesn't matter I could do zero ad since we know, you know that he was a part of that and Pac-Man dash capital q lowercase I gives you pretty much this detailed Explanation of everything about the zero ad package including the packager. So this is the line So what we want to do is we want to run Pac-Man dash qi on every single package That is installed on our system from the arch repose How do we get all of the packages that we installed? Well Pac-Man dash Capital q lowercase q with no other arguments just spits out a list of every package that I have installed on my system via Pac-Man So we need to take the output from Pac-Man dash Capital q lowercase q and we need to take that and pass that on as a parameter to Pac-Man dash capital q lowercase I right and for those of you that have watched enough of my command line videos You already know one possible solution to this would be to do the Pac-Man dash capital q lowercase q and then Hype that into xargs. So xargs is going to take the output from the first command And it's going to pass it along as a parameter to the next command So we'll do Pac-Man dash qi next if I just hit enter on that we get the qi output on All two thousand or whatever packages I have installed on my system But now we need to take that output and filter out everything We only want the lines where the packager is Felix So the next thing I want to do is pipe all of that Into grip and we're gonna search for this string pattern Felix Yan And now we get all of these lines where packager was Felix, right? So it's gonna be a lot of lines. How do we get the line count? Well, you guys that have watched enough of the channel know about the word count program and Wc is the word count program if you give it the dash l flag for line count You will get the line count in this output and the number of lines in that output is 691 now to get a percentage of the packages that Felix packaged on my system Let's get the total number of packages that were installed on my system. So Pac-Man qq and let's go ahead and do Wc dash l so this is a count of all the packages Installed on my system and now we just need to divide 691 by 2 4 6 3 to get the percentage And the easiest way to do this at the command line would be to echo 691 space divided by 2 4 6 3 and then pipe that into BC which is your basic calculator It's a the calculator here available inside the shell now if I don't give BC this dash l flag The division is just going to be the whole number. So it's just going to return zero It's the the number it's not the remainder But we want it to actually display zero dot whatever the percentage is so give it the dash l flag And point two eight so 28 of the packages on my system are installed because Of Felix Felix, you're a monster Felix if you're ever Anywhere inside the southern united states, man, you got to let me know because I I owe you a beer I owe you a bunch of beers number four. I go. I need to thank a few special people I need to thank the producers of this episode gave james maxim the homies to bald matt Amendment mitchell paul royal west armor dragon bash potato chuck commander angry george lee marsham methosnate ur yon paul Peace heart from the door polytech realities for less real profit rolling tools devil willy and zinnabit These guys they're my highest tier patrons over on patreon without these guys this episode would not have been possible The show is also brought to you by each and every one of these lovely Ladies and gentlemen all these names you're seeing on the screen right now. These are all my supporters over on patreon I don't have any corporate sponsors I'm sponsored by you guys the community if you like my work want to support me subscribe to distro tube over on patreon peace guys