sebastien / cuisine

Chef-like functionality for Fabric

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No way to install specific version of a package.

khorn opened this issue · comments

The various package_* functions don't appear to have any way of specifying a package version...and they really should.

Even just a string representing the version would be helpful, though perhaps not terribly portable.

I didn't know that there was an option for that on system package managers. Are you talking apt-ge/yum or pip/easy_install?

System package managers.

You can do this with apt-get using something like:

apt-get install =

Though may not be what you think it is.

A decent example here:
http://blog.andrewbeacock.com/2007/03/how-to-install-specific-version-of.html

I don't use yum that often, but apparently you just give it the full package name, which is kind of unfortunate.
yum details here:
https://www.zulius.com/how-to/yum-install-specific-package-version/

Gentoo's emerge can do things more like pip/easy_install, though the syntax is a bit uncomfortable:
https://www.zulius.com/how-to/yum-install-specific-package-version/

Reviewing all of these various options, it looks like maybe the best way to handle this is to just pass the version as part of the package name string, since that would probably work with all of the above, though it would be really nice if the version could be a function parameter of it's own. Maybe that isn't as feasible as I first thought, though. :(