In 2015, as everyone upgraded to Windows 10, the long-awaited package management tool Oneget also became the standard for WIN10.
Oneget was first introduced as an optional feature in the Win8.1 period, oneget after several major versions of the update, along with the release of the Win10 version, Oneget allows users to manage application packages like Linux systems with simple command-line operations
Then let me briefly introduce the basic usage of oneget.
* * Oneget includes the following commands * *
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Oneget.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px;line-height : 1.42857143;background-color:rgb (255,255,255); "alt=" Oneget.png "/>
Speaking of Oneget, be sure to mention it. Chocolatey,chocolatey is currently the most popular Windows third-party package manager. Rather than Oneget is a package manager, Oneget is the manager of the package manager. We can get the package Manager in WIN10 by default by the following command
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Get-packageprovider.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px; Line-height:1.42857143;background-color:rgb (255,255,255); "alt=" Get-packageprovider.png "/>
Chocolatey is not in the default installation package and needs to Get-PackageProvider -Name Chocolatey be installed to Win10
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Get-packageprovider2.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px; Line-height:1.42857143;background-color:rgb (255,255,255); "alt=" Get-packageprovider2.png "/>
Execute again Get-PackageProvider to check if chocolatey is installed successfully
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Get-packageprovider3.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px; Line-height:1.42857143;background-color:rgb (255,255,255); "alt=" Get-packageprovider3.png "/>
Next you can take advantage of Chocolatey's resources to do the apt-get operation, the following through curl to show the power of Oneget
First you need to find out if curl existsFind-Package -provider chocolatey curl
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Find-package.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px; Line-height:1.42857143;background-color:rgb (255,255,255); "alt=" Find-package.png "/>
After you have determined that curl exists, execute the install commandInstall-Package curl
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Install-package.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px; Line-height:1.42857143;background-color:rgb (255,255,255); "alt=" Install-package.png "/>
Add C:\Chocolatey\bin to environment variable in path
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Env.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px;line-height : 1.42857143;background-color:rgb (255,255,255); "alt=" Env.png "/>
This time you can see the Curl tool that works.
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Curl.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px;line-height : 1.42857143;background-color:rgb (255,255,255); "alt=" Curl.png "/>
Delete the program you just made, execute the uninstall commandUninstall-Package curl
650) this.width=650; "class=" img-responsive img-thumbnail "src=" http://blog.huangchaosuper.cn/resources/windows/ Uninstall-package.png "style=" border:1px solid rgb (221,221,221); vertical-align:middle;height:auto;padding:4px; Line-height:1.42857143;background-color:rgb (255,255,255); "alt=" Uninstall-package.png "/>
All right, let's experiment!!!
http://blog.huangchaosuper.cn/tech/2015/08/10/win10-oneget/
This article is from "Okay, it's Me" blog, make sure to keep this source http://huangchaosuper.blog.51cto.com/5221102/1684196
Apt-get in Windows (oneget)