MariaDB 5.5 - Centos 7 - last version not available
Hello,
I'm using MariaDB 5.5 on Centos 7.
Yum is configured to use CentOS-Base.repo
but only 5.5.60 is available.
# yum list --showduplicates mariadb-server Available Packages mariadb-server.x86_64 1:5.5.60-1.el7_5 base
I don't understand why 5.5.62 is not available on the repo. Do you know the reason ?
Moreover, I tried the configuration given by https://downloads.mariadb.org/mariadb/repositories/#mirror=icm&distro=CentOS&distro_release=centos7-amd64--centos7&version=5.5
creating the file /etc/yum.repos.d/mariadb.repo
# MariaDB 5.5 CentOS repository list - created 2019-01-09 13:20 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
when I installed MariaDB via yum
, installation of 5.5.62 is written as completed.
However, there is no mariadb.service
file under /etc/systemd/system
(and subdirectories) or /usr/lib/systemd/system/
I downloaded the rpm file given by the CentOS-Base.repo
and checked the content. The file mariadb.service
is present.
# rpm -qlp mariadb-server-5.5.60-1.el7_5.x86_64.rpm | grep service /usr/lib/systemd/system/mariadb.service
I download the rpm file given by the mariadb.repo
. There is no mariadb.service
# rpm -qlp MariaDB-5.5.62-centos73-x86_64-server.rpm | grep service
The file mariadb.service
is not present in the rpm of 5.5.60 from mariadb.repo
# rpm -qlp MariaDB-5.5.60-centos73-x86_64-server.rpm | grep service
Can you explain why mariadb.service
is included in the rpm from CentOS-Base.repo
but not from mariadb.repo
dedicated to Centos 7 ?
Answer Answered by Daniel Bartholomew in this comment.
The MariaDB yum repositories are updated every time a release is made and we generally keep the most recent three versions of a given MariaDB branch in our repositories.
CentOS, and by extension RedHat, update MariaDB in their repositories according to their own schedule, which we have no control over. Because of this, the version of MariaDB 5.5 in the CentOS/RHEL base
repository may be a few versions out of date compared to what you will find in the MariaDB repositories.
With a MariaDB 5.5 /etc/yum.repos.d/mariadb.repo
file in place, you can see all of the MariaDB 5.5 versions currently available from both the MariaDB repositories and the CentOS base repository:
[buildbot@centos74-amd64 ~]$ sudo yum list --showduplicates mariadb-server Available Packages MariaDB-server.x86_64 5.5.60-1.el7.centos mariadb MariaDB-server.x86_64 5.5.61-1.el7.centos mariadb MariaDB-server.x86_64 5.5.62-1.el7.centos mariadb mariadb-server.x86_64 1:5.5.60-1.el7_5 base
So currently (Jan 2019) in the MariaDB 5.5 repository MariaDB 5.5.60, 5.5.61, and 5.5.62 are available; and in the CentOS base
repository only MariaDB 5.5.60 is available.
As to why there is no mariadb.service
file, that is because that is something CentOS/RedHat add to their mariadb-server 5.5.x packages. We only include a mariadb.service systemd file for CentOS 7 (located at /usr/lib/systemd/system/mariadb.service
) for our MariaDB 10.1 and higher packages.