Check RPM dependencies

In fact that’s not a one but four different questions :). *) First you can quickly list a downloaded package’s dependencies/requirements by using the following commands: $ rpm -qp mypackage.rpm –provides $ rpm -qp mypackage.rpm –requires *) Second, you can use yum utility in order to satisfy these (somewhat cryptic) dependencies automatically (assuming that all … Read more

On linux SUSE or RedHat, how do I load Python 2.7

Instructions to download source and install: https://www.python.org/download/ NOTE: You should check for the latest version of python 2.7.x, as it gets updated frequently. Currently (Oct 2017), the latest version is 2.7.14 though this comment will get old and new versions likely will be released every 6 months or so. wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz # Download tar xvfz … Read more

Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7

These steps are working on CentOS 6.5 so they should work on CentOS 7 too: (EDIT – exactly the same steps work for MariaDB 10.3 on CentOS 8) yum remove mariadb mariadb-server rm -rf /var/lib/mysql If your datadir in /etc/my.cnf points to a different directory, remove that directory instead of /var/lib/mysql rm /etc/my.cnf the file … Read more