Installing a Package Manager on Windows (Chocolately)….The Most Useful Feature Windows is Lacking

Last Updated on

If there is one area that Linux / Unix systems definitely have a leading edge over Windows would be package management – even if it is horribly fragmented among different repositories / OS’s / versions etc.  Chocolately is the 3rd party Windows based solution to a problem that some people are unaware actually exists.  It’s so useful on a single machine or in a networked environment, the name can be forgiven.  Once you are dependent on have developed a preference for the command line, there is no going back.  Adding this capability to a Windows box is fantastic after using CLI driven tools like yum, apt-get etc.

Let’s install Chocolately via PowerShell.  From an elevated PowerShell command prompt, execute the following:

1
2
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n=allowGlobalConfirmation

The second line disables prompting – if Chocolately is deployed in an Active-Directory environment via GPO or something else, you will want this on. Regardless, you will want this on. So turn it on. You can install a lot of useful things and save a great amount of time. The repository can be accessed here.  For example, we can install NotePad++ as follows:

1
choco install notepadplusplus

Also, it as any competent package manager should do, it can upgrade and maintain all of your installed packages.  I have a scheduled task that runs weekly to keep all of my tools and runtimes up to date:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
PS C:\> choco upgrade all
Chocolatey v0.10.13
Upgrading the following packages:
all
By upgrading you accept licenses for the packages.
7zip v19.0 is the latest version available based on your source(s).
7zip.install v19.0 is the latest version available based on your source(s).
autoit v3.3.14.5 is the latest version available based on your source(s).
autoit.install v3.3.14.5 is the latest version available based on your source(s).
ccleaner v5.55.7108 is the latest version available based on your source(s).
chocolatey v0.10.13 is the latest version available based on your source(s).
chocolatey-core.extension v1.3.3 is the latest version available based on your source(s).
chocolatey-windowsupdate.extension v1.0.3 is the latest version available based on your source(s).
citrix-receiver v4.12 is the latest version available based on your source(s).
Cmder v1.3.11 is the latest version available based on your source(s).
ConEmu v19.3.31.0 is the latest version available based on your source(s).
cpu-z.install v1.88 is the latest version available based on your source(s).
displaylink v9.1.0 is the latest version available based on your source(s).
DotNet3.5 v3.5.20160716 is the latest version available based on your source(s).
DotNet4.5 v4.5.20120822 is the latest version available based on your source(s).
DotNet4.5.2 v4.5.2.20140902 is the latest version available based on your source(s).
DotNet4.6.1 v4.6.01055.20170308 is the latest version available based on your source(s).
dotnet4.6.2 v4.6.01590.20190226 is the latest version available based on your source(s).
dotnet4.7 v4.7.2053.20190226 is the latest version available based on your source(s).
dotnet4.7.1 v4.7.2558.20190226 is the latest version available based on your source(s).
dotnetfx v4.7.2.20180712 is the latest version available based on your source(s).
ffmpeg v4.1.1 is the latest version available based on your source(s).
filezilla v3.41.2 is the latest version available based on your source(s).
Firefox v66.0.2 is the latest version available based on your source(s).
flashplayeractivex v32.0.0.156 is the latest version available based on your source(s).
flashplayerplugin v32.0.0.156 is the latest version available based on your source(s).
go-contact-sync-mod v3.10.32 is the latest version available based on your source(s).
gocontactsyncmod v3.10.14.20180818 is the latest version available based on your source(s).
GoogleChrome v73.0.3683.86 is the latest version available based on your source(s).
googleearthpro v7.3.2.5776 is the latest version available based on your source(s).
gpg4win-vanilla v2.3.4.20170919 is the latest version available based on your source(s).
greenshot v1.2.10.6 is the latest version available based on your source(s).
javaruntime v8.0.191 is the latest version available based on your source(s).
jre8 v8.0.201 is the latest version available based on your source(s).
KB2919355 v1.0.20160915 is the latest version available based on your source(s).
KB2919442 v1.0.20160915 is the latest version available based on your source(s).
KB2999226 v1.0.20181019 is the latest version available based on your source(s).
KB3033929 v1.0.4 is the latest version available based on your source(s).
KB3035131 v1.0.2 is the latest version available based on your source(s).
KB4019990 v1.0.1 is the latest version available based on your source(s).
mRemoteNG v1.76.18.26260 is the latest version available based on your source(s).
nettime v3.14.20161102 is the latest version available based on your source(s).
nodejs v11.13.0 is the latest version available based on your source(s).
nodejs.install v11.13.0 is the latest version available based on your source(s).
notepadplusplus v7.6.5 is newer than the most recent.
You must be smarter than the average bear...
notepadplusplus.install v7.6.5 is newer than the most recent.
You must be smarter than the average bear...
openssh v7.9.0.1 is the latest version available based on your source(s).
PowerShell v5.1.14409.20180811 is the latest version available based on your source(s).
processhacker v2.39 is the latest version available based on your source(s).
processhacker.install v2.39 is the latest version available based on your source(s).
procexp v16.22 is the latest version available based on your source(s).
putty v0.71 is the latest version available based on your source(s).
putty.portable v0.71 is the latest version available based on your source(s).
qbittorrent v4.1.5.20190116 is the latest version available based on your source(s).
rufus v3.5 is the latest version available based on your source(s).
signal v1.23.2 is the latest version available based on your source(s).
Silverlight v5.1.50907.0 is the latest version available based on your source(s).
speccy v1.32.740 is the latest version available based on your source(s).
startisback v2.1.2 is the latest version available based on your source(s).
sysinternals v2019.3.26 is the latest version available based on your source(s).
traystatus v3.1 is the latest version available based on your source(s).
traystatus.install v3.1 is the latest version available based on your source(s).
vcredist-all v1.0.0 is the latest version available based on your source(s).
vcredist140 v14.16.27027.1 is the latest version available based on your source(s).
vcredist2005 v8.1.0.20160118 is the latest version available based on your source(s).
vcredist2008 v9.0.30729.6161 is the latest version available based on your source(s).
vcredist2010 v10.0.40219.2 is the latest version available based on your source(s).
vcredist2012 v11.0.61031 is the latest version available based on your source(s).
vcredist2013 v12.0.40660.20180427 is the latest version available based on your source(s).
vcredist2015 v14.0.24215.20170201 is the latest version available based on your source(s).
vcredist2017 v14.16.27027.1 is the latest version available based on your source(s).
vlc v3.0.6 is the latest version available based on your source(s).
vmwareworkstation v15.0.3 is the latest version available based on your source(s).
winrar v5.70.0.20190305 is the latest version available based on your source(s).
winscp v5.15 is the latest version available based on your source(s).
winscp.install v5.15 is the latest version available based on your source(s).
youtube-dl v2019.04.01 is the latest version available based on your source(s).

Chocolatey upgraded 0/77 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
PS C:\>
Lima

About the author

Lima is the visual nautical indicator for "stop instantly."

Leave a Reply