Yum Error Operation too slow

When i did yum update on a CloudLinux server, i get following error error was [Errno 12] Timeout on https://cl-mirror.dewabiz.com/XMLRPC/GET-REQ/cloudlinux-x86_64-server-7/repodata/filelists.xml.gz: (28, ‘Operation too slow. Less than 1000 bytes/sec transferred the last 120 seconds’) This is because server is unable to connect to one of the yum mirrors. To fix this, we need to disable the … Read more

yum fix duplicate package error

When installing a package, i get following error Protected multilib versions: 1:systemd-libs-219-78.el7.cloudlinux.i686 != 1:systemd-libs-219-78.el7_9.2.cloudlinux.x86_64 To fix, remove the conflicting package with rpm -e –nodeps –justdb systemd-libs See yum, Fix yum duplicate packages

Red Hat Killing CentOS Linux, Fight for CentOS clone

RedHat, parent company of CentOS Linux announce it will stop supporting CentOS 8, the latest version of CentOS. CentOS is build from the source code RHEL, making a free version of stable and well-tested enterprise ready RHEL Linux. CentOS 7 will keep getting security updates until it reaches End Of Life June 30th, 2024. For … Read more

CentOS 6 Invalid release/repo/arch combination

When i run yum update on a CentOS 6 server, i get error “Invalid release/repo/arch combination/”. This error is due to CentOS reaching its End Of Life and no longer supported. What you need to do is upgrade your server to the latest supported CentOS versions like CentOS 7 or CentOS 8. Converting to Oracle … Read more

Install Xfce VNC remote desktop on CentOS 7

xfce remote desktop

Xfce is a lightweight linux desktop environment. You can install Xfce on a remote server or virtual machine, connect to it using VNC to use it as a desktop. To install Xfce, enable EPEL repo yum install -y epel-release Install Xfce yum groupinstall Xfce You can see other groups available with command “yum grouplist”. Insall … Read more

Disable SELinux on CentOS/RHEL

To disable SELinux Method 1 sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config setenforce 0 Method 2 edit file vi /etc/selinux/config Find SELINUX=enforcing Replace with SELINUX=disabled Reboot the server with reboot You can disable selinux for current session by running command setenforce 0 See SELinux

Install Latest MariaDB on CentOS

MariaDB install CentOS

To install the latest MariaDB on the CentOS server, go to https://mariadb.org/download/?t=repo-config On this page, select CentOS, then select your CentOS version and MariaDB version you need. Below you will see instructions for your specific version of CentOS. Install MariaDB 10.5 on CentOS 7 CentOS 7 by default provide MariaDB 5.5. To install MariaDB 10.5 … Read more

Prometheus init script for CentOS 6

Create init file. touch /etc/rc.d/init.d/prometheus chmod 755 /etc/rc.d/init.d/prometheus vi /etc/rc.d/init.d/prometheus Add following #!/bin/bash # # /etc/rc.d/init.d/prometheus # # Prometheus monitoring server # # chkconfig: 2345 20 80 Read # description: Prometheus monitoring server # processname: prometheus # Source function library. . /etc/rc.d/init.d/functions PROGNAME=prometheus PROG=/usr/hostonnet/prometheus/$PROGNAME USER=prometheus LOGFILE=/var/log/prometheus.log DATADIR=/usr/hostonnet/prometheus/data LOCKFILE=/var/run/$PROGNAME.pid CONFIG_FILE=/usr/hostonnet/prometheus/prometheus.yml ALERT_MGR_URL=localhost:9093 start() { echo -n “Starting … Read more

Install PHP 5.6 on CentOS 7

To install PHP 5.6 on CentOS 7, enable EPEL repo and remi repo yum install epel-release -y rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-7.rpm Install yum-utils and enable remi-php56 repo yum install yum-utils yum-config-manager –enable remi-php56 Install PHP 5.6 with yum install -y php php-bcmath php-cli php-common php-devel php-gd \ php-imap php-intl php-json php-ldap php-lz4 php-mbstring php-mysqlnd \ php-soap … Read more

yum commands

Install a software with yum yum install PKG_NAME Uninstall a software yum remove Example for installing php and GD yum install php php-gd When you need to update all install software, run yum update List all available software yum list available yum list available “software-name” List all installed software yum list installed See yum

EPEL – Extra Packages for Enterprise Linux

EPEL (Extra Packages for Enterprise Linux) provide additional software for CentOS and RHEL. You can find more information about EPEL at http://fedoraproject.org/wiki/EPEL On CentOS 7/8, you can enable EPEP repo with command yum instal epel-release Or just download rpm package from the site and install. RHEL/CentOS 6: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm RHEL/CentOS 7: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm … Read more