Need sudo to install PowerShell Core, or workaround, please.
Hi, what will you be using PowerShell Core for? Maybe there is a similar option that works without Sudo?
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.
There are a couple of Node modules that look promising
I need clean PowerShell instalattion, and nothing else. There are only two solutions, sudo or instructions how to install binary package.
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
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
Binary distribution works from any folder out of the box. Resolved.
dotnet cli tool is available, is there maybe a nuget package or something you could install that way?