如何在Ubuntu 18.04上将Powershell Core更新到最新版本

时间:2019-05-17 15:32:05

标签: powershell ubuntu ubuntu-18.04 powershell-core

我有一个已安装Powershell Core 6.1.2的Ubuntu 18.04 VM,我想将其更新为最新的PowerShell Core版本。

我该怎么做?

我是否遵循https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#ubuntu-1804上的安装说明,并在旧版本之上安装最新版本?

我是否先删除旧版本,然后再安装新版本?你怎么做到的?

Powershell Core中是否有工具来执行更新?

1 个答案:

答案 0 :(得分:1)

基于此link,以下方法应该起作用:

f'{f} as float {float(f):.3f}'