Apt Get Install Certain Version
- How To Install Apt Get
- Apt-get Install Specific Version Debian
- Apt-get Install Old Version
- Install Apt Get
- Apt-get Install Version Greater Than
I need to use apt-get download
to fetch a specific version of a .deb
file, but not necessarily the exact version. .deb
dependencies are allowed to use expressions such as >=0.3.0
and I would like apt-get download
to fetch the same version as the one that would be downloaded using such dependency.
Summing it up, what I want to work is this:
Brief: This beginner’s guide shows you what you can do with apt-get commands in Linux, how to use them to find new packages, install and upgrade new packages, and clean your system. If you have started using Ubuntu or any Ubuntu-based Linux distribution, such as Linux Mint, elementary OS, etc. If you did a standard./configure; make without passing any options to configure, then make install will place the pieces of your desired version of GCC in various subdirectories of /usr/local. The /usr/local directory tree is intended for software installed by the system administrator outside of the package-management system (ie. Exactly what you're doing). I am trying to install asterisk on my box. When I use 'apt-get install asterisk', version 1.6.29 is installed. Is there a way I can install. Using apt-get command to install specific version of package in Ubuntu Linux. Ubuntu users can install package from previous release or install a specific version of a package. A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. How To List All Packages In A Repository On Ubuntu, Debian Or Linux Mint APT To downgrade a package to a specific version, you'll need to append =version after the package name in the installation command, with version being the version to which you want to downgrade the package: sudo apt install =version Example 1.
Any idea how I could get that functionality?
sblairHow To Install Apt Get
4 Answers
You could do this by first finding out which version is the newest version that is also greater than or equal to your desired minimum version. Then, you download exactly that version using apt-get download
. Here's a script that does this (it's a bit ugly, but you get the idea):
You'd have to add error checking in case the package doesn't exist, etc. but this contains the core solution. Also, I've assumed here that you want the newest available package that is at least a certain version. If you would instead like the oldest available package that is at least a certain version, you have to adjust the script to stop searching once it's found something that is at least your desired version.
Since you want exactly what apt-get install
would give you, it might be worthwile to run apt-get install
in 'download-only mode' using a custom archives directory:
How to change the archives directory? This is a configuration option:
Those can be changed temporarily with the --option
parameter:
Liberty city stories pc direct download. To summarize:
Craft your own beats or start with a sample pattern using beat designer. System Requirements. Windows XP/Vista/7/8/8.1/10. Add audio effects including EQ, compression, reverb and more. Includes a royalty-free sound effect and music library with hundreds of clips to use in your productions. Mixpad multitrack download.
This command will download (and only download, not install) the relevant .deb
files for <package>
to /some/cache/dir
. The directory will contain the .deb
files for the package, its dependencies, a lock file and 'partial' directory (which should be empty). Filtering out the exact .deb
file you need should be trivial.
apt-get download
also allows you to set target release. Wouldn't it help?
Comment to #1 (cannot use comments) - adding parameter --print-uris
to apt-get install
does not require root rights (but you have to download it itself – best with wget -i FILE_LIST).
Apt-get Install Specific Version Debian
Without SU privs you can still run apt-cache and combine with filtering to get that info. Use something like:
Apt-get Install Old Version
On Debian 5:
On 6 you can use:
Apt-cache seems to have changed behavior in the ordering of the list between 5 and 6 so that on 6 the newest one comes last.
One word of caution is that if you are using this output as you say 'to fetch the same version as the one that would be downloaded using such dependency', the version of the package available may change if you run apt-get update (with su privs of course), or if that has been set to automatically run and happens in between when you gathered the version, and when you run the script that installs things expecting that to be the version.
jonsca