Zack
Zack

Reputation: 2351

How do you update Powershell Core to latest version on Ubuntu 18.04

I have an Ubuntu 18.04 VM with Powershell Core 6.1.2 installed and I want to update it to the latest PowerShell Core version.

How do I do that?

Do I follow the install instructions at https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#ubuntu-1804 and install the latest version on top of the old version?

Do I remove the old version first and then install the new version? How do you do that?

Is there a tool in Powershell Core to perform the update?

Upvotes: 2

Views: 5446

Answers (2)

Gihan Rangana
Gihan Rangana

Reputation: 585

sudo apt-get update
sudo apt-get install -y powershell

Upvotes: 2

Moerwald
Moerwald

Reputation: 11304

Based on this link following should work:

apt-get install --only-upgrade powershell

Upvotes: 8

Related Questions