- From: Jesse Nelson <
>
- To:
- Subject: [chef] Re: Re: Re: Handling package removal
- Date: Thu, 26 Jul 2012 16:34:47 -0700
This is in an execute resource, you should probably be using package
with the rpm provider which should ensure idempotence.
something like:
package "foo" do
action :remove
options "--nodeps"
provider Chef::Provider::Package::Rpm
end
Untested, but should work. Wiki says the rpm provider supports passing
options.
On Thu, Jul 26, 2012 at 4:28 PM, Greg Pendler
<
>
wrote:
>
The original recipe has "rpm -e --nodeps" - i'll probably need to change
>
that.
>
>
--
>
Greg Pendler
>
Sent with Sparrow
>
>
On Thursday, July 26, 2012 at 4:26 PM, Jesse Nelson wrote:
>
>
If you have a package resource with a remove action nothing will
>
happen unless the package is installed. I assume you have some other
>
reason you want to know if the package is installed ?
>
>
>
On Thu, Jul 26, 2012 at 4:17 PM, Greg Pendler
>
<
>
>
wrote:
>
>
Hi
>
>
Forgive me if this is a newbie question, but is there a good way to check if
>
a package (rpm) is installed before i remove it? I tried to search the
>
archives but couldn't dig anything useful so far.
>
>
Thanks in advance,
>
Greg
>
>
Archive powered by MHonArc 2.6.16.