# Default provder

**URL:** <https://discourse.chef.io/t/default-provder/2125>\
**Category:** Chef Infra (archive)\
**Created:** [October 20, 2011, 6:46pm UTC](https://discourse.chef.io/t/default-provder/2125 "2011-10-20T18:46:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Djo](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Djo](https://discourse.chef.io/u/Djo)\
**Post date:** [October 20, 2011, 6:46pm UTC](https://discourse.chef.io/t/default-provder/2125/1 "2011-10-20T18:46:58Z")

</div>

How can I set this to default for the whole cookbook?

provider Chef::Provider:📦:Yum

so I don’t have to put it in the recipe every time?

---

<div class="post-metadata">

**Author:** ![Aaron\_Abramson](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Aaron\_Abramson](https://discourse.chef.io/u/Aaron_Abramson)\
**Post date:** [October 20, 2011, 6:57pm UTC](https://discourse.chef.io/t/default-provder/2125/2 "2011-10-20T18:57:40Z")

</div>

Use yum\_package instead of just package.

If the distro is CentOS or Redhat, yum is the default provider so you don't need to define it.

On Oct 20, 2011, at 1:46 PM, [djo@dave-n-georgi.com](mailto:djo@dave-n-georgi.com) wrote:

> How can I set this to default for the whole cookbook?
> 
> provider Chef::Provider:📦:Yum
> 
> so I don't have to put it in the recipe every time?
