which mysql # /usr/bin/mysqlrpm -qf /usr/bin/mysql # mariadb-5.5.65-1.el7.x86_64
List file from package
rpm -ql mariadb-5.5.65-1.el7.x86_64
Adding a new file (mariadb.repo) to /etc/yum.repos.d/ didn't work to install new package because I was using ppc64sudo yum install mariadb-server mariadb-client # still old package mariadb-5.5.65-1.el7.x86_64
sudo systemctl status mariadb # no mariadb.service
After uninstalling 10.5, changed to 10.4 in MariaDB repo
sudo yum update didn't work
Run yum clean all didn't work
Run yum clean expire-cache && yum update didn't work
Added metadata_expire=1m to MariaDB.repo and run yum clean all --verboseand sudo yum update
mariadb | 2.9 kB 00:00:00
Not using downloaded mariadb/repomd.xml because it is older than what we have:
Current : Tue May 12 01:06:13 2020
Downloaded: Tue May 12 00:23:17 2020
No packages marked for update
The same happens with:
$ yum --disablerepo=* --enablerepo=mariadb clean metadata -q; yum check-update --disablerepo=* --enablerepo=mariadb -q
Not using downloaded mariadb/repomd.xml because it is older than what we have:
Current : Tue May 12 01:06:13 2020
Downloaded: Tue May 12 00:23:17 2020
Run yum repolist
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,070
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,281
extras/7/x86_64 CentOS-7 - Extras 397
!mariadb MariaDB 89
yum clean metadata not working yum clean all not working
Delete /var/cache/yum/x86_64/mariadb/repomd.xmlmanually and run sudo yum update (probably also yum repolist)
rpm install package with query
rpm -qi file.rpm # sudo yum install package.name
To check which binary is installed from package
which mysql # /usr/bin/mysql
rpm -qf /usr/bin/mysql # mariadb-5.5.65-1.el7.x86_64
List file from package
rpm -ql mariadb-5.5.65-1.el7.x86_64
Adding a new file (mariadb.repo) to /etc/yum.repos.d/ didn't work to install new package because I was using
ppc64
sudo yum install mariadb-server mariadb-client
# still old packagemariadb-5.5.65-1.el7.x86_64
sudo systemctl status mariadb # no mariadb.service
$ rpm -qf /etc/yum.repos.d/Mariadb.repo
file /etc/yum.repos.d/Mariadb.repo is not owned by any package
$ rpm -qf /etc/yum.repos.d/CentOS-Base.repo
centos-release-7-8.2003.0.el7.centos.x86_64
man alternatives
https://www.humblec.com/file-is-not-owned-by-any-package-ahh-whats-wrong/After proper configuration
$ rpm -qf /usr/bin/mysql
MariaDB-client-10.5.3-1.el7.centos.x86_64
$ rpm -ql MariaDB-server |grep mysqld
So
rpm -ivh file.rpm
is addingYUM REPOSITORIES
and need to install them viasudo yum install
Uninstall MariaDB-client and MariaDB-server
https://phoenixnap.com/kb/centos-uninstall-remove-package
After uninstalling 10.5, changed to 10.4 in MariaDB repo
sudo yum update
didn't work Runyum clean all
didn't work Runyum clean expire-cache && yum update
didn't work Addedmetadata_expire=1m
to MariaDB.repo and runyum clean all --verbose
andsudo yum update
The same happens with:
Run
yum repolist
yum clean metadata
not workingyum clean all
not working Delete/var/cache/yum/x86_64/mariadb/repomd.xml
manually and runsudo yum update
(probably alsoyum repolist
)To install ack:
To install gcc or clang
https://developers.redhat.com/blog/2018/07/07/yum-install-gcc7-clang/
https://linuxize.com/post/how-to-install-gcc-compiler-on-centos-7/ https://www.softwarecollections.org/en/ https://gist.github.com/nchaigne/ad06bc867f911a3c0d32939f1e930a11
Will need also :
$ sudo yum install ncurses-devel
for MariaDB installationProblem with
gnutls
:$ yum install -y gnutls-devel
https://jira.mariadb.org/browse/MDEV-22552
Full rpm for mariadb https://mariadb.com/kb/en/source-building-mariadb-on-centos/+simple/dash/ https://mariadb.com/kb/en/building-mariadb-from-a-source-rpm/
mytop in MariaDB-client 10.5
To inspect rpm files (installed):
rpm -qlp rpmfile.rpm # -p option needed for inspecting besides listing
Literature:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-setting_repository_options
using
COMPONENT
https://stackoverflow.com/questions/9190098/for-cmakes-install-command-what-can-the-component-argument-do%config
https://cmake.org/Bug/view.php?id=12096Other issues