cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 548 Views

Installing Ansible

Ansible can be installed on RHEL in one of following ways:

yum install ansible-core

                 or

python3 -m pip install ansible

 

Question: Is the final outcome of the installation different in any way, when using yum vs the python pip tool?  Or does it just amount to 2 different ways to achieve the same thing?

 

Trevor "Red Hat Evangelist" Chandler
Labels (4)
4 Replies
Blue_bird
Flight Engineer
Flight Engineer
  • 526 Views

While both YUM and pip can be used to install packages, they target different scopes and have different outcomes in terms of system-wide vs. user-specific installations.

YUM is a system-level package manager, installing packages that are integrated into the operating system and accessible to all users.

Pip, on the other hand, is primarily used for installing Python packages, either for a specific user or within a virtual environment, isolating them from the rest of the system.

Thanks

Trevor
Starfighter Starfighter
Starfighter
  • 522 Views

So Blue_bird, based on the example command that I show in my original post,

                 #  python3 -m pip install ansible

which specific user is the ansible package being installed for?

Trevor "Red Hat Evangelist" Chandler
Blue_bird
Flight Engineer
Flight Engineer
  • 521 Views

root user...right ?

  • 190 Views

Consider; by installing as root, you will have to manually change the permissions in the Python directory you installed all the Python packages as root in, so everyone can use them. Then you will have to figure out where else on the OS python is using shared files like library files such as gcc and or glibc, etc. You may end up with a huge mess on your hands doing it this way. You can setup modules by installing lmod and configuring the applications environments, but it is a lot of manual work, but in the end it would help manage all the required libraries and other shared files needed for the multiple applications that are available in Python.

Being optimistic is fine, but consider the complexities of what you are diving into.

__PRESENT__PRESENT

Join the discussion
You must log in to join this conversation.