mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Merge pull request #1244 from HemantMahawar/demos
Initial demo scripts for installation and PowerShellGet demos
This commit is contained in:
commit
2ab8a6ea4b
2 files changed
+39
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#region Download the package from GitHub to Ubuntu (14/16)
|
||||
# TODO: Update the url
|
||||
# TODO: Update to apt-get, if that is available
|
||||
curl https://github.com/PowerShell/PowerShell/releases/download/v0.5.0/powershell_0.5.0-1_amd64.deb
|
||||
#endregion
|
||||
|
||||
#region Install PowerShell and its dependencies
|
||||
# TODO: Fix the version
|
||||
sudo apt-get install libunwind8 libicu52
|
||||
sudo dpkg -i powershell_0.5.0-1_amd64.deb
|
||||
#endregion
|
||||
|
||||
#region Launch PowerShell
|
||||
# TODO: Launch a new terminal
|
||||
clear
|
||||
PowerShell
|
||||
#endregion
|
||||
@@ -0,0 +1,22 @@
|
||||
#region Package Management
|
||||
|
||||
## List available package provider
|
||||
Get-PackageProvider #(should show 2 providers - NuGet,PowerShellGet)
|
||||
|
||||
## Using PowerShellGet find and install other demos
|
||||
Find-Module -Tag 'Open PowerShell','Demos' | Install-Module -Verbose
|
||||
Get-Module
|
||||
|
||||
# Find and Download node.js from nuget.org
|
||||
Find-Package -Name node.js -ProviderName NuGet -Verbose -Source http://nuget.org/api/v2
|
||||
|
||||
# Register trusted endpoints
|
||||
Register-PackageSource -Name NuGet -Location http://nuget.org/api/v2 -Trusted -ProviderName NuGet
|
||||
|
||||
# Finding and installing becomes very easy
|
||||
Find-Package -Name jQuery -Verbose | Install-Package -Verbose
|
||||
|
||||
# Discover installed packages
|
||||
Get-Package -ProviderName NuGet
|
||||
|
||||
#endregion
|
||||
Reference in new issue
Block a user