-
Notifications
You must be signed in to change notification settings - Fork 5
Install PowerShell on Ubuntu 18.04 beta
Note: Microsoft has released powershell_6.1.0-1.ubuntu.18.04_amd64.deb for Ubuntu 18.04
The steps below let you install previous PowerShell 6.0.x packages on Ubuntu 18.04.
Instead of downgrading to libcurl3
, this procedure lets you keep libcurl4
:
cd /tmp
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu57_57.1-6ubuntu0.3_amd64.deb
Get powershell_6.0.2-1.ubuntu.17.04_amd64.deb from the releases page onto the Ubuntu machine.
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell_6.0.2-1.ubuntu.17.04_amd64.deb
dpkg-deb --raw-extract powershell_6.0.2-1.ubuntu.17.04_amd64.deb pwsh-patched
sed --in-place 's/curl3/curl4/g' pwsh-patched/DEBIAN/control
dpkg-deb --build pwsh-patched powershell-patched_6.0.2-1.ubuntu.18.04_amd64.deb
In this order:
sudo apt install -f ./libicu57_57.1-6ubuntu0.3_amd64.deb
sudo apt install -f ./powershell-patched_6.0.2-1.ubuntu.18.04_amd64.deb
Start PowerShell Core on Linux:
pwsh
and verify the installed version:
PS /tmp> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Linux 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 2018
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Solution to retain curl4 instead of curl3 downgrade provided by tohuw:
Kudos to Tim De Pauw for figuring out this exact libcurl3 dependency problem for another package, and @borgdylan for suggesting this same fix for dotnet
PS_OPNsense PowerShell Module - Copyright (c) 2018 fvanroie
Connect‑OPNsense
Disconnect‑OPNsense
Get‑OPNsense
Update‑OPNsense
Restart‑OPNsense
Stop‑OPNsense
Invoke‑OPNsenseAudit
Set‑OPNsense
Get‑OPNsensePackage
Lock‑OPNsensePackage
Unlock‑OPNsensePackage
Install‑OPNsensePackage
Remove‑OPNsensePackage
Get‑OPNsensePlugin
Get‑OPNsenseService
Start‑OPNsenseService
Update‑OPNsenseService
Restart‑OPNsenseService
Stop‑OPNsenseService
Get‑OPNsenseCronJob
Set‑OPNsenseCronJob
New‑OPNsenseCronJob
Enable‑OPNsenseCronJob
Disable‑OPNsenseCronJob
Get‑OPNsenseRoute
Get‑OPNsenseArp
Clear‑OPNsenseArp
Get‑OPNsenseInterface
Get‑OPNsenseResource
Get‑OPNsenseSystemHealth
ARP Scanner ClamAV Captive Portal Collectd IDS HA Proxy LLDP