Powershell: Publish RPM to fedora/27 repo and Update fedora instructions

Created on 13 Feb 2019  Â·  12Comments  Â·  Source: PowerShell/PowerShell

I followed the direction located here.

And I receive the following error:

sudo dnf install powershell
Repository packages-microsoft-com-prod is listed more than once in the configuration
Last metadata expiration check: 0:05:34 ago on Tue 12 Feb 2019 08:19:37 PM EST.
No match for argument: powershell
Error: Unable to find a match

Steps to reproduce

  1. Start with a fresh install of Fedora 29
  2. Install Microsoft .NET Core following directions here.
  3. Follow directions to install PowerShell Core from here

Expected behavior

That there wouldn't be a naming conflict that prevents searching the repository to find the PowerShell package.

Actual Issue

Both the .NET Core package repository and the PowerShell package repository for Fedora both use the same package name which cause the conflict.

.NET Core

[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/fedora/27/prod/
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc

PowerShell

[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/rhel/7/prod/
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc

Workaround

I just opened the microsoft.prod repo file that was created and edited it to change the repository name.

[packages-microsoft-com-pwsh]
name=packages-microsoft-com-pwsh
baseurl=https://packages.microsoft.com/rhel/7/prod/
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc

Actual Resolution

Either change the name of one of the package files or create a single repo that all Microsoft packages can be obtained.

Area-Maintainers-Build Issue-Bug Resolution-Answered

All 12 comments

@SteveL-MSFT @TravisEz13 Please look the Issue - this may need to be fixed before the next release.

@phillipsj I just created a new Fedora 29 VM and following the instructions it installed powershell 6.1.3 just fine.

Did you follow all my repro steps or did you just do the PowerShell
install. You have to install the other Microsoft repo and try to install dotnet too. That is the
conflict.

On Tue, Feb 19, 2019, 6:34 PM Steve Lee <[email protected] wrote:

@phillipsj https://github.com/phillipsj I just created a new Fedora 29
VM and following the instructions it installed powershell 6.1.3 just fine.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/8879#issuecomment-465356117,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABfthSVO8-bFjEz3bJG9O8Avrg7SK6cnks5vPIoHgaJpZM4a4aDp
.

@phillipsj sorry, didn't install dotnet. I see what the problem is. At the time we started publishing pwsh, packages.microsoft.com only had rhel and didn't have a folder for fedora. They have that now which is what dotnetsdk uses. The problem is if you follow both instructions, then the Microsoft repo is registered twice differently which dnf complains about. The fix is that we should also publish to the fedora location and update our install instructions. cc @TravisEz13

No worries, I really enjoy using Powershell and want it to be seamless.
Thanks for looking into it.

On Wed, Feb 20, 2019, 6:01 PM Steve Lee notifications@github.com wrote:

@phillipsj https://github.com/phillipsj sorry, didn't install dotnet. I
see what the problem is. At the time we started publishing pwsh,
packages.microsoft.com only had rhel and didn't have a folder for fedora.
They have that now which is what dotnetsdk uses. The problem is if you
follow both instructions, then the Microsoft repo is registered twice
differently which dnf complains about. The fix is that we should also
publish to the fedora location and update our install instructions. cc
@TravisEz13 https://github.com/TravisEz13

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/8879#issuecomment-465790460,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABftha_1NgxK7QyuB3U64Unlx3ej_awpks5vPdO3gaJpZM4a4aDp
.

This issue isn't resolved, this applies to all fedora installations including Fedora 30. I feel that you all didn't try to reproduce this issue.

I see the request is to publish individual packages for each fedora distribution. Can you open a feature request?

That isn't the request. The request is to not name your repo the same as
the .net core repo in your yum file.

On Sun, Jul 21, 2019, 1:19 PM Travis Plunk notifications@github.com wrote:

I see the request is to publish individual packages for each fedora
distribution. Can you open a feature request?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/8879?email_source=notifications&email_token=AAL63BITYSFBK2XUGPAYDSLQASLAXA5CNFSM4GXBUDU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OHYQQ#issuecomment-513571906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAL63BMVD5ZFLHHIUNAJUULQASLAXANCNFSM4GXBUDUQ
.

Happy to do a call to get this sorted out. Here is an image of what I
describing.
https://twitter.com/phillipsj73/status/1152760880326729729?s=09

On Sun, Jul 21, 2019, 5:52 PM Jamie Phillips cphill11@gmail.com wrote:

That isn't the request. The request is to not name your repo the same as
the .net core repo in your yum file.

On Sun, Jul 21, 2019, 1:19 PM Travis Plunk notifications@github.com
wrote:

I see the request is to publish individual packages for each fedora
distribution. Can you open a feature request?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/8879?email_source=notifications&email_token=AAL63BITYSFBK2XUGPAYDSLQASLAXA5CNFSM4GXBUDU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OHYQQ#issuecomment-513571906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAL63BMVD5ZFLHHIUNAJUULQASLAXANCNFSM4GXBUDUQ
.

It is the net effect of your request, unless you would like to ask .NET to change.
I’ve filed it for you
https://github.com/PowerShell/PowerShell/issues/10202

Unless you can provide more details

Was this page helpful?
0 / 5 - 0 ratings