{"id":203,"date":"2018-03-09T09:04:08","date_gmt":"2018-03-08T20:04:08","guid":{"rendered":"https:\/\/content.ronella.xyz\/apps\/wordpress\/?p=203"},"modified":"2018-04-04T07:13:05","modified_gmt":"2018-04-03T19:13:05","slug":"chocolatey-package-manager","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=203","title":{"rendered":"Chocolatey Package Manager"},"content":{"rendered":"<p><strong>Introduction<\/strong><\/p>\n<p>If you are familiar with package manager of linux (e.g. rpm, apt-get, yum, dpkg, \u2026) or mac (i.e. brew) here is the windows version.<\/p>\n<p><a href=\"https:\/\/www.ronella.xyz\/wordpress\/?p=135\">Powershell Behind Proxy<\/a> (if necessary)<br \/>\n<a href=\"https:\/\/www.ronella.xyz\/wordpress\/?p=190\">Setting default Powershell TLS Protocol<\/a>\u00a0(if necessary)<\/p>\n<p><strong>Requirements<\/strong><\/p>\n<p>\u2022 Windows 7+ \/ Windows Server 2003+<br \/>\n\u2022 PowerShell v2+<br \/>\n\u2022 .NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)<\/p>\n<p><strong>Installation using Powershell<\/strong><\/p>\n<pre>Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https:\/\/chocolatey.org\/install.ps1'))<\/pre>\n<p><strong><a href=\"https:\/\/chocolatey.org\/docs\/proxy-settings-for-chocolatey#explicit-proxy-settingsv\">Proxy configuration<\/a> (if necessary)<\/strong><\/p>\n<pre>choco config set proxy &lt;locationandport&gt;\r\nchoco config set proxyUser &lt;username&gt; #optional\r\nchoco config set proxyPassword &lt;passwordThatGetsEncryptedInFile&gt; # optional\r\nchoco config set proxyBypassList \"'&lt;bypasslist, comma separated&gt;'\" # optional, Chocolatey v0.10.4 required\r\nchoco config set proxyBypassOnLocal true # optional, Chocolatey v0.10.4 required<\/pre>\n<p><strong>Example<\/strong><\/p>\n<pre>choco config set proxy http:\/\/localhost:8888\r\nchoco config set proxyUser bob\r\nchoco config set proxyPassword 123Sup#rSecur3\r\nchoco config set proxyBypassList \"'http:\/\/localhost,http:\/\/this.location\/'\" #0.10.4 required\r\nchoco config set proxyBypassOnLocal true #0.10.4 required<\/pre>\n<p><strong>Usage<\/strong><\/p>\n<p>Displaying the tool capabilities<\/p>\n<p>choco -?<\/p>\n<p><strong>Useful Commands<\/strong><\/p>\n\n<table id=\"tablepress-3\" class=\"tablepress tablepress-id-3\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">Command<\/th><th class=\"column-2\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">install<\/td><td class=\"column-2\">Installs a particular package.<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">list --local-only<\/td><td class=\"column-2\">Lists installed packages using chocolatey on local machine.<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">search<\/td><td class=\"column-2\">Searches a package availability.<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">uninstall<\/td><td class=\"column-2\">Uninstalls a package.<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">upgrade<\/td><td class=\"column-2\">Upgrades a package.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-3 from cache -->\n<p><strong>Alternative to CLI search command<\/strong><\/p>\n<p><a href=\"https:\/\/chocolatey.org\/packages\">https:\/\/chocolatey.org\/packages<\/a><\/p>\n<p><strong>Reference<\/strong><\/p>\n<p><a href=\"https:\/\/chocolatey.org\/\">https:\/\/chocolatey.org\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction If you are familiar with package manager of linux (e.g. rpm, apt-get, yum, dpkg, \u2026) or mac (i.e. brew) here is the windows version. Powershell Behind Proxy (if necessary) Setting default Powershell TLS Protocol\u00a0(if necessary) Requirements \u2022 Windows 7+ \/ Windows Server 2003+ \u2022 PowerShell v2+ \u2022 .NET Framework 4+ (the installation will attempt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/203"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203"}],"version-history":[{"count":5,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":210,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions\/210"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}