How to Effectively Use OneGet on Windows 10
If you’ve ever used Linux then you will have always wanted a Package Management tool for Windows. Yes, Windows has a third-party Package Management tool called Chocolatey which can be run using the command line.Here is an article on How to Effectively Use OneGet on Windows 10.
So, first let’s see the available commands. You can see it in the feature image above. To see the commands that are available type in the following command in Powershell. How to Effectively Use OneGet on Windows 10.
Get-Command -Module PackageManagement
Remember, not OneGet but PackageManagement (I’m writing here OneGet just for simplicity). So, now you have the list of commands. Now, let’s start by checking which package sources (package managers) we have.
Get Package Sources
Type in the following command (or just copy it):
Get-PackageSource
You should get the Package Sources that are installed on your system.
So, I have only the built-in PowerShell gallery installed. Now, let’s install the Chocolatey Package Manager. If you already are seeing Chocolatey in the list then skip the next step. Also check How to Effectively Use OneGet on Windows 10.
Installing Chocolatey
Enter the following command:
Get-PackageProvider -Name Chocolatey
Get-PackageProvider will find the package repositories that are available and install it.
Hit Enter and Chocolatey installation should start. After installation completes, check again the package source with the command you applied before. You should see Chocolatey.
Next, we need to set Chocolatey as default Software Package source. We’ll use set-packagesource command to set it as default. Enter the following command:
Set-PackageSource -Name chocolatey
Now as we’re all set let’s install a software from the chocolatey repository.
Install Software from Chocolatey Repository
You get more options with Chocolatey. You need not go to Chocolatey’s website and find the software you want to install. You can find that from Powershell itself using the find-package command. So, let’s say you want to find all packages related to ‘Chrome’.
find-package -name Chrome
Now you’ll get all the packages with Chrome keyword in it along with a summary. Now, from this list, I’ll install Adblockpluschrome.
install-package -name adblockpluschrome
Enter Y and installation will start.
No upgrade Command available
Surprisingly, OneGet doesn’t have an Update command. There’s an update command in Chocolatey but that won’t apply here. This issue was reported on GitHub back in 2014 when Technical Previews were being shooted to the Insiders and it still hasn’t been solved. Hopeyou liked this article on How to Effectively Use OneGet on Windows 10.
How to Effectively Use OneGet on Windows 10
So, first let’s see the available commands. You can see it in the feature image above. To see the commands that are available type in the following command in Powershell. How to Effectively Use OneGet on Windows 10.
Get-Command -Module PackageManagement
Remember, not OneGet but PackageManagement (I’m writing here OneGet just for simplicity). So, now you have the list of commands. Now, let’s start by checking which package sources (package managers) we have.
Get Package Sources
Type in the following command (or just copy it):
Get-PackageSource
You should get the Package Sources that are installed on your system.
So, I have only the built-in PowerShell gallery installed. Now, let’s install the Chocolatey Package Manager. If you already are seeing Chocolatey in the list then skip the next step. Also check How to Effectively Use OneGet on Windows 10.
Installing Chocolatey
Enter the following command:
Get-PackageProvider -Name Chocolatey
Get-PackageProvider will find the package repositories that are available and install it.
Hit Enter and Chocolatey installation should start. After installation completes, check again the package source with the command you applied before. You should see Chocolatey.
Next, we need to set Chocolatey as default Software Package source. We’ll use set-packagesource command to set it as default. Enter the following command:
Set-PackageSource -Name chocolatey
Now as we’re all set let’s install a software from the chocolatey repository.
Install Software from Chocolatey Repository
You get more options with Chocolatey. You need not go to Chocolatey’s website and find the software you want to install. You can find that from Powershell itself using the find-package command. So, let’s say you want to find all packages related to ‘Chrome’.
find-package -name Chrome
Now you’ll get all the packages with Chrome keyword in it along with a summary. Now, from this list, I’ll install Adblockpluschrome.
install-package -name adblockpluschrome
Enter Y and installation will start.
No upgrade Command available
Surprisingly, OneGet doesn’t have an Update command. There’s an update command in Chocolatey but that won’t apply here. This issue was reported on GitHub back in 2014 when Technical Previews were being shooted to the Insiders and it still hasn’t been solved. Hopeyou liked this article on How to Effectively Use OneGet on Windows 10.
How to Effectively Use OneGet on Windows 10
Reviewed by Unknown
on
22:27:00
Rating:
No comments: