Skip to content

Commit

Permalink
chore: rpm: switch to dnf instead of yum
Browse files Browse the repository at this point in the history
  • Loading branch information
M0Rf30 committed May 14, 2024
1 parent 4f88ac6 commit d9aea1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/rpm/rpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (r *RPM) Install(artifactsPath string) error {
pkgFilePath := filepath.Join(artifactsPath, RPMArchs[arch], pkgName)

if err := utils.Exec(false, "",
"yum",
"dnf",
"install",
"-y",
pkgFilePath); err != nil {
Expand All @@ -120,7 +120,7 @@ func (r *RPM) PrepareEnvironment(golang bool) error {
}
args = append(args, buildEnvironmentDeps...)

if err := utils.Exec(false, "", "yum", args...); err != nil {
if err := utils.Exec(false, "", "dnf", args...); err != nil {
return err
}

Expand Down

0 comments on commit d9aea1a

Please sign in to comment.