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
The CentOS RPM isn't a workaround because it doesn't work on Fedora 24 at this moment:
$ powershell
Failed to initialize CoreCLR, HRESULT: 0x80131500
Reacted by Andy Jordan, Jordan Sissel, João Vitor Verona Biazibetti, tanaka_733, romu, Stuart Ellis, Tiffany Bennett, Jan Niklas Hasse, Adam Bowles, Andreas Schöneck and 5 more
Ah yes, we'll need to start building for fedora.23-x64 .NET Core RID too. It will come! (If you want to do it, it's just a few additions of that RID to the correct project.json files and a couple places in build.psm1, and then generate a new package with New-UnixPackage.) I would love to accept a PR like that!
In the meantime for Fedora 24, install the older LibICU package from ftp://195.220.108.108/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/l/libicu-54.1-5.fc23.x86_64.rpm as per this dotnet issue.
Using fpm for rpm and .deb generation is sub optimal. Source rpms and .deb files are desirable for a repeatable build outside someone's random build environment. This will be important for acceptance in enterprise distros as well as Debian.
I strongly recommend looking at https://openbuildservice.org for Linux builds as it not only covers a wide range of popular distros, but easily supports building on non X86 arches, everything from tiny Arm5 to IBM mainframes. OBS as we call it is 10+ years of maturity and the most powerful build platform for native Linux packages.
If the build team is in Redmon, I'll gladly drop in and show them how it works. It also integrates with Jenkins/Git workflows for CI.
Using fpm for rpm and .deb generation is sub optimal.
Totally agree, but it was very quick to go from zero to multiple packages 😉
I'm unclear if we should own the creation of packages for distributions to release. My understanding is that usually outside package maintainers pick up your build output and source, and create packages for their distribution; not pickup packages from you. However, I don't know if this is the route they'll take with PowerShell. If distributions end up wanting us to maintain the actual packages going into their repositories, we absolutely will need to create them from scratch (RPM spec etc.).
It would be ideal to have packages accepted into the official repositories but that usually requires quite some time from maintainers. I think it's unreasonable to request this from open source projects.
If there are volunteers or a company with a vested interest in having these packages, then I'm sure we'll see that in time.
It's completely acceptable for the upstream project to only provide packages generated through fpm. It's already much better than just releasing the source code or some zipped binaries.
As for this specific issue, rebuilding on Fedora 24 with the correct requirements properly defined and a new RPM being made available through the website is all that's needed, in my opinion.
Reacted by Andy Jordan, Joey Aiello and Justin Wheeler
CentOS provides a Docker container with Powershell installed. Why not just use it and a shell function to start it? Maybe something like this?
powershell () {
DOCKER_RUN="docker run --rm --name powershell -it"
DOCKER_IMAGE="centos/powershell"
DOCKER_COMMAND="/usr/bin/powershell"
## Check permissions on Docker socket and fix if necessary
if [[ ! -w /var/run/docker.sock ]]; then
sudo setfacl -m u:$( whoami ):rw /var/run/docker.sock
fi
## Make sure Powershell image is installed
if [[ "$( docker images | grep -i powershell &>/dev/null; echo $? )" != "0" ]]; then
printf "Pulling powershell image for use...\n"
docker pull "${DOCKER_IMAGE}" &>/dev/null
fi
## If we passed arguments, parse them, and if necessary, mount in the directory of the script we're trying to execute.
if [[ "$#" > 0 ]]; then
ARGS="$@"
while [[ "$#" > 0 ]]; do
if [[ "$1" == *".ps1"* ]]; then
CURRENT_DIR=$( dirname $1 )
fi
shift
done
if [[ -n "${CURRENT_DIR}" ]]; then
${DOCKER_RUN} -v ${CURRENT_DIR}:/opt/powershell_volume:rw -w /opt/powershell_volume ${DOCKER_IMAGE} ${DOCKER_COMMAND} ${ARGS}
else
${DOCKER_RUN} ${DOCKER_IMAGE} ${DOCKER_COMMAND} ${ARGS}
fi
else
${DOCKER_RUN} ${DOCKER_IMAGE} ${DOCKER_COMMAND}
fi
}
Jeremy Young (@jrm16020), doesn't that defeat the purpose a bit? It's a shell after all; I would like to try powershell as a regular shell for a few days side-by-side with my usual shell. Wouldn't that be impossible when using a docker container?
For future readers - Please always refer to the source about installing anything, do not use copypasta cut out of other places, because it will not be updated and maintained here. Look up these instructions on Fedora .NET wiki (which will refer you to the right download instructions for your version)
What's the status of this issue? I believe our RPM release is working with Fedora 27?
That's not how packaging works in Linux.
Open Source products are built and packaged by package maintainers, not by the authors of the products. Yes, one may be both, but in the case of .NET Core that is in no way true. Package maintainers can make sure that said product works with all the quirks of their Linux distribution, and they have to comply with it's rules. Among the many rules of Fedora packages, one of the main ones is that the packages have to be fully built from source, including the tools used to do so. All done in Fedora, for Fedora. This way we can make sure that there is nothing spooky coming from some 3rd party binary that could cause issues or vulnerabilities, etc...
.NET Core is packaged by the Fedora .NET SIG and all the information around .NET Core in Fedora is maintained and always up to date at fedoraloves.net
On a side note, as you can also find out on our pages, .NET Core, VSCode and other packages published by Microsoft are not free software, are under proprietary licenses, and contain proprietary code and libraries. We exclude these bits and pieces from our packages and provide necessary hacks to get the sh!# to work.
Now on topic of PowerShell packages themselves, I've not looked into it so I can not tell if it's the same as the above and with the same issues. From a glance from afar, those are not Fedora packages. They're rhel packages. There ismajor difference, so I expect a huge load of issues.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
Reacted by Mr Beedell, Roke Julian Lockhart and soredake
microsoft-github-policy-service commented on Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
Reacted by Mr Beedell, Roke Julian Lockhart and soredake
Activity
andyleejordan commentedon Aug 18, 2016
Ah yes, we'll need to start building for
fedora.23-x64.NET Core RID too. It will come! (If you want to do it, it's just a few additions of that RID to the correctproject.jsonfiles and a couple places inbuild.psm1, and then generate a new package withNew-UnixPackage.) I would love to accept a PR like that!JoaaoVerona commentedon Aug 18, 2016
Pretty please!
mattico commentedon Aug 18, 2016
Giovanni Tirloni (@gtirloni) this hn comment explains a method to get it working on Fedora 24.
But yes, a native package would be nice.
ImNtReal commentedon Aug 18, 2016
Any chance the .spec file used to build the current RPM could be released to make it easier to figure out how to package for other distros?
gromnitsky commentedon Aug 18, 2016
Jameson Pugh (@ImNtReal) judging from
build.psm1they are not writing .spec file directly but are using https://github.com/jordansissel/fpm for the rpm generation.eliasward commentedon Aug 18, 2016
As a temp workaround, I was able to get it running using https://nmilosev.svbtle.com/running-net-core-rc2-on-fedora-23
brandon-arnold commentedon Aug 19, 2016
In the meantime for Fedora 24, install the older LibICU package from ftp://195.220.108.108/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/l/libicu-54.1-5.fc23.x86_64.rpm as per this dotnet issue.
plinnell commentedon Aug 23, 2016
Using fpm for rpm and .deb generation is sub optimal. Source rpms and .deb files are desirable for a repeatable build outside someone's random build environment. This will be important for acceptance in enterprise distros as well as Debian.
I strongly recommend looking at https://openbuildservice.org for Linux builds as it not only covers a wide range of popular distros, but easily supports building on non X86 arches, everything from tiny Arm5 to IBM mainframes. OBS as we call it is 10+ years of maturity and the most powerful build platform for native Linux packages.
If the build team is in Redmon, I'll gladly drop in and show them how it works. It also integrates with Jenkins/Git workflows for CI.
andyleejordan commentedon Aug 23, 2016
Totally agree, but it was very quick to go from zero to multiple packages 😉
I'm unclear if we should own the creation of packages for distributions to release. My understanding is that usually outside package maintainers pick up your build output and source, and create packages for their distribution; not pickup packages from you. However, I don't know if this is the route they'll take with PowerShell. If distributions end up wanting us to maintain the actual packages going into their repositories, we absolutely will need to create them from scratch (RPM spec etc.).
gtirloni commentedon Aug 23, 2016
It would be ideal to have packages accepted into the official repositories but that usually requires quite some time from maintainers. I think it's unreasonable to request this from open source projects.
If there are volunteers or a company with a vested interest in having these packages, then I'm sure we'll see that in time.
It's completely acceptable for the upstream project to only provide packages generated through fpm. It's already much better than just releasing the source code or some zipped binaries.
As for this specific issue, rebuilding on Fedora 24 with the correct requirements properly defined and a new RPM being made available through the website is all that's needed, in my opinion.
xasx commentedon Aug 26, 2016
Maybe people from RedHat get interested in or can be convinced to getting respective packages sooner into their upstream Linux⁉️
jrm16020 commentedon Aug 30, 2016
CentOS provides a Docker container with Powershell installed. Why not just use it and a shell function to start it? Maybe something like this?
suvayu commentedon Sep 1, 2016
Jeremy Young (@jrm16020), doesn't that defeat the purpose a bit? It's a shell after all; I would like to try powershell as a regular shell for a few days side-by-side with my usual shell. Wouldn't that be impossible when using a docker container?
25 remaining items
RheaAyase commentedon May 20, 2017
For future readers - Please always refer to the source about installing anything, do not use copypasta cut out of other places, because it will not be updated and maintained here. Look up these instructions on Fedora .NET wiki (which will refer you to the right download instructions for your version)
DarkLite1 commentedon May 20, 2017
You are correct, comment updated.
rjmholt commentedon May 16, 2018
What's the status of this issue? I believe our RPM release is working with Fedora 27?
RheaAyase commentedon May 16, 2018
That's not how packaging works in Linux.
Open Source products are built and packaged by package maintainers, not by the authors of the products. Yes, one may be both, but in the case of .NET Core that is in no way true. Package maintainers can make sure that said product works with all the quirks of their Linux distribution, and they have to comply with it's rules. Among the many rules of Fedora packages, one of the main ones is that the packages have to be fully built from source, including the tools used to do so. All done in Fedora, for Fedora. This way we can make sure that there is nothing spooky coming from some 3rd party binary that could cause issues or vulnerabilities, etc...
.NET Core is packaged by the Fedora .NET SIG and all the information around .NET Core in Fedora is maintained and always up to date at fedoraloves.net
On a side note, as you can also find out on our pages, .NET Core, VSCode and other packages published by Microsoft are not free software, are under proprietary licenses, and contain proprietary code and libraries. We exclude these bits and pieces from our packages and provide necessary hacks to get the sh!# to work.
Now on topic of PowerShell packages themselves, I've not looked into it so I can not tell if it's the same as the above and with the same issues. From a glance from afar, those are not Fedora packages. They're rhel packages. There is major difference, so I expect a huge load of issues.
(I'll take a closer look some time next week.)
0009-0009-1013-986X commentedon May 23, 2022
0009-0009-1013-986X commentedon Jun 1, 2022
Giovanni Tirloni (@gtirloni), official support for Fedora appears to have been revoked, 1 2 which explains why the hyperlink 3 that I previously noted 4 is inoperative. Does that invalidate this issue? I hope not: the
.RPMis perfectly operative for me, so this decision appears to be unreasonable.Footnotes
https://github.com/MicrosoftDocs/PowerShell-Docs/commit/52ed58f82265285cc29eec70b59ab8cebc0792f3#:~:text=Remove%20CentOS%20and%20Fedora%20from,and%20Fedora%20from%20supported%20lists ↩
https://github.com/MicrosoftDocs/PowerShell-Docs/issues/8883#issue-1254316188:~:text=to%20be%20updated-,https://docs.microsoft.com/powershell/scripting/install/install%2Dfedora,-https://docs.microsoft.com/powershell/scripting/install/install%2Dcentos ↩
https://docs.microsoft.com/en-us/powershell/scripting/install/install-fedora?view=powershell-7.2#installation-via-package-repository ↩
https://github.com/PowerShell/PowerShell/issues/1882#issuecomment-1134207331:~:text=@gtirloni%2C-,docs.microsoft.com/powershell/scripting/install/install%2Dfedora%23installation%2Dvia%2Dpackage%2Drepository,-successfully%20installs%20PowerShell ↩
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
0009-0009-1013-986X commentedon Nov 16, 2023
@jwflory, I mean that
docs.microsoft.com/powershell/scripting/install/install-fedorawas replaced by solely/install-rhel. 1 RHEL isn't Fedora, even if their.RPMsare occasionally adequately compatible to use.Footnotes
MicrosoftDocs/PowerShell-Docs/commit/52ed58f82265285cc29eec70b59ab8cebc0792f3↩microsoft-github-policy-service commentedon Nov 24, 2023
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.
0009-0009-1013-986X commentedon Dec 8, 2024
Observe
actions/stale/issues/1190.