 OK, today we're going to be looking at how to see what packages are installed on your system. This is a tutorial for Debian and Debian-based systems. So we're going to be looking at two programs here. We're going to be looking at apt and DPKG package, Debian package. So here we go. Let's first look at DPKG. We're going to do dash dash, get dash, oops, selection, selections. If we do that, we'll hit Enter, and it'll list all programs, all packages that are installed, plus ones that are not installed. We got installed and de-installed. With de-installed, I believe our packages that we probably had installed at one point got installed, but not completely removed. The packages are still on your system, they're just not installed. But we want to see what's installed. So what we're going to do is we're going to run that same command, and we're just going to pipe it into grep dash v, and we're going to say de-installed. What that's going to say is find all lines that don't say de-installed. And there we go. Now we have a list of all our installed packages. If we want to see how many they were, we can pipe that into wc dash l. And I have 4,065 packages installed. Remember, these aren't like necessarily all full programs. They're libraries. One program might use a number of packages. It probably uses a number of packages. So that's one way to look at it. Let's look at doing the same thing, but with apt. So I'm going to clear the screen, apt apt apt, and we're going to say list, and then we're going to say dash dash installed. So this will list packages that are installed. And there we go. We have a list of them. It doesn't just give the names. It gives a little more information. But we just want to see names. We could pipe that into cut dash d for delimiter backslash forward slash. So that's saying divide these lines up by forward slashes. And I'm going to say dash f1 for the first field. And there we go. Now we have a list of the names of the packages. But let's run our command, our d package command again. You see I have 4,065. Let's run that against this. We'll say again, pipe this into wc dash l. And you see that we get 4,066. Why is that? Well, if I will let me scroll, it's probably not going to let me. Yeah, it's not going to let me scroll up high enough. Maybe. Nope. There is a line at the beginning of the output of this command that says List, or Listing. I'll just say Listing, and it lists everything. So what we need to do is we need to remove that line. So running the same command, what we're going to do here is we're going to pipe this into a grep command dash v, meaning remove any line that begins with, that's what this little carrot says, begins with Listing. Now if we run that, you can see we get 4,065. And this is just a warning from after we could pipe that into null if we wanted to get rid of it. But that's how two different ways on a Debian system that you can find what packages are installed and count them so you know how many packages are installed. I hope you enjoyed this tutorial. I'm going to be doing a little bit more on this topic later this week, so go ahead and be sure to subscribe. If you like this video, be sure to like it, comment, and think about supporting over at patreon.com forward slash mail x1000, there's a link in the description. So there's a link on my website, filmsbychrist.com, that's Chris the K, there's a link to that in the description as well. There you can support me through Patreon, you can also support me through PayPal, and you can also search through all my videos from both my channels. So go ahead and give that look, and as always, I hope that you have a great day.