Reduced font size on demos
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
## Boxstarter can be used to create a dynamic list of both outdated packages, additional packages to install and packages to exclude for each Chocolatey client
|
### Boxstarter can be used to create a dynamic list of both outdated packages, additional packages to install and packages to exclude for each Chocolatey client
|
||||||
|
|
||||||
## In this example, we want to add curl and git as additional packages to install and exclude Java (jre8). Note that -ScriptPath is the path that will be created with a list of choco commands for each package to install. Boxstarter will reboot if needed after each line
|
### In this example, we want to add curl and git as additional packages to install and exclude Java (jre8). Note that -ScriptPath is the path that will be created with a list of choco commands for each package to install. Boxstarter will reboot if needed after each line
|
||||||
```
|
```
|
||||||
Invoke-BoxStarterRemoteUpgrade -ComputerName winclient2 -Credential (Get-Credential) `
|
Invoke-BoxStarterRemoteUpgrade -ComputerName winclient2 -Credential (Get-Credential) `
|
||||||
-AdditionalPackages curl,git -ExcludedPackages jre8 `
|
-AdditionalPackages curl,git -ExcludedPackages jre8 `
|
||||||
-ScriptPath C:\Windows\Temp\BoxstarterUpgrade.txt
|
-ScriptPath C:\Windows\Temp\BoxstarterUpgrade.txt
|
||||||
```
|
```
|
||||||
## Here is the BoxstarterUpgrade.txt file for the previous example:
|
### Here is the BoxstarterUpgrade.txt file for the previous example:
|
||||||
```
|
```
|
||||||
choco upgrade curl -r -y
|
choco upgrade curl -r -y
|
||||||
choco upgrade git -r -y
|
choco upgrade git -r -y
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
## There are various ways to internalize community packages. The approach in this example is that you have a machine with all packages that you want to internalize already installed. This machine will perform choco outdated to find any packages that have newer versions available on the Chocolatey community repo. It then internalizes them, upgrades them to test they work, finally pushing them to an internal repo.
|
### There are various ways to internalize community packages. The approach in this example is that you have a machine with all packages that you want to internalize already installed. This machine will perform choco outdated to find any packages that have newer versions available on the Chocolatey community repo. It then internalizes them, upgrades them to test they work, finally pushing them to an internal repo.
|
||||||
|
|
||||||
## Find outdated packages
|
### Find outdated packages
|
||||||
```
|
```
|
||||||
PS C:\> $Outdatedpkgs = Get-ChocoOutdatedPackages
|
PS C:\> $Outdatedpkgs = Get-ChocoOutdatedPackages
|
||||||
PS C:\> $Outdatedpkgs
|
PS C:\> $Outdatedpkgs
|
||||||
@@ -11,7 +11,7 @@ chocolatey.extension 2.0.1 2.0.2 false
|
|||||||
curl 7.64.0 7.64.1 false
|
curl 7.64.0 7.64.1 false
|
||||||
GoogleChrome 73.0.3683.103 74.0.3729.131 false
|
GoogleChrome 73.0.3683.103 74.0.3729.131 false
|
||||||
```
|
```
|
||||||
## Internalize outdated packages
|
### Internalize outdated packages
|
||||||
```
|
```
|
||||||
PS C:\> $intpkgs = Invoke-ChocoInternalizePackage -PackageNames $Outdatedpkgs -Path $Path `
|
PS C:\> $intpkgs = Invoke-ChocoInternalizePackage -PackageNames $Outdatedpkgs -Path $Path `
|
||||||
-PurgeWorkingDirectory | Where-Object { $_.Result -Like 'Internalize Success' }
|
-PurgeWorkingDirectory | Where-Object { $_.Result -Like 'Internalize Success' }
|
||||||
@@ -22,7 +22,7 @@ Name Result Version NuGetpkgs
|
|||||||
curl Internalize Success 7.64.1 C:\Chocotemp\curl.7.64.1.nupkg
|
curl Internalize Success 7.64.1 C:\Chocotemp\curl.7.64.1.nupkg
|
||||||
GoogleChrome Internalize Success 74.0.3729.131 {C:\Chocotemp\chocolatey-core.extension.1.3.3.nupkg, C:\Chocotemp\Googl...
|
GoogleChrome Internalize Success 74.0.3729.131 {C:\Chocotemp\chocolatey-core.extension.1.3.3.nupkg, C:\Chocotemp\Googl...
|
||||||
```
|
```
|
||||||
## Upgrade internalized packages to ensure they install correctly.
|
### Upgrade internalized packages to ensure they install correctly.
|
||||||
```
|
```
|
||||||
PS C:\Chocotemp> $Upgradepkgs = Invoke-ChocoUpgradeIntPackage -PackageNames $intpkgs -Path $Path |
|
PS C:\Chocotemp> $Upgradepkgs = Invoke-ChocoUpgradeIntPackage -PackageNames $intpkgs -Path $Path |
|
||||||
Where-Object {$_.Result -eq 'Upgrade Success'}
|
Where-Object {$_.Result -eq 'Upgrade Success'}
|
||||||
@@ -34,7 +34,7 @@ Name Result Version NuGetpkgs
|
|||||||
curl Upgrade Success 7.64.1 C:\Chocotemp\curl.7.64.1.nupkg
|
curl Upgrade Success 7.64.1 C:\Chocotemp\curl.7.64.1.nupkg
|
||||||
GoogleChrome Upgrade Success 74.0.3729.131 {C:\Chocotemp\chocolatey-core.extension.1.3.3.nupkg, C:\Chocotemp\GoogleChr...
|
GoogleChrome Upgrade Success 74.0.3729.131 {C:\Chocotemp\chocolatey-core.extension.1.3.3.nupkg, C:\Chocotemp\GoogleChr...
|
||||||
```
|
```
|
||||||
## Push packages that were successfully upgrade to an internal repo
|
### Push packages that were successfully upgrade to an internal repo
|
||||||
```
|
```
|
||||||
PS C:\Chocotemp> $Pushed = Push-ChocoIntPackage -PackageNames $Upgradepkgs -Path $Path `
|
PS C:\Chocotemp> $Pushed = Push-ChocoIntPackage -PackageNames $Upgradepkgs -Path $Path `
|
||||||
-ApiKey $Api -RepositoryURL $LocalRepo |
|
-ApiKey $Api -RepositoryURL $LocalRepo |
|
||||||
@@ -48,7 +48,7 @@ chocolatey-core.extension Push Success 1.3.3 C:\Chocotemp\chocolatey-cor
|
|||||||
GoogleChrome Push Success 74.0.3729.131 C:\Chocotemp\GoogleChrome.74.0.3729.131.nupkg
|
GoogleChrome Push Success 74.0.3729.131 C:\Chocotemp\GoogleChrome.74.0.3729.131.nupkg
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
## Here we pipe all commands together and add Test-ChocoUpgradeTrigger which takes any successfully pushed packages and creates a scheduled task for a PowerShell upgrade script.
|
### Here we pipe all commands together and add Test-ChocoUpgradeTrigger which takes any successfully pushed packages and creates a scheduled task for a PowerShell upgrade script.
|
||||||
```
|
```
|
||||||
PS C:\Chocotemp> Get-ChocoOutdatedPackages |
|
PS C:\Chocotemp> Get-ChocoOutdatedPackages |
|
||||||
Invoke-ChocoInternalizePackage -Path $Path -PurgeWorkingDirectory | Where-Object { $_.Result -Like 'Internalize Success' } |
|
Invoke-ChocoInternalizePackage -Path $Path -PurgeWorkingDirectory | Where-Object { $_.Result -Like 'Internalize Success' } |
|
||||||
|
|||||||
Reference in New Issue
Block a user