Now I got an error that Puppet cannot successfully remove the php with the error:
*Error: Execution of '/bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64' returned 1: error: package 'php-5.5.5-2.el6.remi.x86_64 is not installed* *Error: /Stage[main]/Php/Package[php-5.5.5-2.el6.remi.x86_64]/ensure: change from 5.5.5-2.el6.remi to absent failed: Execution of '/bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64' returned 1: error: package 'php-5.5.5-2.el6.remi.x86_64 is not installed* But when I run the command: */bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64'* *from the command line* *php remove successfully*. Thank you very much for your answer. On Wednesday, November 13, 2013 5:11:41 AM UTC+2, Derek Harkness wrote: > > Could you do something like > > package { ‘php-5.5.5’: > ensure => absent, > } > > package { ‘php-5.3.3’: > ensure => ‘5.3.3', > require => Package[‘php-5.5.5’], > } > > > On Nov 12, 2013, at 10:37 , shlo....@gmail.com <javascript:> wrote: > > In this case I need to ensure it delete php-5.5.5 and after that install > php-5.3.3. > When trying to install php-5.3.3 when php-5.5.5 exist it exit with errors > about conflict in version. > How can I ensure that specific version of php is absent? > > On Monday, November 11, 2013 4:38:12 PM UTC+2, Derek Harkness wrote: >> >> You can specify a version string for each package. >> >> package { [ ‘php-xml’, ‘php-common’ ]: >> ensure => “5.3.3”, >> } >> >> You might have to break them out and add in some dependency. >> >> On Nov 10, 2013, at 6:08 , shlo....@gmail.com wrote: >> >> Hi, >> I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because >> yum command failed. >> It has dependencies that need to removed or downgrade. >> ... >> php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) >> php-xml-5.5.5-2.el6.remi.x86_64 >> ... >> >> How can I tell Puppet to remove the php-xml, php-common etc from the >> higher version and to install php and those packages (php-xml, php-common >> etc) he just remove in lower version? >> >> Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/8147ba9c-3f34-4b99-a02e-fd23909fb553%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users...@googlegroups.com <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/77f65608-d59b-4a3c-a055-b7f09c18a1fd%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/79245fa8-d688-41f5-9674-8f56fc6cee07%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.