Error message when run yum on Centos 7
Loaded plugins: fastestmirror
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
Your post indicates that you are using CentOS 7 but your code snippet implies you are actually using Red Hat Enterprise Linux.
RHEL does not ship with any usable package repositories by default. You don't need to update yum, you need to enable a software repository so you can use yum to download packages from it.
The proper way to resolve this is to either purchase a RHEL Subscription License to their Enterprise Software Repositories or sign up for a developer license, which is free with some small restrictions.
Alternatively, you can use this process to add the CentOS 7 repositories to RHEL 7. Which will allow you to get by for the most part.
Related
Is there a way to install gcc-g++ (for example) without subscription-manager ?
sudo yum upgrade gcc-c++
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register
.
You can create free account in RHN and register up to 15 machines for free.
Then (after register the machine) you can manage repos and install desired packages
I'm currently trying to install a web solution on a RHEL 8 distribution.
But I can't install apache2 (httpd) :
I search on Google but didn't find anything, and I didn't know RHEL, it's the first time
Thanks
Your issue is not httpd, the issue is you have to register your system into Red Hat. See these instructions.
there is a step-by-step to register your RHEL
System Registration from the command line
In the terminal window, start a root shell:
$ sudo bash
Next, register your system with Red Hat Subscription Management:
# subscription-manager register --auto-attach
Enter your Red Hat username and password. When registration has completed, you’ll see:
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
Check that you now have the BaseOS and AppStream repos enabled with yum repolist:
# yum repolist
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Install updates
Once your system has been registered, you can use the command line or web console to install the latest updates.
Updating from the command line
use yum update form within a Terminal session to install the latest updates.
$ sudo yum update
If an updated kernel package is installed during updates, you should reboot your system:
$ reboot
After that you can install httpd
# yum install -y httpd
PRO TIP.
Register yourself as developer in Red Hat an redhat give you a subscription if you don't have one.This tip is for self study purposes I don't encourage you to use a developer subscription for production.
Good journey.
Scenario: new installation of plesk 12.5 on centOS 7 into an OpenVZ container (proxmox):
Installing Plesk 12.5 I get the following error:
Exception: Failed to solve dependencies: 1:perl-JSON-XS-2.27-2.el6.x86_64 requires perl(:MODULE_COMPAT_5.10.1)
any tips?
You mention CentOS 7, but the package you are attempting to install (perl-JSON-XS-2.27-2.el6.x86_64) is for RedHat/CentOS 6, denoted by the el6 tag in the package name.
In any case, the issue appears to be due to not having the correct repositories available in yum to solve all necessary dependencies. Plesk maintains their own yum repositories to provide all of the necessary packages. Usually the install script will handle this for you (the install script is just a quick way to obtain the Plesk autoinstaller which should have the proper source repository configured).
I would suggest you examine the currently configured yum repositories in your container and make sure there are no conflicting repositories. Depending on the components you are installing with Plesk, it will want to manage nginx, apache, mysql, php, and some perl components so make sure you do not have yum repositories attempting to install related packages. Also, if you are indeed using CentOS 7, make sure you have no repositories attempting to install CentOS 6 packages. This bash one-liner should print out all the configured yum repository URLs so you can quickly scan if any are using the wrong version:
grep -re '^\(mirrorlist\|baseurl\)' /etc/yum.repos.d/
If you need further troubleshooting help, please include how you are attempting to install Plesk.
How to install rvm(ruby) on RHL7 using centos repo.
I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat.
when I try to install ruby 1.93 using rvm I got this:
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?
Our client does not have registered system with redhat, So I did configure centos repository.
But how can I tell RVM to use this centos repository?
I managed the problem running:
rvm autolibs read-only
In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.
RedHat uses the concept of software collection to offer update packages for Ruby, Python, etc:
softwarecollections
For your case, they have software collection for Ruby193 and Ruby22.
On each page you will find instructions on how to use it.
Trying to upgrade Red Hat Satellite 6 to 6.1
typing in this:
subscription-manager repos --disable rhel-6-server-satellite-6.0-rpms
is giving this:
Error: rhel-6-server-satellite-6.0-rpms is not a valid repository ID. Use --list option to see valid repositories.
I understand that you are following
Upgrade guide for Satellite 6 to 6.1
Are you using RHEL 6 or RHEL 7 to install Satellite? You could get this error if you use RHEL 7 and you are trying to change a RHEL 6 subscription
In order to see what respos are enabled:
# subscription-manager repos --list-enabled
To see all available repos do:
#$ subscription-manager repos --list
You should find your repo id there, if it is not, check the following
# subscription-manager list --consumed
And there should be one line with Red Hat Satellite Subscription somewhere if you have attached the subscription to your system