Chocolatey是什么?很简单,Chocolatey就是Windows系统的yum或apt-get。

一、Chocolatey介绍

Chocolatey是一款专为Windows系统开发的、基于NuGet的包管理器工具,类似于Node.js的npm,MacOS的brew,Ubuntu的apt-get,它简称为choco。Chocolatey的设计目标是成为一个去中心化的框架,便于开发者按需快速安装应用程序和工具。

Chocolatey的官网: https://chocolatey.org/

Chcocolatey当前最新版本为0.9.10.3版。

二、Chocolatey安装

要安装Chocolatey很容易,必须以管理员权限打开cmd.exe命令行提示,执行如下内容:

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

还有一种安装方法,使用PowerShell,同样必须以管理员权限打开PowerShell,执行如下命令:

iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

三、Chocolatey用法

1、命令

  • search - 搜索包 choco search something
  • list - 列出包 choco list -lo
  • install - 安装 choco install baretail
  • pin - 固定包的版本,防止包被升级 choco pin windirstat
  • upgrade - 安装包的升级 choco upgrade baretail
  • uninstall - 安装包的卸载 choco uninstall baretail
  • 安装Ruby Gem - choco install compass -source ruby
  • 安装Python Egg - choco install sphynx -source python
  • 安装IIS服务器特性 - choco install IIS -source windowsfeatures
  • 安装Webpi特性 - choco install IIS7.5Express -source webpi

2、常用的一些命令

1)列出本地已安装的包

choco list --local-only

2)列出Windows系统已安装的软件

choco list -li

或使用

choco list -lai

3)升级所有已安装的包

choco upgrade all -y

四、Chocolatey的文件

tools\chocolateyInstall.ps1 
tools\chocolateyInstall\choco.exe 
tools\chocolateyInstall\choco.exe.ignore 
tools\chocolateyInstall\helpers\chocolateyInstaller.psm1 
tools\chocolateyInstall\helpers\chocolateyScriptRunner.ps1 
tools\chocolateyInstall\helpers\functions\Get-BinRoot.ps1 
tools\chocolateyInstall\helpers\functions\Get-CheckSumValid.ps1 
tools\chocolateyInstall\helpers\functions\Get-ChocolateyUnzip.ps1 
tools\chocolateyInstall\helpers\functions\Get-ChocolateyWebFile.ps1 
tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariable.ps1 
tools\chocolateyInstall\helpers\functions\Get-EnvironmentVariableNames.ps1 
tools\chocolateyInstall\helpers\functions\Get-FtpFile.ps1 
tools\chocolateyInstall\helpers\functions\Get-ProcessorBits.ps1 
tools\chocolateyInstall\helpers\functions\Get-UACEnabled.ps1 
tools\chocolateyInstall\helpers\functions\Get-VirusCheckValid.ps1 
tools\chocolateyInstall\helpers\functions\Get-WebFile.ps1 
tools\chocolateyInstall\helpers\functions\Get-WebHeaders.ps1 
tools\chocolateyInstall\helpers\functions\Install-BinFile.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyDesktopLink.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyEnvironmentVariable.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyExplorerMenuItem.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyFileAssociation.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyInstallPackage.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyPackage.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyPath.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyPinnedTaskBarItem.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyPowershellCommand.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyShortcut.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyVsixPackage.ps1 
tools\chocolateyInstall\helpers\functions\Install-ChocolateyZipPackage.ps1 
tools\chocolateyInstall\helpers\functions\Set-EnvironmentVariable.ps1 
tools\chocolateyInstall\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1 
tools\chocolateyInstall\helpers\functions\Test-ProcessAdminRights.ps1 
tools\chocolateyInstall\helpers\functions\Uninstall-BinFile.ps1 
tools\chocolateyInstall\helpers\functions\Uninstall-ChocolateyPackage.ps1 
tools\chocolateyInstall\helpers\functions\UnInstall-ChocolateyZipPackage.ps1 
tools\chocolateyInstall\helpers\functions\Update-SessionEnvironment.ps1 
tools\chocolateyInstall\helpers\functions\Write-ChocolateyFailure.ps1 
tools\chocolateyInstall\helpers\functions\Write-ChocolateySuccess.ps1 
tools\chocolateyInstall\helpers\functions\Write-FileUpdateLog.ps1 
tools\chocolateyInstall\LICENSE.txt 
tools\chocolateyInstall\redirects\choco.exe 
tools\chocolateyInstall\redirects\choco.exe.ignore 
tools\chocolateyInstall\redirects\chocolatey.exe 
tools\chocolateyInstall\redirects\chocolatey.exe.ignore 
tools\chocolateyInstall\redirects\cinst.exe 
tools\chocolateyInstall\redirects\cinst.exe.ignore 
tools\chocolateyInstall\redirects\clist.exe 
tools\chocolateyInstall\redirects\clist.exe.ignore 
tools\chocolateyInstall\redirects\cpack.exe 
tools\chocolateyInstall\redirects\cpack.exe.ignore 
tools\chocolateyInstall\redirects\cpush.exe 
tools\chocolateyInstall\redirects\cpush.exe.ignore 
tools\chocolateyInstall\redirects\cuninst.exe 
tools\chocolateyInstall\redirects\cuninst.exe.ignore 
tools\chocolateyInstall\redirects\cup.exe 
tools\chocolateyInstall\redirects\cup.exe.ignore 
tools\chocolateyInstall\redirects\cver.exe 
tools\chocolateyInstall\redirects\cver.exe.ignore 
tools\chocolateyInstall\redirects\RefreshEnv.cmd 
tools\chocolateyInstall\tools\7za.exe 
tools\chocolateyInstall\tools\7za.exe.ignore 
tools\chocolateyInstall\tools\7za.exe.manifest 
tools\chocolateyInstall\tools\7zip.license.txt 
tools\chocolateyInstall\tools\checksum.exe 
tools\chocolateyInstall\tools\checksum.exe.ignore 
tools\chocolateyInstall\tools\checksum.license.txt 
tools\chocolateyInstall\tools\shimgen.exe 
tools\chocolateyInstall\tools\shimgen.exe.ignore 
tools\chocolateyInstall\tools\shimgen.license.txt 
tools\chocolateysetup.psm1 
tools\init.ps1

Windows上的巧克力味Chocolatey详解的更多相关文章

  1. windows上pip安装及使用详解

    windows上pip安装及使用详解 2018-11-21 19:49:58 十二笔 阅读数 8229更多 分类专栏: Python学习   版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA ...

  2. Windows上Nginx的安装教程详解

    一 背景 为了方便本地的开发和验证,于是整理了这一篇Windows上安装Nginx的博文,建议一般学习还是使用Linux,一般正规公司都是在Linux上安装Nginx服务! 本篇内容相对比较简单,如果 ...

  3. DELL R720服务器安装Windows Server 2008 R2 操作系统图文详解

    DELL R720服务器安装Windows Server 2008 R2 操作系统图文详解 说明:此文章中部分图片为网络搜集,所以不一定为DELL R720服务器安装界面,但可保证界面内容接近DELL ...

  4. 转 虫师的selenium借助AutoIt识别上传(下载)详解

    selenium借助AutoIt识别上传(下载)详解 2014-12-27 11:26 by 虫师, 755 阅读, 1 评论, 收藏,  编辑 AutoIt目前最新是v3版本,这是一个使用类似BAS ...

  5. indows下PHP通过ffmpeg给上传的视频截图详解

    windows下PHP通过ffmpeg给上传的视频截图详解,php_ffmpeg.dll安装下载,找了很久php_ffmpeg.dll的下载地址和应用,发现有用的资源很少,现在问题解决了,贴出来跟大家 ...

  6. Delphi - Windows自动计划任务与ParamStr详解

    Windows自动计划任务与ParamStr详解 ParamStr函数: ParamStr(1),..ParamStr(N) ParamStr(1)代表程序入口的第一个参数,同理,ParamStr(N ...

  7. Windows系统Git安装教程(详解Git安装过程)

    Windows系统Git安装教程(详解Git安装过程)   今天更换电脑系统,需要重新安装Git,正好做个记录,希望对第一次使用的博友能有所帮助! 获取Git安装程序   到Git官网下载,网站地址: ...

  8. 【转】JQuery上传插件Uploadify使用详解及错误处理

    转自:http://www.jb51.net/article/43498.htm 关于JQuery上传插件Uploadify使用详解网上一大把,基本上内容都一样.我根据网上的步骤配置完成后,会报一些错 ...

  9. (转)Centos7上部署openstack ocata配置详解

    原文:http://www.cnblogs.com/yaohong/p/7601470.html 随笔-124  文章-2  评论-82  Centos7上部署openstack ocata配置详解 ...

随机推荐

  1. 学习 TList 类的实现[6]

    实现 TMyList.Add 函数. TList 中的 Add 函数用到了一个 Grow 方法, 它的原理是元素越多就为以后准备更多内存, 我们这里省略为预留 4 个元素的内存; TList 中的 A ...

  2. jquery获取点击控件的绝对位置简单实例

    在使用jquery的过程中,想取得当前点击input的绝对位置而去显示一个div,jquery本身提供offset和position这个两个方法,但position官方解释是relative to t ...

  3. 类似股软(大智慧)之键盘精灵的 vc2008--UNICODE 环境实现

    键盘精灵是指,当按下键盘上任意一个数字.字母或符号的时候,都会弹出“键盘精灵”,其类似于股票软件(如大智慧)中的.可以在这里面输入中英文和数字搜索您想要的东西.可以通过输入代码.名称或名称的汉语拼音首 ...

  4. VC++ : GetIDsOfNames 调用失败,获取的dispid为-1

    今天调试自己的程序,需要调用一个COM组件中的方法,利用GetIDsOfNames获取调用函数对象的DISPID. GetIDsOfNames: 把COM接口的方法名字和参数(可选)映射成一组DISP ...

  5. mysql触发器使用方法具体解释

    MySQL触发器语法具体解释: 触发器 trigger是一种特殊的存储过程.他在插入(inset).删除(delete)或改动(update)特定表中的数据时触发运行,它比数据本身标准的功能更精细和更 ...

  6. POJ 2229 Sumsets(技巧题, 背包变形)

    discuss 看到有人讲完全背包可以过, 假如我自己做的话, 也只能想到完全背包了 思路: 1. 当 n 为奇数时, f[n] = f[n-1], 因为只需在所有的序列前添加一个 1 即可, 所有的 ...

  7. 定义了一个UIImageView如何使加载的图片不会失真 UIImageView的Frame值是固定的

    定义了一个UIImageView如何使加载的图片不会失真  UIImageView的Frame值是固定的 UIViewContentModeScaleToFill, 缩放内容到合适比例大小 UIVie ...

  8. 元素设置disabled属性后便无法向后台传值

    元素设置disabled属性后便无法向后台传值

  9. poj_3185 反转问题

    题目大意 有20个碗排成一排,有些碗口朝上,有些碗口朝下.每次可以反转其中的一个碗,但是在反转该碗时,该碗左右两边的碗也跟着被反转(如果该碗为边界上的碗,则只有一侧的碗被反转).求最少需要反转几次,可 ...

  10. java高级---->Thread之CompletionService的使用

    CompletionService的功能是以异步的方式一边生产新的任务,一边处理已完成任务的结果,这样可以将执行任务与处理任务分离开来进行处理.今天我们通过实例来学习一下CompletionServi ...