125 points · by wubbfindel · 13y ago · 55 comments
>Note: if you get an error you might need to change the execution policy (i.e. enable Powershell) with set-executionpolicy unrestricted -s cu
The Windows equivalent of curl | sudo bash...
Please don't do this. Sign your Powershell scripts.
Note you don't need to run as admin to install scoop--it's all about installing stuff for your user account without requiring elevation.
You are right though that you probably shouldn't just run scripts like this if you don't trust them. I do it all the time because it's convenient and I'm not running elevated. You can always check the source if you're not sure.
The iex [remote-script] probably will run in that case actually, just not the 'scoop' command. Which shows what a farce the PS execution policy is.
I think you'd want to pick Cygwin when you want to be able to compile and run POSIX apps on Windows without having to modify them too much.
However, if you just want a better command-line experience on Windows and want to easily install cross-platform open-source programs, I think Scoop is a better alternative to Cygwin.
If that is what you want, then not being a pain to use and setup is one good reason to pick Scoop :)
Also, Cygwin programs can only run under the Cygwin environment, whereas the programs Scoop installs are usually native programs that can be called from any other Windows program, or executed from a normal console. I assume there's a way to call Cygwin programs from a normal win program too--it's just more round-about.
These days I feel that the best bet on Windows is to install the 20 or so Windows specific programs that you probably use + Cygwin.
Completely unrelated but you might want to silence the parts where you type your passwords in the video, some one can easily predict your password by keyboard's click sounds. For example your github password is 7 characters long and contains `w` or `n` in first 3 letters.
It seems that quite a number of apps in Scoop pulls from these projects.
There's a simple example app manifest here: https://github.com/lukesampson/scoop/wiki/App-Manifests
$s=new-object net.webclient;$s.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials;$s.downloadstring('https://get.scoop.sh')|iex
If you're building your own package for Scoop and you just want to run the installer, there's good support for that too.
I'm currently using OSX as my development os and I would like to switch to Windows because I do a lot of hardware hacking and often drivers are Windows only. The only things that holds me back are battery life (about half compared to OSX) and command line tools.
Bookmarking this for sure!
For a lot of GNU core utilities, Scoop uses the same MSYS programs that come with MSYS Git, it's just installing them separately so you can choose only the ones you need.
There is a severe lack of good commandline utilities. The ones that exist, require so much effort to set up. Just because it is possible to develop on Windows since 1992 doesn't mean it is a pleasant experience to do so.
For ref, I'm currently fixing something on a Windows NT4 VM in Visual C++ 6 for a client (they are tied to this configuration before you ask). I've had this VM for 11 years. Haven't set anything up since then apart from apply a couple of hotfixes.
I'm also, whilst the above is compiling which takes a while because it's huge, editing our python VCS hook scripts on a Ubuntu machine in vim.
They're both shit and wonderful at the same time (in similar ways).
So far there are 59 apps in the main bucket: https://github.com/lukesampson/scoop/tree/master/bucket
There are 17 more apps in the 'extras' bucket: https://github.com/lukesampson/scoop-extras/tree/master
To use the extras bucket, you just need to run 'scoop bucket add extras'.
Any requests for more dev tools? Feel free to add an issue or pull request on GitHub.
Scoop is more focused on open-source command-line developer tools. I expect Scoop will appeal more to cross-platform developers, those who appreciate a bit of Unix philosophy in their spare time, and those who feel 'stuck' on Windows.
Chocolatey does a lot of things that Scoop will never do, like install Web Platform Installer apps, and built-in Windows features.