Failed to install yum on RHEL

I am in the new RHEL system.

It seems I can not install any package through yum install.

yum install nmap

Current repositories in

ls /etc/yum.repos.d/
google-chrome.repo  redhat.repo         rhel-source.repo

What could be wrong?

YUM DEVICE OUTPUT:

$ sudo yum install nmap
[sudo] password for user: 
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package nmap available.
Error: Nothing to do
+5
source share
4 answers

Red Hat does not use the /etc/yum.repos.d directory for official packages, so there will be no answer. He will use the subscription plugin located 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 not work quietly.

You can use the command subscription-manager listto get subscription information.

+8
source

Centos did it for you.

repo /etc/yum.repos.d

vi /etc/yum.repos.d/myrepo.repo

:

[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

wq!

yum repolist

, ( nmap)

yum install nmap -y

!!!

+2

Try to “search” for the correct package name in repetitions using the yum list

yum list nmap

I think the correct package name and installation command:

yum install nmap.x86_64

You can also do "yum search somename"

0
source

If you have an OS image in your lab or anywhere, you can try this for some RPMS

vim /etc/yum.repos.d/rhel.repo
[rhel]
name=rhel
baseurl=http://172.25.5.25/osimages/rhel7.2_64bit
enabled=1
gpgcheck=0

Then do yum clean all

baseurl is the place where your OS image is available. No subscription required, it reuses your OS image

0
source

All Articles