Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AzLinux-dnf support for RedisPackageInstallation #417

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

RakeshwarK
Copy link
Contributor

No description provided.

@RakeshwarK RakeshwarK marked this pull request as ready for review December 18, 2024 16:13
@RakeshwarK RakeshwarK marked this pull request as draft December 18, 2024 16:38
@@ -55,22 +55,10 @@
}
},
{
"Type": "WgetPackageInstallation",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested the changes in ubuntu?

Copy link
Contributor Author

@RakeshwarK RakeshwarK Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be some issue with Redis, entering protected mode in ubuntu even without these changes, but the changes were running fine on AZ Linux.

@@ -154,5 +160,35 @@ await this.systemManager.PackageManager.RegisterPackageAsync(redisPackage, cance
.ConfigureAwait(false);

}

private async Task InstallOnAzLinuxAsync(EventContext telemetryContext, CancellationToken cancellationToken)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tried tdnf?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tdnf also works, is it preferred!?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on AzLinux yes, on RHEL still use dnf. You don;t have to change it right now, you could add a comment that tdnf also works. I heard AzLinux eventually wants to move to tdnf entirely

@@ -154,5 +160,35 @@ await this.systemManager.PackageManager.RegisterPackageAsync(redisPackage, cance
.ConfigureAwait(false);

}

private async Task InstallOnAzLinuxAsync(EventContext telemetryContext, CancellationToken cancellationToken)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this would also work on RHEL/Fedora distros?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I haven't tested these cases. Should I also include RHEL/Fedora distros?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, Redis is important enough that we need more than ubuntu and AzLinux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants