Skip to content

Install packages via Yum by enabling multiple repos #2

@jagan495

Description

@jagan495

I am trying to install a packages via Yum on some systems from a repos that are disabled by default on the nodes. I was hoping to do this by passing "--enablerepo=my-test-repo,antoher-repo" via the package options.

yum_package "<multiple packages " do
action :install
flush_cache [ :before ]
options '--enablerepo=rpmforge-extras,rpm_base'
end

chef throwing error for second repo "rpm_base" i.e rpm_base repo not exists. why its not considering second repo even that repo is there in repo file. Its working fine (for single repo) if we pass options '--enablerepo=rpmforge-extras' . Enabling multiple repos working fine on all linux os versions expect Ol6.7, ol6.6,ol6.5 and ol6.4.

Can someone please look into this strange issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions