Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to install specific version of a package. #126

Open
khorn opened this issue Jan 25, 2013 · 2 comments
Open

No way to install specific version of a package. #126

khorn opened this issue Jan 25, 2013 · 2 comments

Comments

@khorn
Copy link

khorn commented Jan 25, 2013

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.

@sebastien
Copy link
Owner

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?

@khorn
Copy link
Author

khorn commented Jan 25, 2013

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. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants