Yum install previous version of package
You can do it via the command line or through GUI utilities. With yumdb info , you not only get the package version number but other details such as checksum of the package and algorithm used to produce it, such as SHA , repository, which user installed it, or whether it landed on the system as a dependency.
Another way to find out version of a package is to grep it with yum list installed. Docker also provides a convenience script at test. This script is equivalent to thescript at get. Use this script toget early access to new releases, and to evaluate them in a testing environmentbefore they are released as stable. If you installed Docker using the convenience script, you should upgrade Dockerusing your package manager directly. There is no advantage to re-running theconvenience script, and it can cause issues if it attempts to re-addrepositories which have already been added to the host machine.
Images, containers, volumes, or customized configuration files on your hostare not automatically removed. To delete all images, containers, andvolumes:. For more details click here Connect to an instance using Putty.
Try rebooting your instance if you see the following error: Cannot connect to the Docker daemon. Is the docker daemon running on this host? Docker is installed successfully. Estimated reading time: 11 minutes To get started with Docker Engine on CentOS, make sure youmeet the prerequisites, theninstall Docker.
The overlay2 storage driver is recommended. Uninstall old versions Older versions of Docker were called docker or docker-engine.
Install using the repository Before you install Docker Engine for the first time on a new host machine, you needto set up the Docker repository. Set up the repository Install the yum-utils package which provides the yum-config-manager utility and set up the stable repository.
Yum Install Docker-compose These repositories are included in the docker. To enable the test channel, run the following command: You can disable the nightly or test repository by running the yum-config-manager command with the --disable flag.
Got multiple Docker repositories? To install a specific version of Docker Engine, list the available versionsin the repo, then select and install: a. This example sorts results by version number, highest to lowest, and is truncated: The list returned depends on which repositories are enabled, and is specificto your version of CentOS indicated by the. Start Docker. Verify that Docker Engine is installed correctly by running the hello-world image.
Upgrade Docker Engine To upgrade Docker Engine, follow the installation instructions,choosing the new version you want to install.
Note To install a nightly or test pre-release package,change the word stable in the above URL to nightly or test. Upgrade Docker Engine To upgrade Docker Engine, download the newer package file and repeat theinstallation procedure, using yum -y upgrade instead of yum -y install , and point to the new file.
Install using the convenience script Docker provides a convenience script at get. Before installing, make yourself familiar with potential risks and limitationsof the convenience script: The script requires root or sudo privileges to run.
The script attempts to detect your Linux distribution and version andconfigure your package management system for you, and does not allow you tocustomize most installation parameters. The script installs dependencies and recommendations without asking forconfirmation. This may install a large number of packages, depending on thecurrent configuration of your host machine. By default, the script installs the latest stable release of Docker, containerd,and runc. When using this script to provision a machine, this may result inunexpected major version upgrades of Docker.
Always test major upgrades ina test environment before deploying to your production systems. Snippet from my terminal yum list packages with duplicates. So now we see, there are two different versions of vim-common available in our repository. Now since we have the rpm name and the version details, we just need to combine them both in the format.
Snippet from my terminal yum install specific version. Since there was a dependency for vim-common with vim-enhanced , both are automatically downloaded and installed using yum. Snippet from my terminal yum install from specific repo.
Lastly I hope the steps from the article to yum install specific version of rpm with examples on Linux was helpful. So, let me know your suggestions and feedback using the comment section. References: How to yum install from specific repo? If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation. For any other feedbacks or questions you can either use the comments section or contact me form.
0コメント