Difference between revisions of "Windows package manager"

From Ever changing code
Jump to navigation Jump to search
(Created page with "Chocolatey is a package manager for Windows like apt-get or yum but for Windows. With all of this in mind, think of Chocolatey as a framework that you can build on top of. Che...")
 
Line 40: Line 40:
cinst nodejs.install
cinst nodejs.install
cinst dotpeek
cinst dotpeek
</source>  
</source>
 
= Install .net core =
<source lang="powershell">
powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) <additional install-script args>"
</source>
== References ==
* [https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script dotnet-install-script] Microsoft docs


= Windows desktop developer settings =
= Windows desktop developer settings =

Revision as of 18:56, 7 November 2018

Chocolatey is a package manager for Windows like apt-get or yum but for Windows. With all of this in mind, think of Chocolatey as a framework that you can build on top of. Chef, Puppet, Boxstarter, PowerShell DSC, Ansible, Saltstack, etc all have ways for using Chocolatey to ensure the state of a computer and packages installed. Even Microsoft has decided to use Chocolatey's framework with the PowerShell PackageManagement / OneGet package manager aggregator.

Install

Update-ExecutionPolicy -Policy Unrestricted
#Install Chocolatey
iex ((new-object net.webclient).DownloadString("http://chocolatey.org/install.ps1")) 
#Reload profile
. $profile

Usage

choco install <pkg|packages.config> [<pkg2> <pkgN>] [<options/switches>]
cinst <pkg|packages.config> [<pkg2> <pkgN>] [<options/switches>]

choco uninstall <pkg|all> [pkg2 pkgN] [options/switches]
cuninst <pkg|all> [pkg2 pkgN] [options/switches]

choco list --local-only

Install packages

cinst fiddler4 #SSL packet inspection termination point and logging 
cinst putty 7zip atom
#cinst git-credential-winstore #old use: Git Credential Manager for Windows
cinst git-credential-manager-for-windows
cinst poshgit #git prompt in PowerShell teminal
cinst console-devel
cinst sublimetext2 #add npp++
cinst notepadplusplus 
cinst vlc
cinst winmerge #add kdiff3
cinst googlechrome #add firefox
cinst sourcetree
cinst resharper
Install-ChocolateyVsixPackage VS-Color-Output https://visualstudiogallery.msdn.microsoft.com/f4d9c2b5-d6d7-4543-a7a5-2d7ebabc2496/file/63103/9/VSColorOutput.vsix
cinst visualstudiocode
cinst nodejs.install
cinst dotpeek

Install .net core

powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) <additional install-script args>"

References

Windows desktop developer settings

#Set-WinUserLanguageList -LanguageList en-GB
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
#Set-StartScreenOptio=ns -EnableBootToDesktop
#Move-LibraryDirectory "Personal" "$env:UserProfile\<userName>\documents"
#Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder
#Set-TaskbarOptions -Size Small -Lock -Dock Top -Combine Always
#Install-WindowsUpdate -AcceptEula

Resources