In this tutorial, I will show you how to install programs using Scoop under the PowerShell command line or Windows command line.
This software named Scoop is a command-line installer for Windows.
Open the windows command line and run powershell:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | C:\>powershell Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\> Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') Initializing... Downloading scoop... Extracting... Creating shim... Downloading main bucket... Extracting... Adding ~\scoop\shims to your path. 'lastupdate' has been set to '2022-01-09T15:36:16.0371323+02:00' Scoop was installed successfully! Type 'scoop help' for instructions. |
Let’s install and uninstall the vim editor:
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | PS C:\> scoop install vim Installing 'vim' (8.2.2824) [64bit] gvim82.exe (9.1 MB) [====================================================================] 100% Checking hash of gvim82.exe ... ok. install-context.reg (219 B) [============================================================] 100% Checking hash of install-context.reg ... ok. uninstall-context.reg (168 B) [==========================================================] 100% Checking hash of uninstall-context.reg ... ok. Extracting dl.7z ... done. Running pre-install script... Linking ~\scoop\apps\vim\current => ~\scoop\apps\vim\8.2.2824 Creating shim for 'vim'. Creating shim for 'vi'. Creating shim for 'ex'. Creating shim for 'view'. Creating shim for 'rvim'. Creating shim for 'rview'. Creating shim for 'vimdiff'. Creating shim for 'gvim'. Creating shim for 'gview'. Creating shim for 'evim'. Creating shim for 'eview'. Creating shim for 'rgvim'. Creating shim for 'rgview'. Creating shim for 'gvimdiff'. Creating shim for 'xxd'. Creating shortcut for gVim (gvim.exe) Persisting _vimrc Persisting _gvimrc Persisting vimfiles Persisting vimrc 'vim' (8.2.2824) was installed successfully! Notes ----- Add gVim as a context menu option by running: "C:\Users\catal\scoop\apps\vim\current\install-context.reg" 'vim' suggests installing 'vimtutor'. PS C:\> scoop uninstall vim Uninstalling 'vim' (8.2.2824). Removing shim 'vim.exe'. Removing shim 'vim.shim'. Removing shim 'vi.exe'. Removing shim 'vi.shim'. Removing shim 'ex.exe'. Removing shim 'ex.shim'. Removing shim 'view.exe'. Removing shim 'view.shim'. Removing shim 'rvim.exe'. Removing shim 'rvim.shim'. Removing shim 'rview.exe'. Removing shim 'rview.shim'. Removing shim 'vimdiff.exe'. Removing shim 'vimdiff.shim'. Removing shim 'gvim.exe'. Removing shim 'gvim.shim'. Removing shim 'gview.exe'. Removing shim 'gview.shim'. Removing shim 'evim.exe'. Removing shim 'evim.shim'. Removing shim 'eview.exe'. Removing shim 'eview.shim'. Removing shim 'rgvim.exe'. Removing shim 'rgvim.shim'. Removing shim 'rgview.exe'. Removing shim 'rgview.shim'. Removing shim 'gvimdiff.exe'. Removing shim 'gvimdiff.shim'. Removing shim 'xxd.exe'. Removing shim 'xxd.shim'. Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\gVim.lnk Unlinking ~\scoop\apps\vim\current 'vim' was uninstalled. |
If you stay with vim installed, and enter the name of the vim utility, it will work without problems on any windows or PowerShell command line.