Rohit
January 14, 2019, 4:08pm
1
Hi All
I have installed the packages using chocolatey and now I am looking to downgrade the package for the same .
The code written is below:
chocolatey_package '7zip' do
source node['test']['chocolatey_source']
end
chocolatey_package 'tortoisesvn' do
source node['test']['chocolatey_source']
version '1.8.12.1'
end
chocolatey_package 'git' do
source node['test']['chocolatey_source']
end
chocolatey_package 'dotnetcore21-sdk' do
source node['test']['chocolatey_source']
version '2.1.300'
end
Can anybody help me or guide me how can I downgrade the package for chocolatey.
Regards
Supply an explicit version and add the following property with action :install
options "--allow-downgrade"
Note that some packages will not perform the correct actions on downgrade. For these you may need to uninstall and reinstall.
Stuart
Rohit
January 15, 2019, 8:50am
3
Hi Stuart
Thanks for the help.
It would be really great if you can please provide me the same ( options "--allow-downgrade") with some example or same used in my above code.
Thanks in advance.
Regards
Rohit Kohli
It's literally pasting in the line I specified, and adjusting the version number to match what you want (the default action is :install). E.g to downgrade your Tortoise SVN to 1.8.11:
chocolatey_package 'tortoisesvn' do
source node['test']['chocolatey_source']
version '1.8.11'
options "--allow-downgrade"
end
Stuart