Trying to install Git on RHEL7 Server
I am trying to install git on the RHEL7 server but we are getting the following error:
[root@rhel73 ~]# yum install devtoolset-2-vc
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package devtoolset-2-vc available.
Error: Nothing to do
[root@rhel73 ~]#
Can someone please add some input to this
Responses
Git is available from the rhel-7-server-rpms repo:
yum provides git
Loaded plugins: changelog, langpacks, product-id, search-disabled-repos, subscription-manager
git-1.8.3.1-4.el7.x86_64 : Fast Version Control System
Repo : rhel-7-server-rpms
git-1.8.3.1-5.el7.x86_64 : Fast Version Control System
Repo : rhel-7-server-rpms
git-1.8.3.1-6.el7.x86_64 : Fast Version Control System
Repo : rhel-7-server-rpms
git-1.8.3.1-6.el7_2.1.x86_64 : Fast Version Control System
Repo : rhel-7-server-rpms
git-1.8.3.1-6.el7_2.1.x86_64 : Fast Version Control System
Repo : @rhel-7-server-rpms
If you wanna install just git, you could do it by installing the package called git from the rhel-7-server-rpms repo. To check if this repo is enabled review the output of the command yum repolist enabled.
Ensure rhel-server-rhscl-7-rpms repository is enabled. A newer devtoolset-3 is available to yum install.
More about devtoolset-3
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
