Home Linux System Administration Replacing yum-plugin-replace one yum install package php with another on Linux CentOS 6 If you have installed software from one yum repository and want to upgrade it using packages in a different yum repository you may encounter some problems because of conflicts in packages.
In fact they are considered two different programs because of the different names, so to update it we would need to uninstall the old one and install the new one: Updating Using yum remove then yum install For install and remove we will be using the php-common name so that all the files related to that version are removed together.
What is php-common? Installing php55w and php55w-common This time we need to specify the php55w package itself because it is not included in the common package.
Testing the Current Version Make a phpinfo file as outlined here to test the newly installed php. Installing using yum-replace-plugin As seen earlier we have to issue two commands, one to remove the old version and one to install the new version.
It was developed specifically for the : IUS Community Project whose packages have alternative names as to not : automatically upgrade stock packages. They also do not Obsolete the packages : they provide, therefore making upgrading a little bit more tedious. Failed to load latest commit information. View code. Package Replacement Plugin for Yum This plugin enables the ability to replace an installed package, with another package that provides the same thing. Releases 1 0. Aug 5, Packages 0 No packages published.
Contributors 4. The plug-in provides a yum replace command that replaces a specified package and installs any required dependencies at the same time.
You can see if the repositories that you need are installed and enabled by running the following command:. Some repositories are disabled by default. To list disabled repositories, run the following command:.
For example upgrading 'mysql' to 'mysql50' or 'mysql51' requires first uninstalling 'mysql' and then installing the alternate package name. Control the yum-plugin-replace package with the following handy commands outlined below.
This command will un-install yum-plugin-replace on the server. When you run this command, you will be asked if you are sure that you want to remove yum-plugin-replace, so you have to manually confirm that you want to do this.
When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove yum-plugin-replace when using the -y flag. This command will update yum-plugin-replace to the latest version.
0コメント