I'm trying to adapt a chef recipe developed for Centos to Ubuntu, and thinking that there must be a better way.
Methodology (I'm using Vagrant):
- Look through log to find the package that broke
[Wed, 04 Jul 2012 06:24:34 +0200] FATAL: Chef::Exceptions::Package: package[python-devel] (foo::deps line 57) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for python-devel
- Google "apt-get install " to try to find the Ubuntu equivalent
- Modify the code to include a platform test, using the package name I've discovered.
Is there a quick and reliable way to find the Ubuntu (apt-get instead of yum) package name from the Centos one? Something else I'm missing?