Install and configure GIT repositories on AIX systems using yum

Assuming you have configured YUM on AIX systems as posted here http://wp.me/p5bweg-7f. Let’s install GIT packages from IBM’s repositories.

  • Install GIT packages using yum.
[root@aix:] yum search git
========================================================================================= N/S Matched: git ==========================================================================================
git.ppc : Core git tools
git-arch.ppc : Git tools for importing Arch repositories
git-cvs.ppc : Git tools for importing CVS repositories
git-daemon.ppc : Git protocol d▒mon
git-email.ppc : Git tools for sending email
git-gui.ppc : Git GUI tool
git-svn.ppc : Git tools for importing Subversion repositories
gitk.ppc : Git revision tree visualiser
gitweb.ppc : Simple web interface to git repositories
perl-Git.ppc : Perl interface to Git

  Name and summary matches only, use "search all" for everything.

In this case, we’re going to install “git.ppc : Core git tools” package.

[root@aix:] yum install git

Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.ppc 0:2.8.1-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================================
 Package                                     Arch                                        Version                                           Repository                                           Size
=====================================================================================================================================================================================================
Installing:
 git                                         ppc                                         2.8.1-1                                           AIX_Toolbox                                          10 M

Transaction Summary
=====================================================================================================================================================================================================
Install       1 Package

Total size: 10 M
Installed size: 396 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : git-2.8.1-1.ppc                                                                                                                                                                   1/1

Installed:
  git.ppc 0:2.8.1-1

Complete!
  • Verifyng GIT binaries.
[root@aix:] rpm -qa|grep git
git-2.8.1-1.ppc
[[root@aix:]yum list git installed
Installed Packages
git.ppc                    2.8.1-1                          @AIX_Toolbox
[root@aix:]
[root@aix:/] rpm -ql git-2.8.1-1.ppc
/opt/freeware/bin/git
/opt/freeware/bin/git-receive-pack
/opt/freeware/bin/git-shell
/opt/freeware/bin/git-upload-archive
/opt/freeware/bin/git-upload-pack
/opt/freeware/doc/git-2.8.1
...
...
...
  • Create a new GIT repository.

NOTES: All repositories will be created under /var/www/git directory owned by apache     user/group.

[root@aix: ]  cd /var/www/git

[root@aix: /var/www/git]  mkdir /gitrepo

[root@aix: /var/www/git] cd /gitrepo/

[root@aix: /var/www/git/gitrepo] git --bare init
Initialized empty Git repository in /gitrepo/

[root@aix: /var/www/git/gitrepo] git update-server-info

[root@aix: /var/www/git/gitrepo] chown -R apache:apache .

[root@aix: /var/www/git/gitrepo] ls -ltra
total 48
drwxr-xr-x   69 root     system         8192 Feb 15 09:20 ..
drwxr-xr-x    2 apache   apache          256 Feb 15 09:20 branches
drwxr-xr-x    4 apache   apache          256 Feb 15 09:20 refs
-rw-r--r--    1 apache   apache           73 Feb 15 09:20 description
drwxr-xr-x    2 apache   apache         4096 Feb 15 09:20 hooks
-rw-r--r--    1 apache   apache           23 Feb 15 09:20 HEAD
-rw-r--r--    1 apache   apache           66 Feb 15 09:20 config
drwxr-xr-x    7 apache   apache          256 Feb 15 09:20 .
drwxr-xr-x    4 apache   apache          256 Feb 15 09:20 objects
drwxr-xr-x    2 apache   apache          256 Feb 15 09:20 info
  • Cofngure Apache HTTPD server as frontend. Please go to post http://wp.me/p5bweg-bR

 

Advertisements

About igalvarez

More than 20 years experiences on IT industry. 20+ years in Unix experience : IBM-AIX, HMC/SDMC/IVM, SVC, Protectier, PureFlex Systems, VIOservers, IBM Bladecenters, IBM System Power, RedHat Linux, SuSE Linux, Debian/Ubuntu Linux. Solaris, SCO Unix, Tru64 Unix, Linux Virtualization: XEN, KVM, databases sb2, oracle, postgreSQL, Find more information here: http://en.gravatar.com/igalvarez
This entry was posted in AIX, GIT, yum and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s