You only need 2 commands: Install epel and install git:
# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
or
# wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Then just:
#yum install git
i.e.
[root@ip-172-31-30-151 ~]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
--2014-08-14 15:45:32-- http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Resolving download.fedora.redhat.com... failed: Name or service not known.
wget: unable to resolve host address `download.fedora.redhat.com'
[root@ip-172-31-30-151 ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-xfer.VE4DbP: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
[root@ip-172-31-30-151 ~]# yum install git
Loaded plugins: amazon-id, fastestmirror, product-id, rhui-lb, security
Loading mirror speeds from cached hostfile
* epel: mirror.pnl.gov
* rhui-REGION-client-config-server-5: rhui2-cds01.us-west-2.aws.ce.redhat.com
* rhui-REGION-rhel-server: rhui2-cds01.us-west-2.aws.ce.redhat.com
epel | 3.7 kB 00:00
epel/primary_db | 4.0 MB 00:00
Excluding Packages from Red Hat Enterprise Linux Server 5 (RPMeng-gazzangs)
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.2.1-1.el5 set to be updated
--> Processing Dependency: perl-Git = 1.8.2.1-1.el5 for package: git
--> Processing Dependency: perl(Term::ReadKey) for package: git
--> Processing Dependency: perl(Git) for package: git
--> Processing Dependency: perl(Error) for package: git
--> Running transaction check
---> Package perl-Error.noarch 1:0.17010-1.el5 set to be updated
---> Package perl-Git.x86_64 0:1.8.2.1-1.el5 set to be updated
---> Package perl-TermReadKey.x86_64 0:2.30-4.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
git x86_64 1.8.2.1-1.el5 epel 7.4 M
Installing for dependencies:
perl-Error noarch 1:0.17010-1.el5 epel 26 k
perl-Git x86_64 1.8.2.1-1.el5 epel 49 k
perl-TermReadKey x86_64 2.30-4.el5 epel 32 k
Transaction Summary
=========================================================================================================================
Install 4 Package(s)
Upgrade 0 Package(s)
Total download size: 7.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): perl-Error-0.17010-1.el5.noarch.rpm | 26 kB 00:00
(2/4): perl-TermReadKey-2.30-4.el5.x86_64.rpm | 32 kB 00:00
(3/4): perl-Git-1.8.2.1-1.el5.x86_64.rpm | 49 kB 00:00
(4/4): git-1.8.2.1-1.el5.x86_64.rpm | 7.4 MB 00:01
-------------------------------------------------------------------------------------------------------------------------
Total 4.5 MB/s | 7.5 MB 00:01
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-TermReadKey 1/4
Installing : perl-Error 2/4
Installing : git 3/4
Installing : perl-Git 4/4
Installed:
git.x86_64 0:1.8.2.1-1.el5
Dependency Installed:
perl-Error.noarch 1:0.17010-1.el5 perl-Git.x86_64 0:1.8.2.1-1.el5 perl-TermReadKey.x86_64 0:2.30-4.el5
Complete!
[root@ip-172-31-30-151 ~]# git clone https://user@bitbucket.org/user/hardening.git
Cloning into 'hardening'...
Password for 'https://user@bitbucket.org':
remote: Counting objects: 191, done.
remote: Compressing objects: 100% (173/173), done.
remote: Total 191 (delta 79), reused 0 (delta 0)
Receiving objects: 100% (191/191), 31.29 KiB, done.
Resolving deltas: 100% (79/79), done.
[root@ip-172-31-30-151 ~]# ls
git-2.0.4.tar.xz hardening
[root@ip-172-31-30-151 ~]#
Enjoy!
.Alex
P.S. Is there a undiscovered flag?
# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
or
# wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Then just:
#yum install git
i.e.
[root@ip-172-31-30-151 ~]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
--2014-08-14 15:45:32-- http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Resolving download.fedora.redhat.com... failed: Name or service not known.
wget: unable to resolve host address `download.fedora.redhat.com'
[root@ip-172-31-30-151 ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-xfer.VE4DbP: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
[root@ip-172-31-30-151 ~]# yum install git
Loaded plugins: amazon-id, fastestmirror, product-id, rhui-lb, security
Loading mirror speeds from cached hostfile
* epel: mirror.pnl.gov
* rhui-REGION-client-config-server-5: rhui2-cds01.us-west-2.aws.ce.redhat.com
* rhui-REGION-rhel-server: rhui2-cds01.us-west-2.aws.ce.redhat.com
epel | 3.7 kB 00:00
epel/primary_db | 4.0 MB 00:00
Excluding Packages from Red Hat Enterprise Linux Server 5 (RPMeng-gazzangs)
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.2.1-1.el5 set to be updated
--> Processing Dependency: perl-Git = 1.8.2.1-1.el5 for package: git
--> Processing Dependency: perl(Term::ReadKey) for package: git
--> Processing Dependency: perl(Git) for package: git
--> Processing Dependency: perl(Error) for package: git
--> Running transaction check
---> Package perl-Error.noarch 1:0.17010-1.el5 set to be updated
---> Package perl-Git.x86_64 0:1.8.2.1-1.el5 set to be updated
---> Package perl-TermReadKey.x86_64 0:2.30-4.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
git x86_64 1.8.2.1-1.el5 epel 7.4 M
Installing for dependencies:
perl-Error noarch 1:0.17010-1.el5 epel 26 k
perl-Git x86_64 1.8.2.1-1.el5 epel 49 k
perl-TermReadKey x86_64 2.30-4.el5 epel 32 k
Transaction Summary
=========================================================================================================================
Install 4 Package(s)
Upgrade 0 Package(s)
Total download size: 7.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): perl-Error-0.17010-1.el5.noarch.rpm | 26 kB 00:00
(2/4): perl-TermReadKey-2.30-4.el5.x86_64.rpm | 32 kB 00:00
(3/4): perl-Git-1.8.2.1-1.el5.x86_64.rpm | 49 kB 00:00
(4/4): git-1.8.2.1-1.el5.x86_64.rpm | 7.4 MB 00:01
-------------------------------------------------------------------------------------------------------------------------
Total 4.5 MB/s | 7.5 MB 00:01
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-TermReadKey 1/4
Installing : perl-Error 2/4
Installing : git 3/4
Installing : perl-Git 4/4
Installed:
git.x86_64 0:1.8.2.1-1.el5
Dependency Installed:
perl-Error.noarch 1:0.17010-1.el5 perl-Git.x86_64 0:1.8.2.1-1.el5 perl-TermReadKey.x86_64 0:2.30-4.el5
Complete!
[root@ip-172-31-30-151 ~]# git clone https://user@bitbucket.org/user/hardening.git
Cloning into 'hardening'...
Password for 'https://user@bitbucket.org':
remote: Counting objects: 191, done.
remote: Compressing objects: 100% (173/173), done.
remote: Total 191 (delta 79), reused 0 (delta 0)
Receiving objects: 100% (191/191), 31.29 KiB, done.
Resolving deltas: 100% (79/79), done.
[root@ip-172-31-30-151 ~]# ls
git-2.0.4.tar.xz hardening
[root@ip-172-31-30-151 ~]#
Enjoy!
.Alex
P.S. Is there a undiscovered flag?
No hay comentarios:
Publicar un comentario