8 ms·
Chocolatey - Windows Package Manager
- hyperrail 15y agoThis looks like a close competitor to CoApp (http://coapp.org/ http://coapp.org/) - both are FOSS package managers for Windows, although it appears Chocolatey places less emphasis on libraries and other developer-focused packages. That is, CoApp is emphasizing shipping both source and binary packages, and provides more help to package maintainers still trying to make their programs build on Windows. Chocolatey will probably get more users early on though, because of its association with the ever-popular NuGet (watch for the Scott Hanselman blog post...).
- mahcuz 15y agoCoApp is also backed by Microsoft, IIRC.
- ferventcoder 15y agoThat and creating packages with chocolatey is stupid simple compared to what I've seen with CoApp. But CoApp also has source and WinSxS. You can see how easy it is to create a package here: https://github.com/chocolatey/chocolatey/wiki/CreatePackages https://github.com/chocolatey/chocolatey/wiki/CreatePackages
- felipeota 15y agoI had high hopes when I saw the title. I was expecting something for getting MinGW precompiled libraries like openssl, curl or boost; which I find needing more than often.
- charliesome 15y agoCygwin has its own built-in package manager
- felipeota 15y agoYes, but Cygwin makes your software GPL, and that's not something I can do.
- xpaulbettsx 15y agoIf you need a sane MinGW environment, the MSys Git dev environment is by-far the easiest way to do so, it will download and set it up all in one shot.
- ferventcoder 15y agoIt could be a chocolatey package. ;)
- felipeota 15y agoI am using the vanillia one and it is very good. The only problem I have with it is that I have to compile everything for it. Sometimes doing so is not so straight-forward and can take a lot of time, boost being one example.
- ferventcoder 15y agocinst curl - it's there. For the others, just because they are not there yet, doesn't mean they won't be. Creating packages is pretty simple. This is the main part of the curl package: https://github.com/ferventcoder/nugetpackages/blob/master/curl/tools/chocolateyInstall.ps1 https://github.com/ferventcoder/nugetpackages/blob/master/cu...
- felipeota 15y agoYes, that's true. But I need a sane build environment with development packages. I would like to be able to compile against libcurl and openssl as easy as it is on Ubuntu or Fedora. Something like Cygwin but without the GPL requirement on final builds.
- ferventcoder 15y agoI think CoApp is going to be the answer for what you are trying to do. Chocolatey starts after compilation. If someone is already providing libcurl and openssl, these are easily offered as choco packages. Once CoApp comes out, it's highly likely that there may be some integration with it.
- antihero 15y agoWould recommend changing the "cinst" command to something more memorable like "choc".
- ferventcoder 15y agoAnd the uninstall command? :D
- deleted 15y ago[deleted]
- dekz 15y agoDownloadString("http://bit.ly/psChocInstall")) I don't think that is the best idea ever had...
- charliesome 15y agoWhy not? There's plenty of things that are installable that way. For example: RVM: bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) Homebrew: /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
- gvb 15y agoBecause you are installing programs on your computer from a "shortened URL", which could point anywhere. Your examples use a URL that is the final destination so you can make an informed decision whether you are willing to trust that URL. If you use the "append a +" bit.ly feature, you can check where it ends up, but not everybody knows to do that. https://bitly.com/psChocInstall+ https://bitly.com/psChocInstall+
- baddox 15y agoA non-shortened URL can point anywhere as well. The only way to "make an informed decision" is to put the URL in your browser—that goes for shortened and non-shortened URLs.
- pluies 15y agoIf I were to attack someone with such a scheme, I would take care of serving clean files to a web browser (say, with the user-agent string) and the infected files to command-line invocations. :)
- baddox 15y agoYes, that's quite a security risk, but it also affects shortened and non-shortened URLs equally.
- Jarred 15y agoI would recommend mentioning that one needs to run 'set-executionpolicy unrestricted' in the code box.
- Raphael 15y agoThank you.
- pizza 15y agoWhat benefits (other than what looks like a scripting language) does PowerShell give over regular command prompt?
- MatthewPhillips 15y agoIt has ls. Does anything else matter?
- mhitza 15y agoFrom what I remember it has an object oriented style, i.e. you don't have to parse text for a specific column you want (you call the appropriate method). And you also get easy integration with the .NET libraries.
- zacgarrett 15y agoThere are also lots of libraries for powershell that make it very easy to do things. For example MS provides a great way to manage Exchange via powershell. You can even go so far as getting a GUI in powershell. As a sysadmin I use powershell for quite a few automation and management tasks on Windows servers. It is nice to have a interface to the server that I know will always be on the server and will update by itself. There is no need to install a third party scripting language just to script simple things that are difficult to do in the standard windows command line.
- xpaulbettsx 15y agoHere's an example, find all files recursively that are over 100k ls -r | ?{$_.Length > 100*1024} Doing this in Bash or CMD would be annoying (certainly doable though!), especially the recursive part.
- gvb 15y agofind . -size +100k
- xpaulbettsx 15y ago