📎 AI Summary:
The thread discusses the availability and installation of Microsoft PowerShell Core on Linux systems, highlighting its cross-platform compatibility and the use of Snap packages for easy installation. The original poster shares their discovery of the Snapcraft page and seeks advice on updating repositories and managing software updates, with input from another user explaining that Snap handles updates automatically while traditional repositories require manual updates. Overall, the conversation reflects a helpful exchange focused on installing and maintaining PowerShell on Linux, demonstrating interest and curiosity about managing software on non-Windows systems.

ragnarok1968

Well-Known Member
Member details
Joined
Feb 4, 2017
Messages
348
Thread Author #1
Credit: Microsoft's Linux Powershell core Neowin.net
author: Paul Hill

https://www.neowin.net/news/microso...ore-snap-package-available-for-linux#comments

1512565176_powershell_story.jpg

Microsoft has just Link Removed as a snap package allowing for the easier installation of the software on many Linux distributions that support snaps. PowerShell Core is designed for admins who need to manage assets in a hybrid cloud and therefore Microsoft decided to make it as widely available as possible across Windows, Linux and macOS.
Discussing the news, Joey Aiello, Program Manager, PowerShell, said:
“Snaps are great because they provide a single package format that works across many Linux distributions, much like how PowerShell acts as a single automation platform across operating systems. We hope our users enjoy the simplified installation and update experience of Snaps as much as we do.”​
As Aiello alluded to, snaps are great because they’re packages with their own dependencies making installation easy, they can be installed without root access because of their containerized nature, and they update automatically meaning you get the latest software right away, enhancing the system's security and stability further

Installing PowerShell Core on Ubuntu or other Linux systems that support snaps is a doddle. Just head over to the Snapcraft.io page and hit install. You'll get instructions to install the stable build of the software and bleeding edge versions where new features are being tested.
 

Solution
In general repositories are updated by the developers, but if you install it via snap you can easily keep it up-to-date with sudo snap refresh or add the repo and you can keep it update with the usual sudo apt update && sudo apt upgrade

ragnarok1968

Well-Known Member
Member details
Joined
Feb 4, 2017
Messages
348
Thread Author #3
The snapcraft.io page also posted this terminal command that can be utilized:
sudo snap install powershell

I tried (out of morbid curiosity):
sudo apt search powershell
no dice on finding it directly per se'.
 

ragnarok1968

Well-Known Member
Member details
Joined
Feb 4, 2017
Messages
348
Thread Author #6
@Neemobeer ; If we install it as per the instructions, do most developers also update our Repo's so they can update their apps? that or- how would you suggest adding this repo manually. I forget the context in terminal to do this.

Care to share your expertise? :fdance:
 

Neemobeer

Windows Forum Team
Staff member
Member details
Joined
Jul 4, 2015
Messages
8,994
In general repositories are updated by the developers, but if you install it via snap you can easily keep it up-to-date with sudo snap refresh or add the repo and you can keep it update with the usual sudo apt update && sudo apt upgrade
 
Solution