Unable to install ansible on red hat 7 - ansible

Unable to install ansible. Error nothing to do package ansible not available . Red hat 7
Performed yum upadte
Installed epel package

Reading the docs is always a good first step.
http://docs.ansible.com/ansible/latest/intro_installation.html
We’ve changed how the Ansible community packages are distributed. For users of RHEL/CentOS/Scientific Linux version 7, the Ansible community RPM package will transition from the EPEL repository to the Extras channel. There will be no change for version 6 of RHEL/CentOS/Scientific Linux since Extras is not a part of version 6.

Related

Ansible 2.9.7 on RHEL 7.9 - Upgrade plan

Ansible 2.9.7 is running on RHEL 7.9 server.
We are planning to upgrade the Ansible to latest version.
As per documentation, there are many Ansible versions released after 2.9.7 and latest one is Ansible 7 (ansible-core and ansible).
Can you advise which version would be the appropriate one to upgrade from 2.9.7 on the existing RHEL 7.9 server ? Does latest Ansible versions support RHEL 7.9 ?
Can you advise which version would be the appropriate one to upgrade from 2.9.7 on the existing RHEL 7.9 server?
This will depend on your environment and capabilities.
... just like to note that within Enterprise Packages for Linux (EPEL) a version with bug fixes is available, Ansible v2.9.27.
~/test$ yum provides ansible
...
ansible-2.9.27-1.el7.noarch : SSH-based configuration management, deployment, and task execution system
Repo : EPEL-7
Does latest Ansible versions support RHEL 7.9?
Since it is written in Python it is somehow agnostic about the underlying OS, but it will depend on the Python version installed.
If you don't plan to install another Python environment and stay with the distributed version from the OS, Python 2.7, then you are bound up to Ansible v2.11. See Ansible Community Topic Issue #54.
~/test$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
~/test$ ansible --version
ansible [core 2.11.12]
config file = /home/user/test/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/home/user/.ansible/collections/ansible_collections']
ansible python module location = /home/user/.local/lib/python2.7/site-packages/ansible
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
executable location = /home/user/.local/bin/ansible
python version = 2.7.5 (default, May 27 2022, 11:27:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
jinja version = 2.11.3
libyaml = True
If you can install another Python environment you can use higher Ansible versions.
Please take note that certain modules, Ansible Galaxy, Collections, etc. may have own requirements and dependencies.
Further Documentation Links
Installing Ansible - Prerequisites (v2.9)
Installing Ansible - Requirements (latest)
Releases and maintenance (latest)

How to Install devtoolset 8 in RHEL 8 image

Please help me to install dev toolset-8 in rhel 8 image.
i have pulled the base image as below . I want to install devtoolset-8. is there any other way please let me know.
sudo docker pull registry.access.redhat.com/ubi8/ubi:8.2
According to that article, you can check if you have access to Red Hat Software Collections (RHSCL) by running the following command by the root user:
$ su -
# subscription-manager repos --list | egrep rhscl
If you have, enable necessary software repo and then install devtoolset:
# subscription-manager repos --enable rhel-7-server-optional-rpms
# yum install devtoolset-8
The other answer seems to be for RHEL 7.
On the RedHat site
Chrisian Labisch answered this with:
RHEL 8 doesn't work with Software Collections, RHEL 8 uses modules instead.
sudo dnf module list
In RHEL 8 you find the developer tools in the CodeReady Builder repository. :)
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
But even that seems to be unneeded because the system compiler version for RHEL is already GCC 8, so you would normally only need devtoolset-9 or up for it, if I understood the purpose correctly.
Additionally this blog post outlines the differences between the old SCL toolsets and the new AppStreams concept.
devtoolset is called gcc-toolset in RHEL8.
The following commands worked for me:
microdnf install -y gcc-toolset-12
scl enable gcc-toolset-12 bash
gcc --version
# gcc (GCC) 12.1.1 20220628 (Red Hat 12.1.1-3)

Trying to install epel-release on Fedora 30 -- no match for argument: epel-release

I'm on Fedora 30. I am trying to install "epel-release".
I am following this guide: https://www.phusionpassenger.com/library/install/standalone/install/oss/el7/ -- I am unable to successfully run the command:
$ sudo yum install -y epel-release yum-utils
I get as a result:
No match for argument: epel-release
So, I tried the following commands from this article: https://www.liquidweb.com/kb/enable-epel-repository/
$ cd /tmp
$ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ yum install ./epel-release-latest-*.noarch.rpm
No such luck - this is the output:
Error:
Problem: problem with installed package fedora-release-workstation-30-1.noarch
- package epel-release-7-11.noarch conflicts with fedora-release provided by fedora-release-workstation-30-1.noarch
- package epel-release-7-11.noarch conflicts with fedora-release provided by fedora-release-workstation-30-4.noarch
- conflicting requests
I have also tried:
$ sudo dnf install epel-relase
which that didn't work either, here's the results:
No match for argument: epel-release
Error: Unable to find a match
I have come across several different articles basically saying to either use the first command listed or variations of the second command I've tried - all unsuccessful. side note: Is this because Fedora 30 was just "recently" released?
My end goal is to deploy a Ruby on Rails web app internally using Nginx. For that, I am following this guide: https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/ownserver/nginx/oss/el7/deploy_app.html
Any direction for how to install epel-release would be great as I can't move forward until passenger is installed.
Note that EPEL is not suitable for use in Fedora! Fedora is not Enterprise Linux. EPEL provides "a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL)". Put simply, Enterprise Linux is a term that refers to Red Hat Enterprise Linux or one of its clones. And Fedora is not a Red Hat clone.
That is why you cannot install the "epel-release" package in Fedora. It simply does not exist. Don't try to use EPEL on Fedora.
As noted before, the Fedora repositories provide most (if not all) of the EPEL packages. Additional software for Fedora is available in the RPMFusion repositories. In their own words, RPMFusion is "an extension of Fedora" that "provides software that the Fedora Project or Red Hat doesn't want to ship." RPMFusion can not be used on Enterprise Linux. You could see RPMFusion as the "EPEL alternative" for Fedora, but be aware that the software collections provided by RPMFusion and EPEL are entirely unrelated and uncomparable.
EPEL is managed from within the Fedora project, and thus part of Red Hat. RPMFusion is an independent organization. You can consider their repositories reliable, but always be cautious when you install software from external sources.
Finally - on a sidenote - on recent Fedora versions, 'dnf' has replaced 'yum'.
Okay, so turns out that this can be simplified to just:
$ sudo dnf install passenger
Crazy that they have an entire tutorial for how to install passenger when it can just be simplified to this one line.
you'll need to install the EPEL (Extra Packages for Enterprise Linux) repository.
The EPEL project is run by the Fedora team.
When you install third-party repositories on Red Hat and CentOS systems.
Install in centos:
sudo yum install yum-plugin-priorities epel-release
When the installation completes, navigate to the /etc/yum.repos.d directory,
and open the CentOS-Base.repo file in your favorite text editor.
After the last line of the base, updates, and extras sections, add the line: priority=1.
After the last line of the centosplus section, add the line:
priority=2.
Save the file and close the editor.
Now, Open the epel.repo file for editing.
After the last line of the epel section,add the line:
priority=10.
After the last line of each remaining section, add the line:
priority=11.
Update the system and then create a list of the installed and available packages by running:
sudo yum upgrade
sudo yum list > yum_list.txt
For RHEL - dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Try with the above command to install epel-release in RHEL 8

Ansible Tower and Ansible Version

I have Ansible Tower Version of 2.4.5 and ansible version 2.1.1.
I wanted to Update Tower Version to 3.0.0 as Official Documentation says
Does anyone know if Updating Tower Version will require Ansible Version update too?
In you question you link to the latest version documentation, as per today you must upgrade the version of Ansible to 2.2 (at minimum) required to run Ansible Tower versions 3.2 and later.
In you case, you want to upgrade to the version 3.0.0:
You may refer to the Ansible Tower 3.0 Documentation.
In the Requirements documentation for version 3.0.0 it says:
While Ansible Tower depends on Ansible Playbooks and requires the
installation of the latest stable version of Ansible before installing
Tower, manual installations of Ansible are no longer required.
Beginning with Ansible Tower version 2.3, the Tower installation
program attempts to install Ansible as part of the installation
process. Previously, Tower required manual installations of the
Ansible software release package before running the Tower installation
program. Now, Tower attempts to install the latest stable Ansible
release package.
If performing a bundled tower installation, the installation program
attempts to install Ansible (and its dependencies) from the bundle for
you (refer to Using the Bundled Tower Installation Program for more
information).
If you choose to install Ansible on your own, the Tower installation
program will detect that Ansible has been installed and will not
attempt to reinstall it. Note that you must install Ansible using a
package manager like yum and that the latest stable version must be
installed for Ansible Tower to work properly.

how to update firefox on redhat via yum

I have firefox 3.0.12 on my redhat 5.8 and I'm trying to update it.
But, yum update firefox does not find and new version and keeps finding only 3.0.12
I have also tried updating yum itself.
I have also tried downloading firefox tgz, but I get a lot of dependency files missing. So going that route is very tedious and I'm finding it hard to download the dependent .so files.
How do I update using yum or is there a .rpm for firefox that I can download and install(I did not find one on the mozilla website)
If yum upgrade firefox does not report any possible updates, you probably do not have proper channels enabled (you are not subscribed into these). You should see rhel-x86_64-server-5 (depends on your architecture and RHEL variant - Server/Client...) in output of command yum repolist. If it is not there you have to register into RHN Classic (rhn.redhat.com) or your company's Red Hat Satellite or something else - depends on your company's policy.
If you have that channel available, upgrade to firefox-31.2.0-3.el5_11.x86_64 (which seems to be latest in RHEL5 channel) should be offered.
Firefox 3.0.12 is the latest version available in repository of 5.8 and so you are getting same. If you need the latest version then upgrade the OS itself or download the rpm manually and install with yum localinstall command.

Resources