You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support more distributions in installpsh-debian.sh script #6364
I would like to know if you want to support more Debian distributions in the installation script, and if so, how you would like to support them (and if this would be tested or not).
We could simply add a message in the script that says to open a PR (with a link to this repo) to add support for the current distribution (if it's not already supported), and let people open PRs one by one.
If you are ok with more distributions support, I can immediately add BunsenLabs to the list 😉
Would these community-supported scripts reside in the powershell repository itself? Or another, dedicated repository? Or would the references just point to random repositories, like https://github.com/some-user/some-repo/blob/master/installpsh-some-distro.sh, and people would open PRs to add them in the docs?
Timothée Mazzucotelli (@pawamoy) are you aware of any existing precedent set by other projects when the community extends distro support? If there's already a well defined pattern, would prefer to use that unless there's a big reason not to follow it.
Ilya (@iSazonov) No 😕 I was not able to find similar examples. I guess it's usually up to the package repositories managers to make a package available for the distro he's in charge of. Or to project developers to give a generic installation script.
Maybe if powershell's installation scripts relied on something else than /etc/lsb-release, like /etc/os-release (which includes a ID_LIKE="debian" line for example) or /proc/version, it would handle more cases.
Or maybe the simplest solution would be to duplicate installpsh-debian.sh in installpsh-ubuntu.sh. The Ubuntu script would always use ubuntu as distribution ID, and the Debian script would always use debian as distribution ID. Then the DISTRIB_VERSION would be read from the environment variable, and if it's not set, from the /etc/lsb-release or /etc/os-release files. I could then install powershell on BunsenLabs or any other distribution based on Debian 8 with DISTRIB_VERSION=8 ./installpsh-debian.sh.
Seeing that LinuxMint was added, would you agree to add BunsenLabs to the list? I know it's not a widespread distribution but I'm still interested in it being supported. Besides, as written in the first comment, it's simply a matter of adding bunsenlabs in the debian) case. I can open a new issue for it if you prefer.
We have two paths, PowerShell can support it. Or this script can unofficially support it. If we want the former, we should file an issue that specifically asks that linux mint be added to the list of supported distributions.
About LinuxMint, I myself have no preferences. About BunsenLabs, I don't mind it being unofficially supported in the script. Afterall, I just want to be able to run ./installpsh-debian.sh.
Timothée Mazzucotelli (@pawamoy) perhaps an option is to update ./installpsh-debian.sh to have a -force type switch so that we aren't preventing attempts to use it but it wouldn't be something we would support
Steve Lee (@SteveL-MSFT) I think it would complicate the script too much. I understand it's preferable to only add officially supported distributions in the script (by the way, debian 8 still appears in the script but is out of support, right?), so I won't push for BunsenLabs. For people who really want to install it on a distro based on debian 9, it's very easy anyway:
Activity
iSazonov commentedon Mar 12, 2018
I wonder - how many Debian distributions exist?
I would prefer to add references to community-supported scripts to our documentation.
pawamoy commentedon Mar 12, 2018
There are a lot indeed! Here is the Debian family tree.
Would these community-supported scripts reside in the powershell repository itself? Or another, dedicated repository? Or would the references just point to random repositories, like
https://github.com/some-user/some-repo/blob/master/installpsh-some-distro.sh, and people would open PRs to add them in the docs?iSazonov commentedon Mar 13, 2018
I believe we can not test and support all such scripts in the repo.
/cc Joey Aiello (@joeyaiello) Steve Lee (@SteveL-MSFT)
SteveL-MSFT commentedon Mar 13, 2018
Timothée Mazzucotelli (@pawamoy) are you aware of any existing precedent set by other projects when the community extends distro support? If there's already a well defined pattern, would prefer to use that unless there's a big reason not to follow it.
pawamoy commentedon Mar 13, 2018
Steve Lee (@SteveL-MSFT) unfortunately no, but I will dig a bit and see if I can find some useful examples or patterns.
iSazonov commentedon Oct 21, 2018
Timothée Mazzucotelli (@pawamoy) Have you any updates?
pawamoy commentedon Oct 23, 2018
Ilya (@iSazonov) No 😕 I was not able to find similar examples. I guess it's usually up to the package repositories managers to make a package available for the distro he's in charge of. Or to project developers to give a generic installation script.
Maybe if powershell's installation scripts relied on something else than
/etc/lsb-release, like/etc/os-release(which includes aID_LIKE="debian"line for example) or/proc/version, it would handle more cases.Or maybe the simplest solution would be to duplicate
installpsh-debian.shininstallpsh-ubuntu.sh. The Ubuntu script would always useubuntuas distribution ID, and the Debian script would always usedebianas distribution ID. Then theDISTRIB_VERSIONwould be read from the environment variable, and if it's not set, from the/etc/lsb-releaseor/etc/os-releasefiles. I could then install powershell on BunsenLabs or any other distribution based on Debian 8 withDISTRIB_VERSION=8 ./installpsh-debian.sh.iSazonov commentedon Oct 23, 2018
Timothée Mazzucotelli (@pawamoy) In the repo we can support only distributives which CoreFX supports. Other ones can be only community driven.
pawamoy commentedon May 15, 2019
Seeing that LinuxMint was added, would you agree to add BunsenLabs to the list? I know it's not a widespread distribution but I'm still interested in it being supported. Besides, as written in the first comment, it's simply a matter of adding
bunsenlabsin thedebian)case. I can open a new issue for it if you prefer.iSazonov commentedon May 16, 2019
I see that Linux Mint will added in .Net Core 3.0 https://github.com/dotnet/core/blob/de2f7eaab2bb652b246c322827bda42a05e2fbb3/release-notes/3.0/3.0-supported-os.md#linux
Timothée Mazzucotelli (@pawamoy) We will move to 3.0 in weeks. Please wait and then you can make PR to update the install script and docs.
/cc Travis Plunk (@TravisEz13)
TravisEz13 commentedon May 16, 2019
We have two paths, PowerShell can support it. Or this script can unofficially support it. If we want the former, we should file an issue that specifically asks that linux mint be added to the list of supported distributions.
pawamoy commentedon May 16, 2019
About LinuxMint, I myself have no preferences. About BunsenLabs, I don't mind it being unofficially supported in the script. Afterall, I just want to be able to run
./installpsh-debian.sh.TravisEz13 commentedon May 16, 2019
BunsenLabs would have to be unofficial as it's not supported by DotNet.
SteveL-MSFT commentedon May 16, 2019
Timothée Mazzucotelli (@pawamoy) perhaps an option is to update
./installpsh-debian.shto have a-forcetype switch so that we aren't preventing attempts to use it but it wouldn't be something we would supportpawamoy commentedon May 16, 2019
Steve Lee (@SteveL-MSFT) I think it would complicate the script too much. I understand it's preferable to only add officially supported distributions in the script (by the way, debian 8 still appears in the script but is out of support, right?), so I won't push for BunsenLabs. For people who really want to install it on a distro based on debian 9, it's very easy anyway:
Thanks for your feedback everyone 🙂
iSazonov commentedon Oct 13, 2019
#10773 now we use /etc/os-release