[root@localhost2 ~]# yum search git
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
=============================================================== N/S Matched: git ===============================================================
emacs-git.noarch : Git version control system support for Emacs
emacs-git-el.noarch : Elisp source files for git version control system support for Emacs
git-all.noarch : Meta-package to pull in all git tools
git-cvs.noarch : Git tools for importing CVS repositories
git-daemon.x86_64 : Git protocol dæmon
git-email.noarch : Git tools for sending email
git-gui.noarch : Git GUI tool
git-svn.noarch : Git tools for importing Subversion repositories
gitk.noarch : Git revision tree visualiser
gitweb.noarch : Simple web interface to git repositories
perl-Git.noarch : Perl interface to Git
cdparanoia.x86_64 : A Compact Disc Digital Audio (CDDA) extraction tool (or ripper).
dcraw.x86_64 : Tool for decoding raw image data from digital cameras
git.x86_64 : Fast Version Control System
icedax.x86_64 : A utility for sampling/copying .wav files from digital audio CDs
kacst-digital-fonts.noarch : Fonts for arabic from arabeyes project
libdc1394.i686 : 1394-based digital camera control library
libdc1394.x86_64 : 1394-based digital camera control library
libdv-tools.x86_64 : Basic tools to manipulate Digital Video streams
libgphoto2.x86_64 : Library for accessing digital cameras
libgphoto2.i686 : Library for accessing digital cameras
python-Coherence.noarch : Python framework to participate in digital living networks
xmlsec1-devel.i686 : Libraries, includes, etc. to develop applications with XML Digital Signatures and XML Encryption support.
xmlsec1-devel.x86_64 : Libraries, includes, etc. to develop applications with XML Digital Signatures and XML Encryption support.
Name and summary matches only, use "search all" for everything.
[root@localhost2 ~]# yum install git
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.1-9.el6_9 will be installed
--> Processing Dependency: perl-Git = 1.7.1-9.el6_9 for package: git-1.7.1-9.el6_9.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.1-9.el6_9.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.1-9.el6_9.x86_64
--> Running transaction check
---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
---> Package perl-Git.noarch 0:1.7.1-9.el6_9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================
Installing:
git x86_64 1.7.1-9.el6_9 base 4.6 M
Installing for dependencies:
perl-Error noarch 1:0.17015-4.el6 base 29 k
perl-Git noarch 1.7.1-9.el6_9 base 29 k
Transaction Summary
================================================================================================================================================
Install 3 Package(s)
Total download size: 4.7 M
Installed size: 15 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): git-1.7.1-9.el6_9.x86_64.rpm | 4.6 MB 00:02
(2/3): perl-Error-0.17015-4.el6.noarch.rpm | 29 kB 00:00
(3/3): perl-Git-1.7.1-9.el6_9.noarch.rpm | 29 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------
Total 442 kB/s | 4.7 MB 00:10
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:perl-Error-0.17015-4.el6.noarch 1/3
Installing : git-1.7.1-9.el6_9.x86_64 2/3
Installing : perl-Git-1.7.1-9.el6_9.noarch 3/3
Verifying : 1:perl-Error-0.17015-4.el6.noarch 1/3
Verifying : git-1.7.1-9.el6_9.x86_64 2/3
Verifying : perl-Git-1.7.1-9.el6_9.noarch 3/3
Installed:
git.x86_64 0:1.7.1-9.el6_9
Dependency Installed:
perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-9.el6_9
Complete!
[root@localhost2 ~]# git -v
Unknown option: -v
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[--help] COMMAND [ARGS]