Finding and installing PowerShell modules
In this lesson, I'm going to be showing you how to install PowerShell modules. Now, when you're working with PowerShell, it can be helpful to install PowerShell modules, which will increase your efficiency and just make life easier when you're starting to work with PowerShell, we're going to cover a couple of different ways to install PowerShell modules that would be through the install dash module, we'll talk about fine dash module, as well as using the PowerShell gallery in your web browser, doing things like installing modules directly from GitHub, and just manually putting modules inside of your modules folder in PowerShell. We'll finish up by uninstalling modules, and then that'll be it for this lecture.
Alright, so to get started, what I'm going to do is start with the find module command. If I say find module. And just press enter. For example, what's going to happen is it's going to start outputting all of the modules that I have in my current PowerShell repository, and I'm just going to hit control C because I think at the time of this writing, there's 11 or 12 thousand packages available and you'll notice there all from this repository PowerShell gallery.
So we have speculation control P S one is update. All of these are from P S gallery, which is our only repository that we have installed by default. And I can see that by saying get dash P S repository. If I press enter again, I'm hitting tab to auto complete that in case you're wondering if I press enter, it's going to tell me that the P S repository that I have installed is PowerShell gallery.
And it's untrusted, which means if I try to install one of these modules, I'm gonna get a pop up saying, Hey, you don't trust this repository. Are you sure you want to install this module? And of course, we'll probably say yes, but it also tells me the source location. Now, you may be wondering when are you ever going to add a different repository?
That would be when you maybe have a offline repository…
No comments yet. Add the first comment to start the discussion.