First, your command is incorrect - you can either use
install but not both.
Second, the correct name of the package is
ipa-server.4.4.0-12.el7.centos and not as you specified (the suffix
.x86_64 is optional, but if you specify it you must do so after the entire version string, including the "
centos" part) - and yum helpfully reported that it can't find a package with the name you specified.
To see the correct names of available packages, use the
yum list <package-name> command. To create an exact version specification for downgrade, use the name from the list and the exact version string from the list, concatenated with a
- (dash) character.
Here's how it looks on a CentOS 7 system when installing a specific version:
$ sudo yum install ipa-server-4.4.0-12.el7.centos.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.unifiedlayer.com
* epel: s3-mirror-us-west-1.fedoraproject.org
* extras: mirrors.sonic.net
* updates: mirrors.sonic.net
--> Running transaction check
---> Package ipa-server.x86_64 0:4.4.0-12.el7.centos will be installed
... then a lot of dependency resolving followed by an installation summary and approval prompt.
If we try to install the latest version then use:
sudo yum downgrade ipa-server-4.4.0-12.el7.centos to try to downgrade back to release 12, we get a lot of conflicts errors like these:
Error: Package: ipa-server-4.4.0-12.el7.centos.x86_64 (base)
Requires: ipa-common = 4.4.0-12.el7.centos
Installed: ipa-common-4.4.0-14.el7.centos.noarch (@updates)
ipa-common = 4.4.0-14.el7.centos
Available: ipa-common-4.4.0-12.el7.centos.noarch (base)
ipa-common = 4.4.0-12.el7.centos
This is because the specific
ipa-server version requires specific "sub packages" for for it to work and the downgrade command does not downgrade the sub packages directly. YUM man page has this to say about
The depsolver will not necessarily work, but if you specify all the packages it should work
The in order to downgrade you're going to have to specify all the "ipa" pacakges that cause conflict with the correct (older) version number, in the