Yum Error: Nothing to do
Whenever I try to install a package, I usually get this:
$ sudo yum install haskell-platform
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
No package haskell-platform available.
Error: Nothing to do
It happens for a variety of packages, including gcc-c++ which is kind of a problem.
What am I doing wrong?
Responses
Do you the repositories configured properly? If so, please run "yum repolist" and check. If that errors out then try to clean yum cache and populate the repository again using "yum clean all" and then "yum repolist".
Hi James,
Yes, it looks as if the "rhel-7-desktop-rpms" repository is configured correctly to be used on the system.
You should see something like this (or did you set the skip_if_unavailable=true option explicitly ?) :
This means that you don't get any error messages in case yum fails when you search for system updates.
$ sudo yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
!rhel-7-desktop-rpms/7Client/x86_64 Red Hat Enterprise Linux 7 Desktop (RPMs)
Execute sudo subscription-manager list to list subscription and product information for the system.
Execute sudo subscription-manager repos to list the repositories which the system is entitled to use.
Execute sudo subscription-manager repos --enable <repo> to enable those repos you want to use.
You can check in which repository a package is available here -> https://access.redhat.com/downloads/content/package-browser
Enable the matching repos, run sudo yum update and install ...
Cheers :)
Christian
James, you got the subscription for Desktop channel not for server channels and the packages which you were looking are mostly under "Server", this could be the reason why you were unable to install those packages.
Hence, you may need to activate proper subscription and then use "yum" to install packages as required. Otherwise, you may pull out required packages on a system which is subscribed (using "yumdownloader", available with yum-utils package) and then move them, or mount an ISO image of RHEL7.x and create a local repository and install packages.
How to enable/disable a repository using Red Hat Subscription Manager?
I hope this helps.
No James, these repositories are not for different RHEL editions, they are available for the system you have subscribed to. In those repositories are different packages ... so, when you want to install something, you eventually have to enable additional repositories. To gain access to more software packages, I generally recommend to add the extras and the optional repositories for example.
sudo subscription-manager repos --enable rhel-7-desktop-extras-rpmssudo subscription-manager repos --enable rhel-7-desktop-optional-rpms
Regards,
Christian
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
