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?

8

3 Answers

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 ]

5

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:

Which is supposed to be loosely based on Appget:

1

The three main contenders at the moment are:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like