yum install update makes no sense. You're trying to install a package named "update".
Unlike apt with yum/dnf you normally don't need to update the packages database - yum/dnf does that automatically.
Simply run yum install package_name and you're good to go. If you don't know the exact name of a package, you could search for it using yum search something.
If you want to update all the packages in the system you simply run yum update.
Here's a nice guide how to install all the LAMP packages: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7
Answer from Artem S. Tashkinov on Stack Exchangefedora - dnf and yum: can not find package - Unix & Linux Stack Exchange
linux - Error: Unable to find a match phpmyadmin when i try to install phpmyadmin on centos - Stack Overflow
[Question] Can't install specific yum package in clean Redhat Docker image?
Yum and dnf not find any package
yum repolist will display the active repo list, I suspect the packages your looking for are not in the base/update/extras repositories and you may need to add additional repositories.
A good way to find out is to google search the package your looking for to get an idea of repository you need to have setup or install.
A lot of repositories do have a RPM file that will install the repository for your or a "how to" for adding the repository.
Examples below
Red Hat has made the documentation free to read
9.5.2. Setting [repository] Options
IUS repo setup
IUS Getting Started
yum repolist example:
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
* base: mirror.its.sfu.ca
* extras: mirror.it.ubc.ca
* updates: centos.mirror.rafal.ca
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): base/7/x86_64/group_gz | 166 kB 00:00:00
(2/4): extras/7/x86_64/primary_db | 150 kB 00:00:00
(3/4): updates/7/x86_64/primary_db | 3.6 MB 00:00:00
(4/4): base/7/x86_64/primary_db | 5.9 MB 00:00:01
repo id repo name status
base/7/x86_64 CentOS-7 - Base 9911
extras/7/x86_64 CentOS-7 - Extras 314
updates/7/x86_64 CentOS-7 - Updates 946
repolist: 11171
Have you tried yum search packageName ?
I have seen similar behavior from two other causes, DNS is not working or the cache is corrupted.
On that machine can you ping a host by name? i.e. ping google.com ?
If that works, try a yum clean all and then try to install your package when it is done.
You need to install epel repository to be accessible by yum
rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y update
yum -y install phpmyadmin
Despite trying all the solutions mentioned above, none of them worked for me. However, I was able to find a solution that worked after conducting further research.
In case any of the PHP stream from the "remi-modular" repository are enabled, it is possible to install phpMyAdmin from the "remi" non-modular repository.
# dnf module enable php:remi-7.4
# dnf --enablerepo=remi install phpMyAdmin
Hi everyone,
I'm messing around with trying to install MariaDb on Redhat. I'm starting from an empty Docker image (redhat/ubi8:latest) e and following the instructions here: https://mariadb.com/resources/blog/how-to-install-mariadb-on-rhel8-centos8/
When I get to the step:
sudo yum install perl-DBI libaio libsepol lsof boost-program-options
I get: Error: Unable to find a match: boost-program-options
I have tried adding this package repository that I found using Google: http://sodium.resophonic.com/boost-cmake/1.40.0.cmake0/
I did this with:
yum install -y yum-utils yum-config-manager --add-repo="http://sodium.resophonic.com/boost-cmake/1.40.0.cmake0/"
But then I get the following error:
Errors during downloading metadata for repository 'sodium.resophonic.com_boost-cmake_1.40.0.cmake0_': - Curl error (6): Couldn't resolve host name for http://sodium.resophonic.com/boost-cmake/1.40.0.cmake0/repodata/repomd.xml [Could not resolve host: sodium.resophonic.com] Error: Failed to download metadata for repo 'sodium.resophonic.com_boost-cmake_1.40.0.cmake0_': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
I've been at this for the good part of an hour, and couldn't understand how to fix this problem. Any help would be greatly appreciated. Thanks!
On CentOS, install those with the command:
sudo yum install exfat-utils fuse-exfat
You can see that those packages are hosted on nux-dextop repo:
`exfat-utils-1.0.1-1.el7.nux.x86_64 : Utilities for exFAT file system
Repo : nux-dextop
fuse-exfat-1.0.1-1.el7.nux.x86_64 : Free exFAT file system implementation
Repo : nux-dextop`
If you don't have this repo yet, just add it first. Look in http://li.nux.ro/repos.html for the current version. And note that it also depends on epel-release.
yum -y install epel-release http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
Install packages using
sudo yum install -y exfatprogs
Then you can make the partition with exfat file system
sudo mkfs.exfat /dev/sdb1
Centos has done it for you.
Create a repo file in /etc/yum.repos.d as
vi /etc/yum.repos.d/myrepo.repo
Then paste this in this file:
[centos]
name=CentOS-7
baseurl=http://ftp.heanet.ie/pub/centos/7/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://ftp.heanet.ie/pub/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
Saving it with wq! now run
yum repolist
Check if you can install any package (say nmap)
yum install nmap -y
Enjoy!!!
Red Hat doesn't use the /etc/yum.repos.d directory for official packages so the answer won't be in there. It will use the subscription plugin placed in /etc/yum/pluginconf.d.
You mentioned that the RHEL host is new. You will need to make sure your subscription is valid or yum will fail silently.
You can use the subscription-manager list command to gain info regarding subscriptions.