What is the best way to install python-pip and docker-compose?

Latest response

I have installed RHEL 7.4 and docker at the moment. I want to install docker-compose, but i could not find it in the repo. tried to install python-pip and did not find either.
I did some google search and looks like i need to register EPEL as repo, but my colleague said that is fedora repo and maybe not match what my RHEL 7.4 some stage.
Is centos version of docker-compose is better or i have to install from python source?
then using pip to install compose.

which way is better?

thanks in advance,

Kevin

Responses

This should be what you need to get to that repo.

sudo yum install epel-release

Hi Kevin,

EPEL is made for Red Hat and this is the way how to add EPEL to your software sources :
(replace 'server' with desktop or workstation in case you are using one of these editions)

sudo subscription-manager repos --enable rhel-7-server-extras-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-rpms

sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum update

It is generally recommended and safer to install software packages from the repositories.
So, all you'll need to do is just execute sudo yum install docker-compose. That's it ! :)

Regards,
Christian

I will save that for my own experimentation. Thanks.

You're welcome John !

Cheers :)
Christian

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.