git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

Package for Fedora Linux

Open hickford opened this issue 3 years ago • 1 comments

If it helps anyone, I packaged git-credential-manager for Fedora Linux in an experimental personal repo. https://copr.fedorainfracloud.org/coprs/matthickford/git-credential-manager/ . Feedback welcome and help testing appreciated.

The bulk of the work was writing the rpm spec https://github.com/hickford/git-credential-manager/pull/2/files

What's pretty cool is that the rpm package is only 1.5 MB because it depends on package dotnet-runtime-6.0 in Fedora. For comparison, the official GCM binaries and deb package are over 100 MB because they self-contain the .NET runtime.

Ultimately I hope to get git-credential-manager included as an official Fedora package https://fedoraproject.org/wiki/Package_maintainers_wishlist https://docs.fedoraproject.org/en-US/package-maintainers/New_Package_Process_for_New_Contributors/

hickford avatar Aug 01 '22 07:08 hickford

The same idea would work to produce small packages for Debian or Ubuntu, although because these distributions don't include .NET, users would first have to install .NET from packages.microsoft.com following https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian . This would be fine for a personal PPA archive, but an obstacle to including git-credential-manager in Debian officially.

hickford avatar Aug 01 '22 08:08 hickford

I think it may be better long-term to focus on supporting GCM as a dotnet tool. While it would be super cool to have packages on the official Ubuntu/Debian/Fedora/etc. feeds, the amount of maintenance required with each added feed could become problematic. What I love about the dotnet tool approach is that we publish to a single feed that can be accessed from any Linux distro.

ldennington avatar Aug 24 '22 04:08 ldennington

I agree. See https://github.com/dotnet/source-build/discussions/2960 for open questions how to package .NET applications in Linux distributions.

hickford avatar Aug 24 '22 22:08 hickford

Unsubscribe me please

On Wed, Aug 24, 2022, 11:02 PM M Hickford @.***> wrote:

I agree.

— Reply to this email directly, view it on GitHub https://github.com/GitCredentialManager/git-credential-manager/issues/816#issuecomment-1226464183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ4SI4ZEYIOHWPLDIPIV6YTV22LWLANCNFSM55GSUZZQ . You are receiving this because you are subscribed to this thread.Message ID: <GitCredentialManager/git-credential-manager/issues/816/1226464183@ github.com>

ebibesty avatar Oct 11 '22 08:10 ebibesty