Post

Microsoft Windows: Update Chocolatey, Atom, npm, and RubyGems packages cmd Script

Looking for a way to update various packages in your Windows environment? Use the script below running as Administrator (Administrator is needed for Chocolatey, at least), editing as necessary for your needs.

Note: This cmd script is unprompted with no opportunity for review.

update-packages.cmd

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
@echo off

echo.
echo ## Chocolatey packages
echo.

call choco upgrade all -y

echo.
echo ## Atom packages
echo.

call apm upgrade --no-confirm

echo.
echo ## npm packages
echo.

call npm update -g

echo.
echo ## RubyGems
echo.

call gem update

This will handle updates for Chocolatey, Atom, npm, and RubyGems packages.

Feel free to use and adapt this cmd script for your needs. Happy updating!

This post is licensed under CC BY 4.0 by the author.