Ubuntu’s Update Manager keeps your packages at the latest version, but occasionally a new package version may not work properly. You can downgrade an installed package and lock it at a specific version to prevent it from being updated.
- Apt Get Install Old Version Download
- Youtube Apt Get Install
- Sudo Apt-get Install Older Version
- How To Install Apt Get
Mar 28, 2018 Install a specific version of a package can be useful to avoid the bugs when you know which version of a package is concerned and make sure to disable specific package from updating by holding the packages so it won't get automatically updated when you run 'apt-get upgrade'. To install Docker in most ways on Linux machine is possible by simple way. Curl -SsL bash. But you may need in some cases to install specific docker version as per your. May 06, 2014 The problem is that althought I have run the sudo apt-get update command to update the packages list, I think it keeps installing old ones. After doing sudo apt-get install python-pip python-virtualenv, I do pip -version on which I get the 1.0, and virtualenv -version on which I get 1.7.1.2. Mar 07, 2018 Usually, when you install a package in CentOS and Ubuntu, the package management software selects the latest package version from the repository, by default. However, sometimes, for one reason or the other, you may want to install a specific package version on your Linux system. How to install a specific version of a Debian package using apt-get At work we use a backported version of Subversion as the stable package is 1.1.4 and I wanted to install the latest one we could get a package for which was version 1.3.2. To upgrade Docker Engine - Community, first run sudo apt-get update, then follow the installation instructions, choosing the new version you want to install. Install from a package If you cannot use Docker’s repository to install Docker Engine - Community, you can download the.deb file for your release and install it manually.
This is particularly useful when you run into an updated package with a regression – a bug that prevents things from working properly.
How It Works
Your system generally has multiple versions of a package available in its repositories – for example, when Ubuntu updates a package, it places the new, updated package in a special updates repository. The old package is still located an Ubuntu’s main repository and can be installed with a few tricks. If you’ve installed a newer version of a package from a personal package archive (PPA), the older packages included with Ubuntu are still located in Ubuntu’s repositories.
As Synaptic warns us, this can cause problems with the package’s dependencies. Ubuntu’s software management system isn’t designed for downgrading packages – considering this an unsupported trick.
Graphically – Synaptic
The Ubuntu Software Center’s simplified interface doesn’t offer the option to downgrade packages. However, Synaptic, a more advanced graphical package manager interface that Ubuntu used to include, offers this option. To downgrade a package graphically, first install the Synaptic application.
After you do, open the Synaptic Package Manager from the Dash.
Apt Get Install Old Version Download
Search for the package you want to install an older version of in Synaptic, select it, and use the Package –> Force Version option.
Youtube Apt Get Install
Select the version you want to install and click Force Version. Synaptic will only show you versions available in your repositories.
Click the Apply button to apply your changes and install the older version of the package, assuming everything works properly.
After you downgrade the package, select it and use the Package –> Lock Version option. If you don’t do this, Ubuntu will try to upgrade the installed package the next time you update your installed packages.
Terminal – apt-get
You can install a specific version of a package with apt-get in the terminal. First, determine the available versions you can install with the following command
apt-cache showpkg packagename
Next, run the apt-get install command and specify the package version you want to install.
sudo apt-get install packagename=version
After it’s installed, run the following command to hold your installed version, preventing the package manager from automatically updating it in the future:
sudo echo “package hold” | sudo dpkg –set-selections
READ NEXT- › A New Wireless Standard: What Is Amazon Sidewalk?
- › How to Use Text Editing Gestures on Your iPhone and iPad
- › Windows 10’s BitLocker Encryption No Longer Trusts Your SSD
- › How to Disable or Enable Tap to Click on a PC’s Touchpad
- › How HTTP/3 and QUIC Will Speed Up Your Web Browsing
Sudo Apt-get Install Older Version
Usually, when you install a package in CentOS and Ubuntu, the package management software selects the latest package version from the repository, by default. However, sometimes, for one reason or the other, you may want to install a specific package version on your Linux system.
In this article, we will explain how to install a particular or specific package version in CentOS and Ubuntu using Yum and APT front-end package managers, respectively.
Install Specific Package Version in CentOS/RHEL/Fedora
First, you need to check for all the available versions of a package, whether installed or not. Normally, yum ignores specific versions of a package and will always try to install the latest version available.
Secondly, when you try to find info about a package, yum only shows the latest version of that package in the output of info, list or search sub-commands; but using the --showduplicates
switch, you can display all package versions present in the repository.
From the above command output, the naming format for packages are:
The build_number represents minor changes made by the package maintainer, not by the program author, such as additional documentation, changes to configuration files, or bug fixes and more.
Once you have identified the specific version of a package (for example nginx-1.10.3-1.el7.ngx), install it as follows. Note that the name format will have to change here, to the full RPM desired, package_name-version_number as shown in the following command.
Alternatively, if you want to use a version with certain updates, specify the build_number (package_name-version_number-build_number) as shown.
Install Particular Package Version in CentOS
Considering the above situation, a newer version of the packages is already installed on the system. Therefore, you need to remove the installed package version, if you want to install an older version from the available packages as shown.
Once you have removed the installed package, you can then install the specific version you desire as explained above.
Install Specific Package Version in Ubuntu and Debian
First check the version of the package installed on your system plus all available packages in the repository, using the apt-cache command below.
To install a specific package version, use the following command with syntax below.
Install Specific Package Version in Ubuntu
How To Install Apt Get
If a newer version of a package is already installed on your Ubuntu system, you can remove it and then install the version you want.
That’s all! For more information, refer to the yum, apt, apt-cache man pages. If you have any queries, use the comment form below to get to us.