Install PHP APC Cache on CentOS 7 using yum

To install APC cache on CentOS 7, run yum install php-pecl-apcu After that, you need to restart the Apache webserver. systemctl restart httpd in phpinfo() page, you will see Files in the packages are [root@localhost ~]# rpm -q –filesbypkg php-pecl-apcu php-pecl-apcu /etc/php-zts.d/40-apcu.ini php-pecl-apcu /etc/php.d/40-apcu.ini php-pecl-apcu /usr/lib64/php-zts/modules/apcu.so php-pecl-apcu /usr/lib64/php/modules/apcu.so php-pecl-apcu /usr/share/doc/pecl/apcu php-pecl-apcu /usr/share/doc/pecl/apcu/NOTICE php-pecl-apcu /usr/share/doc/pecl/apcu/README.md php-pecl-apcu … Read more

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

yum list all available packages in a repo

To list all packages available on a specific repo, run yum –disablerepo=”*” –enablerepo=”REPO_NAME_HERE” list available You can get list of all available repos with command yum repolist Example: yum –disablerepo=”*” –enablerepo=”litespeed” list available This command list all packages available in repo “litespeed”

rpmdb DB_RUNRECOVERY: Fatal error, run database recovery

When running yum update on a CentOS server, i get following error. [root@ip-172-30-0-39 ~]# yum update error: rpmdb: BDB0113 Thread/process 12797/46913889995840 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 – (-30973) error: cannot open Packages database … Read more

yum-config-manager

yum-config-manager allows you to manage yum repositories. To add a repo, run yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo Disable a repository yum-config-manager –disable rpmfusion-free-updates See yum

Fix yum duplicate packages

On a CentOS server, when running yum update It failed with following error acl-2.2.51-14.el7.x86_64 is a duplicate with acl-2.2.51-12.el7.x86_64 alt-libcurlssl-7.60.0-1.el7.x86_64 is a duplicate with alt-libcurlssl-7.54.0-8.el7.cloudlinux.x86_64 alt-php-config-1-29.1.el7.noarch is a duplicate with alt-php-config-1-27.el7.noarch alt-php44-4.4.9-88.el7.x86_64 is a duplicate with alt-php44-4.4.9-81.el7.x86_64 alt-php44-bcmath-4.4.9-88.el7.x86_64 is a duplicate with alt-php44-bcmath-4.4.9-81.el7.x86_64 https://gist.github.com/serverok/c0853120baff8848054cfb598e389c3a This is because previous “yum update” failed for some reason after … Read more

yum repolist

List all Repositories yum repolist List packages from a specific repo Following command disable all repos and enable EPEL repo. yum list available –disablerepo=* –enablerepo=epel See yum

yum

Some useful yum commands when installation fails or stopped halfway Red Hat Software Collections (RHSCL) Selectively enable yum repos yum commandsMaybe run: yum groups mark installyum reinstall a packageyum repolistYum disable a repositoryrpmyum-config-managerDownload RPM package from yum repositoryyum list all available packages in a repo yum errors

Maybe run: yum groups mark install

When installing CloudLinux alt-php group, i get error. [root@titan ~]# yum groupinstall alt-php Loaded plugins: fastestmirror, rhnplugin, universal-hooks This system is receiving updates from CLN. Loading mirror speeds from cached hostfile * EA4: 169.255.59.74 * cpanel-addons-production-feed: 169.255.59.74 * cloudlinux-x86_64-server-7: cl-mirror.fr.planethoster.net Maybe run: yum groups mark install (see man yum) No packages in any requested group … Read more