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

Upgrade python without breaking yum

I have written a quick guide on how to install the latest versions of Python 2 and Python 3 on CentOS 6 and CentOS 7. It currently covers Python 2.7.13 and Python 3.6.0: # Start by making sure your system is up-to-date: yum update # Compilers and related tools: yum groupinstall -y “development tools” # … Read more

Upgrading PHP on CentOS 6.5 (Final)

As Jacob mentioned, the CentOS packages repo appears to only have PHP 5.3 available at the moment. But these commands seemed to work for me… rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm yum remove php-common # Need to remove this, otherwise it conflicts yum install php56w yum install php56w-mysql yum install php56w-common yum install php56w-pdo yum install php56w-opcache php … Read more

How to list installed packages from a given repo using yum [closed]

Try yum list installed | grep reponame On one of my servers: yum list installed | grep remi ImageMagick2.x86_64 6.6.5.10-1.el5.remi installed memcache.x86_64 1.4.5-2.el5.remi installed mysql.x86_64 5.1.54-1.el5.remi installed mysql-devel.x86_64 5.1.54-1.el5.remi installed mysql-libs.x86_64 5.1.54-1.el5.remi installed mysql-server.x86_64 5.1.54-1.el5.remi installed mysqlclient15.x86_64 5.0.67-1.el5.remi installed php.x86_64 5.3.5-1.el5.remi installed php-cli.x86_64 5.3.5-1.el5.remi installed php-common.x86_64 5.3.5-1.el5.remi installed php-domxml-php4-php5.noarch 1.21.2-1.el5.remi installed php-fpm.x86_64 5.3.5-1.el5.remi installed php-gd.x86_64 … Read more

How to install packages in Linux (CentOS) without root user with automatic dependency handling?

It is possible to use yum and rpm to install any package in the repository of the distribution. Here is the recipe: Find the package name Use yum search. Download Download the package and all of its dependencies using yumdownloader (which is available on CentOS by default). You’ll need to pass it –resolve to get … Read more

yum error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” updating ContextBroker

You just needed to update ca-certificates package. Before that just disable all repos with https that are failing. That’s why solution with commenting mirrorlist or using http instead https would work also. For example if you need to disable only epel repo: yum –disablerepo=epel -y update ca-certificates This will also help wget, curl, and anything … Read more

How do I install Maven with Yum?

Icarus answered a very similar question for me. Its not using “yum”, but should still work for your purposes. Try, wget http://mirror.olnevhost.net/pub/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz basically just go to the maven site. Find the version of maven you want. The file type and use the mirror for the wget statement above. Afterwards the process is easy Run the … Read more

How to make rpm auto install dependencies

The link @gertvdijk provided shows a quick way to achieve the desired results without configuring a local repository: $ yum –nogpgcheck localinstall packagename.arch.rpm Just change packagename.arch.rpm to the RPM filename you want to install. Edit Just a clarification, this will automatically install all dependencies that are already available via system YUM repositories. If you have … Read more