I want to install emacs-snapshot from http://emacs.orebokech.com But there is already an emacs-snapshot in Ubuntu's repositories.
How can I specify the repository from which a package will be installed?
|
I want to install emacs-snapshot from http://emacs.orebokech.com But there is already an emacs-snapshot in Ubuntu's repositories. How can I specify the repository from which a package will be installed? | |||
|
feedback
|
|
There is a preferences file for apt. I think it is located under /etc/apt, but not 100% sure. There you can set the priority for a package from a repository to be higher than for the same package from the Ubunto repository. For the exact syntax, look up in man apt-get. Edit the file, then install as usual with apt-get, it will fetch from the highest priority origin. Just make sure beforehand that the package from that repository is compiled for your distro (e.g. a debian binary may look for dependencies in the wrong places) and for your kernel version (this changes quite often throughout the life cycle of a Ubuntu version). Else it is a matter of chance if it will work. | |||
|
feedback
|
|
I found a workaround. First I needed to find the repositories that had the pacakage:
In the Versions: section. I see the versions that come from different repositories:
So now we just tell apt or aptitude to install that specific version:
package-name=*version_name* Victory. I still don't know how to use a specific repository. But in this case a specific version was enough. | |||
|
feedback
|