[Resolved] Need sudo to install PowerShell Core, or workaround


#1

Need sudo to install PowerShell Core, or workaround, please.


#2

Hi, what will you be using PowerShell Core for? Maybe there is a similar option that works without Sudo?


#3

The project is based on PowerShell interaction (web-cli), so no alternative there. The standard workaround is to use binary distribution but then likely need to sort out dependency issues manually. The other problem might be storage space, wonder if pnpm could take off the load, somehow.


#4

There are a couple of Node modules that look promising



#5

I need clean PowerShell instalattion, and nothing else. There are only two solutions, sudo or instructions how to install binary package.


#6

It may not be possible. But I’d try getting the binary via wget on the console and maybe one of these workarounds would work https://stackoverflow.com/questions/13212688/how-do-i-run-powershell-scripts-without-admin-rights


#7

https://glitch.com/edit/#!/powershell
Perhaps someone could get in my project and install PowerShell for me. It takes only a minute:

wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y powershell

https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6#ubuntu-1604


#8

Binary distribution works from any folder out of the box. Resolved.


#9

The dotnet cli tool is available, is there maybe a nuget package or something you could install that way?