Join GitHub today
- Apt-get Install Specific Version Of Nodejs
- Sudo Apt-get Install Specific Version
- Apt-get Install Particular Version
Sudo apt-get install package1 package2 package3 If you try to install an already installed package, it will check the package database and if a newer version of that package is found, it will upgrade the installed package to its newer version. If you want to install a specific version of a package you can run this command. Jan 11, 2019 This tutorial will help you to install specific version of packages using apt-get. First of all, list all available version of the package. For example to find available version of firefox run the following command. Sudo apt policy firefox The above command shows two version’s of firefox. Now, run the below command to install firefox version.
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHave 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
Comments
commented Dec 16, 2014
Is there or can there be a way to install a specific version of Docker using the get.docker.com scripts? Maybe by putting the version number in an env var? Or using a specific path? Thanks. |
commented Dec 16, 2014
commented Dec 16, 2014
I am going to close, let me know if thats a problem |
closed this Dec 16, 2014
commented Dec 16, 2014
Thanks, I will try it out. |
Closed
commented Jun 23, 2015
This was super helpful in pinning to 1.6 for a moment while we figure out an error I haven't been able to diagnose for 1.7 yet. Thank you @tianon! |
commented Aug 10, 2015
Why such important information wasn't post on the official website? F*ck! |
commented Feb 12, 2016
Is there any means to do something similar to what you did @tianon for OS X? |
commented Feb 12, 2016
@ybur-yug yeah, https://get.docker.com/builds/Darwin/x86_64/docker-VERSION, ie https://get.docker.com/builds/Darwin/x86_64/docker-1.6.1 |
commented Feb 12, 2016
If you want it for only client tooling, you can also use the Docker Version Manager (dvm) to get Docker versions. |
commented Feb 13, 2016
@tianon@rgbkrk thanks a ton! |
commented Apr 26, 2016
It is |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Active5 years, 7 months ago
I want to install emacs-snapshot from http://emacs.orebokech.comBut there is already an emacs-snapshot in Ubuntu's repositories.
How can I specify the repository from which a package will be installed?
elviejo79elviejo7951522 gold badges55 silver badges1111 bronze badges
3 Answers
You can specify a repository with
-t
option. As an example, I have added the following repository to /etc/apt/sources.list
to install Iceweasel latest release:deb http://mozilla.debian.net/ squeeze-backports iceweasel-release
As you know there is a same package
iceweasel
in the official Debian repository. If I want install Iceweasel from this specific repo I run:from apt-get manual page:
I think this is a better solution,
Source from:https://askubuntu.com/questions/27362/how-to-only-install-updates-from-a-specific-repository/57749#57749
Community♦
hukkohukko
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:
Apt-get Install Specific Version Of Nodejs
- 1:20100111-1~lenny1
- 1:20090909-1
Sudo Apt-get Install Specific Version
So now we just tell apt or aptitude to install that specific version:
package-name=version_name
Victory. Aftershock free online.
I still don't know how to use a specific repository. But in this case a specific version was enough.
elviejo79elviejo79Apt-get Install Particular Version
51522 gold badges55 silver badges1111 bronze badges
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.
rumtschorumtscho2,60199 gold badges3838 silver badges6565 bronze badges