Install and configure GIT repositories on AIX systems using yum

Assuming you have configured YUM on AIX systems as posted here 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
 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

  git.ppc 0:2.8.1-1

  • Verifyng GIT binaries.
[root@aix:] rpm -qa|grep git
[[root@aix:]yum list git installed
Installed Packages
git.ppc                    2.8.1-1                          @AIX_Toolbox
[root@aix:/] rpm -ql git-2.8.1-1.ppc
  • 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


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:
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: Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s