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
Answer from thebtm on Stack Exchangeyum 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.
dnf install: "Unable to find a match" while package is listed in the repos ?
docker - dnf cannot install local rpm file: "No package matches" - Stack Overflow
linux - DNF missing config-manager command - Stack Overflow
How to yum install all available packages and ignore those that do not exist?
Hi everyone,
My Rocky Linux server is deployed on GCP.
An application I am trying to install requires the 'mod_auth_openidc' package.
Somehow a "dnf install mod_auth_openidc" outputs this:
output for "dnf install mod_auth_openidc"I was a little surprised by this and checked different mirrors, and all of them seemed to have the package available, for example:
http://dl.rockylinux.org/pub/rocky/8.5/AppStream/x86_64/os/Packages/m/
mod_auth_openidc is in the repos
Meanwhile, for example, mod_auth_gssapi, which appears on the screenshot above, is listed as available:
output for 'dnf info mod_auth_gssapi'Here's my appstream repo file, for reference.
My appstream repo fileCould anyone explain what is going on ?
sudo yum install dnf-plugins-core did the trick for me.
UPDATE: on el7, el8, el9 there is a better way
- when you try to execute
dnf config-manager -hit will tell you to trydnf install 'dnf-command(config-manager)'
# centos7
# rocky8
# rocky9
sudo dnf install 'dnf-command(config-manager)'
p.s. the high level solution is actually "try to execute the dnf config-manager -h and if the command fails then read the error message and try installing what the error message recommends".
$ sudo yum install yum-plugin-copr epel-release
Enable this repo
$ sudo yum copr enable ngompa/snapcore-el7
Install snapd
$ sudo yum install snapd
Enable snapd.socket
$ sudo systemctl enable --now snapd.socket
Install GNOME Software snap plugin, note that GNOME Software gets replaced in this step
$ sudo yum install gnome-software-snap
How do I run spotify...
run 'spotify' in your terminal Or search for the App in your applications
For more tips you can take a look at my Github repo: https://github.com/Winterhart/CentOS7-Setup
If I run yum install app1 app2 app3 and app1 & 2 is valid but 3 is invalid, yum command fails and none of them get installed.
How do I make it to install whatever is available?
Modern versions of yum (yum-3.4.3-133.el7+, ticket) provide two options that should help with this use-case:
skip_missing_names_on_install If set to False, 'yum install' will fail if it can't find any of the provided names (package, group, rpm file). Boolean (1, 0, True, False, yes, no). Defaults to True.
skip_missing_names_on_update If set to False, 'yum update' will fail if it can't find any of the provided names (package, group, rpm file). It will also fail if the provided name is a package which is available, but not installed. Boolean (1, 0, True, False, yes, no). Defaults to True.
Source: man-pages
Usage:
yum --setopt=skip_missing_names_on_install=False <commands-here>
Try using dnf instead of yum, it will fail if a package isn't available the way yum used to. On CentOS you can install it via:
yum -y install epel-release && \
yum -y install dnf
Then on a missing package you'll get an error:
dnf -y install foobar
Error: no package matched: foobar
WARNING: EPEL 7 DNF is very old and has issues to include security flaws. This appears to be the reason it was removed. That said here is the work around to get it working on Centos 7.
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf-0.6.4-2.sdl7.noarch.rpm
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64//dnf-0.6.4-2.sdl7.noarch.rpm
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/python-dnf-0.6.4-2.sdl7.noarch.rpm
yum install python-dnf-0.6.4-2.sdl7.noarch.rpm dnf-0.6.4-2.sdl7.noarch.rpm dnf-conf-0.6.4-2.sdl7.noarch.rpm
This will install dnf-0.6.4 on CentOS/7.
curl -OL https://raw.githubusercontent.com/tamama/repository/master/sh/tamama/node-provisioning/tamama-centos/7.3/setup.sh
sudo sh setup.sh
For me it's works, try this step-by-step:
sudo dnf update
sudo yum update
sudo dnf clean all
sudo yum clean all
and after this try to install package
So not sure if you managed to fix this, but what you are trying to do here is install .deb on CentOS.
What you probably want to do instead is look at CentOS-specific documentation for docker, they should give you the links needed for the .rpm package (the package format normally used by CentOS and other EL distros)