Can yum tell me which of my repositories provide a particular package?

yum list packagename That will show from which repository the package is in the third column of the output. For already installed packages, that won’t work, as the third column shows just installed. In that case you can do e.g. rpm -qi packagename, typically the Vendor, Packager and Build Host tags will give an indication … Read more

Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist

Try editing your dockerfile FROM centos RUN cd /etc/yum.repos.d/ RUN sed -i ‘s/mirrorlist/#mirrorlist/g’ /etc/yum.repos.d/CentOS-* RUN sed -i ‘s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g’ /etc/yum.repos.d/CentOS-* RUN yum -y install java CMD /bin/bash Refer to this code failed-metadata-repo-appstream-centos-8

Yum crashed with Keyboard Interrupt error

Because yum does not support Python3. You can run command vi /usr/bin/yum, change /usr/bin/python to /usr/bin/python2 in first line. Thus you can run the command yum by Python2 instead of Python3. Note however that this will make your setup unsupported and thus unmaintainable (as does what you did). You will likely have other similar problems … Read more

Duplicate Package – update / upgrade – Centos

For me it looks like you rebooted your computer (or it crashed) while you where in the process of upgrading packages. So new packages where installed, but old packages where not removed. First look if you have any uncomplete transactions with: yum-complete-transaction If this doesn’t help then take a look at the package-cleanup tool which … Read more

How to enable mysqlnd for php?

The ./configure command is part of the compilation process from source code. You can either compile from source or install via package manager. I guess in your case the package manager is preferable. As the package manager complains, you can’t have both php-mysql and php-mysqlnd installed. So you can yum remove php-mysql before yum install … Read more

How to install maven on redhat linux

Go to mirror.olnevhost.net/pub/apache/maven/binaries/ and check what is the latest tar.gz file Supposing it is e.g. apache-maven-3.2.1-bin.tar.gz, from the command line; you should be able to simply do: wget http://mirror.olnevhost.net/pub/apache/maven/binaries/apache-maven-3.2.1-bin.tar.gz And then proceed to install it. UPDATE: Adding complete instructions (copied from the comment below) Run command above from the dir you want to extract maven … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)