How to install packages ('apt-get install') in Windows?

I want to install many packages on Windows and I want to write an executable script to install these packages from Windows repo. How can I write Ubuntu-like sudo apt-get install <name> command?


Chocolatey


Chocolately is a package manager for Windows that works like apt-get. For example, choco install git. It has a wide variety of programs to choose from including Notepad++, Sublime Text, Chrome, 7zip, and others.

To sweeten the deal, they have a copy-paste command available here that will download and install Chocolatey, easy as pie.

The perfect icing for this chocolatey cake is Cmder. Cmder is a command line emulator that comes packaged with all of those Unix commands that you've come to know and love.

Chocolatey Packages Screenshot

[ Disclaimer : Chocolatey's repository of packages isn't nearly as extensive as apt-get's ]


Microsoft is actually creating their own app , albeit open source. It is called winget and you need to be part of the Windows Insider's program:

https://docs.microsoft.com/en-us/windows/package-manager/winget/

Which is supposed to be loosely based on Appget: https://appget.net/

https://medium.com/@keivan/the-day-appget-died-e9a5c96c8b22