Skip to content

Publish RPM to fedora/27 repo and Update fedora instructions #8879

@phillipsj

Description

@phillipsj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIssue-BugIssue has been identified as a bug in the productResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions