Linux安装Git

(1)下载git压缩文件,使用当前的用户yum安装git,先下载再安装,其中有一次需要输入Y

sudo yum install git-all

 服务器回应,其实除了安装git之外,也会安装其他需要的依赖文件

Loaded plugins: fastestmirror, langpacks
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
mysql-connectors-community                               | 2.5 kB     00:00
mysql-tools-community                                    | 2.5 kB     00:00
mysql57-community                                        | 2.5 kB     00:00
openlogic                                                | 1.3 kB     00:00
updates                                                  | 3.4 kB     00:00
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package git-all.noarch 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-6.el7_2.1 for package: git-all-1.8                                                                                .3.1-6.el7_2.1.noarch
--> Processing Dependency: gitk = 1.8.3.1-6.el7_2.1 for package: git-all-1.8.3.1                                                                                -6.el7_2.1.noarch
--> Processing Dependency: git-svn = 1.8.3.1-6.el7_2.1 for package: git-all-1.8.                                                                                3.1-6.el7_2.1.noarch
--> Processing Dependency: git-p4 = 1.8.3.1-6.el7_2.1 for package: git-all-1.8.3                                                                                .1-6.el7_2.1.noarch
--> Processing Dependency: git-gui = 1.8.3.1-6.el7_2.1 for package: git-all-1.8.                                                                                3.1-6.el7_2.1.noarch
--> Processing Dependency: git-email = 1.8.3.1-6.el7_2.1 for package: git-all-1.                                                                                8.3.1-6.el7_2.1.noarch
--> Processing Dependency: git-cvs = 1.8.3.1-6.el7_2.1 for package: git-all-1.8.                                                                                3.1-6.el7_2.1.noarch
--> Processing Dependency: git = 1.8.3.1-6.el7_2.1 for package: git-all-1.8.3.1-                                                                                6.el7_2.1.noarch
--> Processing Dependency: emacs-git = 1.8.3.1-6.el7_2.1 for package: git-all-1.                                                                                8.3.1-6.el7_2.1.noarch
--> Running transaction check
---> Package emacs-git.noarch 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: emacs(bin) >= 24.3 for package: emacs-git-1.8.3.1-6.e                                                                                l7_2.1.noarch
---> Package git.x86_64 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-6.el7_2.                                                                                1.x86_64
--> Processing Dependency: perl(Error) for package: git-1.8.3.1-6.el7_2.1.x86_64
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git-1.8.3                                                                                .1-6.el7_2.1.x86_64
---> Package git-cvs.noarch 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: perl-DBD-SQLite for package: git-cvs-1.8.3.1-6.el7_2.                                                                                1.noarch
--> Processing Dependency: perl(Data::Dumper) for package: git-cvs-1.8.3.1-6.el7                                                                                _2.1.noarch
--> Processing Dependency: perl(DBI) for package: git-cvs-1.8.3.1-6.el7_2.1.noar                                                                                ch
--> Processing Dependency: cvsps for package: git-cvs-1.8.3.1-6.el7_2.1.noarch
--> Processing Dependency: cvs for package: git-cvs-1.8.3.1-6.el7_2.1.noarch
---> Package git-email.noarch 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: perl(Net::SMTP::SSL) for package: git-email-1.8.3.1-6                                                                                .el7_2.1.noarch
--> Processing Dependency: perl(Authen::SASL) for package: git-email-1.8.3.1-6.e                                                                                l7_2.1.noarch
---> Package git-gui.noarch 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: tk >= 8.4 for package: git-gui-1.8.3.1-6.el7_2.1.noar                                                                                ch
---> Package git-p4.noarch 0:1.8.3.1-6.el7_2.1 will be installed
---> Package git-svn.x86_64 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: subversion for package: git-svn-1.8.3.1-6.el7_2.1.x86                                                                                _64
--> Processing Dependency: perl(Git::SVN::Utils) for package: git-svn-1.8.3.1-6.                                                                                el7_2.1.x86_64
--> Processing Dependency: perl(Git::SVN::Ra) for package: git-svn-1.8.3.1-6.el7                                                                                _2.1.x86_64
--> Processing Dependency: perl(Git::SVN::Prompt) for package: git-svn-1.8.3.1-6                                                                                .el7_2.1.x86_64
--> Processing Dependency: perl(Git::SVN::Migration) for package: git-svn-1.8.3.                                                                                1-6.el7_2.1.x86_64
--> Processing Dependency: perl(Git::SVN::Log) for package: git-svn-1.8.3.1-6.el                                                                                7_2.1.x86_64
--> Processing Dependency: perl(Git::SVN::Fetcher) for package: git-svn-1.8.3.1-                                                                                6.el7_2.1.x86_64
--> Processing Dependency: perl(Git::SVN::Editor) for package: git-svn-1.8.3.1-6                                                                                .el7_2.1.x86_64
--> Processing Dependency: perl(Git::SVN) for package: git-svn-1.8.3.1-6.el7_2.1                                                                                .x86_64
--> Processing Dependency: perl(Digest::MD5) for package: git-svn-1.8.3.1-6.el7_                                                                                2.1.x86_64
---> Package gitk.noarch 0:1.8.3.1-6.el7_2.1 will be installed
---> Package perl-Git.noarch 0:1.8.3.1-6.el7_2.1 will be installed
--> Running transaction check
---> Package cvs.x86_64 0:1.11.23-35.el7 will be installed
---> Package cvsps.x86_64 0:2.2-0.14.b1.el7 will be installed
---> Package emacs-nox.x86_64 1:24.3-18.el7 will be installed
--> Processing Dependency: emacs-common = 1:24.3-18.el7 for package: 1:emacs-nox                                                                                -24.3-18.el7.x86_64
---> Package libgnome-keyring.x86_64 0:3.8.0-3.el7 will be installed
---> Package perl-Authen-SASL.noarch 0:2.15-10.el7 will be installed
--> Processing Dependency: perl(GSSAPI) for package: perl-Authen-SASL-2.15-10.el                                                                                7.noarch
--> Processing Dependency: perl(Digest::HMAC_MD5) for package: perl-Authen-SASL-                                                                                2.15-10.el7.noarch
---> Package perl-DBD-SQLite.x86_64 0:1.39-3.el7 will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1                                                                                .627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1                                                                                .627-4.el7.x86_64
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-Digest-MD5.x86_64 0:2.52-3.el7 will be installed
--> Processing Dependency: perl(Digest::base) >= 1.00 for package: perl-Digest-M                                                                                D5-2.52-3.el7.x86_64
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Git-SVN.noarch 0:1.8.3.1-6.el7_2.1 will be installed
--> Processing Dependency: perl(YAML::Any) for package: perl-Git-SVN-1.8.3.1-6.e                                                                                l7_2.1.noarch
--> Processing Dependency: perl(SVN::Ra) for package: perl-Git-SVN-1.8.3.1-6.el7                                                                                _2.1.noarch
--> Processing Dependency: perl(SVN::Delta) for package: perl-Git-SVN-1.8.3.1-6.                                                                                el7_2.1.noarch
--> Processing Dependency: perl(SVN::Core) for package: perl-Git-SVN-1.8.3.1-6.e                                                                                l7_2.1.noarch
--> Processing Dependency: perl(SVN::Client) for package: perl-Git-SVN-1.8.3.1-6                                                                                .el7_2.1.noarch
---> Package perl-Net-SMTP-SSL.noarch 0:1.01-13.el7 will be installed
--> Processing Dependency: perl(IO::Socket::SSL) for package: perl-Net-SMTP-SSL-                                                                                1.01-13.el7.noarch
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
---> Package subversion.x86_64 0:1.7.14-10.el7 will be installed
--> Processing Dependency: subversion-libs(x86-64) = 1.7.14-10.el7 for package:                                                                                 subversion-1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_wc-1.so.0()(64bit) for package: subversion-1.7                                                                                .14-10.el7.x86_64
--> Processing Dependency: libsvn_subr-1.so.0()(64bit) for package: subversion-1                                                                                .7.14-10.el7.x86_64
--> Processing Dependency: libsvn_repos-1.so.0()(64bit) for package: subversion-                                                                                1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_ra_svn-1.so.0()(64bit) for package: subversion                                                                                -1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_ra_neon-1.so.0()(64bit) for package: subversio                                                                                n-1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_ra_local-1.so.0()(64bit) for package: subversi                                                                                on-1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_ra-1.so.0()(64bit) for package: subversion-1.7                                                                                .14-10.el7.x86_64
--> Processing Dependency: libsvn_fs_util-1.so.0()(64bit) for package: subversio                                                                                n-1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_fs_fs-1.so.0()(64bit) for package: subversion-                                                                                1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_fs_base-1.so.0()(64bit) for package: subversio                                                                                n-1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_fs-1.so.0()(64bit) for package: subversion-1.7                                                                                .14-10.el7.x86_64
--> Processing Dependency: libsvn_diff-1.so.0()(64bit) for package: subversion-1                                                                                .7.14-10.el7.x86_64
--> Processing Dependency: libsvn_delta-1.so.0()(64bit) for package: subversion-                                                                                1.7.14-10.el7.x86_64
--> Processing Dependency: libsvn_client-1.so.0()(64bit) for package: subversion                                                                                -1.7.14-10.el7.x86_64
--> Processing Dependency: libneon.so.27()(64bit) for package: subversion-1.7.14                                                                                -10.el7.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion-1.                                                                                7.14-10.el7.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion-1.7.14                                                                                -10.el7.x86_64
---> Package tk.x86_64 1:8.5.13-6.el7 will be installed
--> Processing Dependency: tcl = 1:8.5.13 for package: 1:tk-8.5.13-6.el7.x86_64
--> Processing Dependency: tcl >= 1:8.5.13-5 for package: 1:tk-8.5.13-6.el7.x86_                                                                                64
--> Processing Dependency: libtcl8.5.so()(64bit) for package: 1:tk-8.5.13-6.el7.                                                                                x86_64
--> Processing Dependency: libXft.so.2()(64bit) for package: 1:tk-8.5.13-6.el7.x                                                                                86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-3.el7 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package emacs-common.x86_64 1:24.3-18.el7 will be installed
--> Processing Dependency: liblockfile.so.1()(64bit) for package: 1:emacs-common                                                                                -24.3-18.el7.x86_64
---> Package libXft.x86_64 0:2.3.2-2.el7 will be installed
--> Processing Dependency: fontconfig >= 2.2-1 for package: libXft-2.3.2-2.el7.x                                                                                86_64
--> Processing Dependency: libfontconfig.so.1()(64bit) for package: libXft-2.3.2                                                                                -2.el7.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: libXft-2.3.2-2.                                                                                el7.x86_64
---> Package neon.x86_64 0:0.30.0-3.el7 will be installed
--> Processing Dependency: libpakchois.so.0()(64bit) for package: neon-0.30.0-3.                                                                                el7.x86_64
---> Package perl-Digest.noarch 0:1.17-245.el7 will be installed
---> Package perl-Digest-HMAC.noarch 0:1.03-5.el7 will be installed
--> Processing Dependency: perl(Digest::SHA) for package: perl-Digest-HMAC-1.03-                                                                                5.el7.noarch
---> Package perl-GSSAPI.x86_64 0:0.28-9.el7 will be installed
---> Package perl-IO-Socket-SSL.noarch 0:1.94-3.el7 will be installed
--> Processing Dependency: perl(Net::SSLeay) >= 1.21 for package: perl-IO-Socket                                                                                -SSL-1.94-3.el7.noarch
--> Processing Dependency: perl(IO::Socket::IP) >= 0.20 for package: perl-IO-Soc                                                                                ket-SSL-1.94-3.el7.noarch
--> Processing Dependency: perl(Net::SSLeay) for package: perl-IO-Socket-SSL-1.9                                                                                4-3.el7.noarch
--> Processing Dependency: perl(Net::LibIDN) for package: perl-IO-Socket-SSL-1.9                                                                                4-3.el7.noarch
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2                                                                                020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.202                                                                                0-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020                                                                                -14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-1                                                                                4.el7.noarch
---> Package perl-YAML.noarch 0:0.84-5.el7 will be installed
---> Package subversion-libs.x86_64 0:1.7.14-10.el7 will be installed
---> Package subversion-perl.x86_64 0:1.7.14-10.el7 will be installed
---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed
--> Running transaction check
---> Package fontconfig.x86_64 0:2.10.95-7.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10.                                                                                95-7.el7.x86_64
---> Package libXrender.x86_64 0:0.9.8-2.1.el7 will be installed
---> Package liblockfile.x86_64 0:1.08-17.el7 will be installed
---> Package pakchois.x86_64 0:0.4-10.el7 will be installed
---> Package perl-Digest-SHA.x86_64 1:5.85-3.el7 will be installed
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-                                                                                IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl                                                                                -IO-Compress-2.061-2.el7.noarch
---> Package perl-IO-Socket-IP.noarch 0:0.21-4.el7 will be installed
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
---> Package perl-Net-LibIDN.x86_64 0:0.12-15.el7 will be installed
---> Package perl-Net-SSLeay.x86_64 0:1.55-3.el7 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch       Version               Repository   Size
================================================================================
Installing:
 git-all                     noarch     1.8.3.1-6.el7_2.1     updates      24 k
Installing for dependencies:
 apr                         x86_64     1.4.8-3.el7           base        103 k
 apr-util                    x86_64     1.5.2-6.el7           base         92 k
 cvs                         x86_64     1.11.23-35.el7        base        581 k
 cvsps                       x86_64     2.2-0.14.b1.el7       base         58 k
 emacs-common                x86_64     1:24.3-18.el7         base         20 M
 emacs-git                   noarch     1.8.3.1-6.el7_2.1     updates      48 k
 emacs-nox                   x86_64     1:24.3-18.el7         base        2.4 M
 fontconfig                  x86_64     2.10.95-7.el7         base        228 k
 fontpackages-filesystem     noarch     1.44-8.el7            base        9.9 k
 git                         x86_64     1.8.3.1-6.el7_2.1     updates     4.4 M
 git-cvs                     noarch     1.8.3.1-6.el7_2.1     updates     110 k
 git-email                   noarch     1.8.3.1-6.el7_2.1     updates      56 k
 git-gui                     noarch     1.8.3.1-6.el7_2.1     updates     235 k
 git-p4                      noarch     1.8.3.1-6.el7_2.1     updates      77 k
 git-svn                     x86_64     1.8.3.1-6.el7_2.1     updates     433 k
 gitk                        noarch     1.8.3.1-6.el7_2.1     updates     149 k
 libXft                      x86_64     2.3.2-2.el7           base         58 k
 libXrender                  x86_64     0.9.8-2.1.el7         base         25 k
 libgnome-keyring            x86_64     3.8.0-3.el7           base        109 k
 liblockfile                 x86_64     1.08-17.el7           base         21 k
 neon                        x86_64     0.30.0-3.el7          base        165 k
 pakchois                    x86_64     0.4-10.el7            base         14 k
 perl-Authen-SASL            noarch     2.15-10.el7           base         57 k
 perl-Compress-Raw-Bzip2     x86_64     2.061-3.el7           base         32 k
 perl-Compress-Raw-Zlib      x86_64     1:2.061-4.el7         base         57 k
 perl-DBD-SQLite             x86_64     1.39-3.el7            base        1.3 M
 perl-DBI                    x86_64     1.627-4.el7           base        802 k
 perl-Data-Dumper            x86_64     2.145-3.el7           base         47 k
 perl-Digest                 noarch     1.17-245.el7          base         23 k
 perl-Digest-HMAC            noarch     1.03-5.el7            base         16 k
 perl-Digest-MD5             x86_64     2.52-3.el7            base         30 k
 perl-Digest-SHA             x86_64     1:5.85-3.el7          base         58 k
 perl-Error                  noarch     1:0.17020-2.el7       base         32 k
 perl-GSSAPI                 x86_64     0.28-9.el7            base         59 k
 perl-Git                    noarch     1.8.3.1-6.el7_2.1     updates      53 k
 perl-Git-SVN                noarch     1.8.3.1-6.el7_2.1     updates      84 k
 perl-IO-Compress            noarch     2.061-2.el7           base        260 k
 perl-IO-Socket-IP           noarch     0.21-4.el7            base         35 k
 perl-IO-Socket-SSL          noarch     1.94-3.el7            base        113 k
 perl-Net-Daemon             noarch     0.48-5.el7            base         51 k
 perl-Net-LibIDN             x86_64     0.12-15.el7           base         28 k
 perl-Net-SMTP-SSL           noarch     1.01-13.el7           base        9.1 k
 perl-Net-SSLeay             x86_64     1.55-3.el7            base        285 k
 perl-PlRPC                  noarch     0.2020-14.el7         base         36 k
 perl-TermReadKey            x86_64     2.30-20.el7           base         31 k
 perl-YAML                   noarch     0.84-5.el7            base         84 k
 subversion                  x86_64     1.7.14-10.el7         base        1.0 M
 subversion-libs             x86_64     1.7.14-10.el7         base        921 k
 subversion-perl             x86_64     1.7.14-10.el7         base        798 k
 tcl                         x86_64     1:8.5.13-8.el7        base        1.9 M
 tk                          x86_64     1:8.5.13-6.el7        base        1.4 M

Transaction Summary
================================================================================
Install  1 Package (+51 Dependent packages)

Total download size: 39 M
Installed size: 139 M
Is this ok [y/d/N]: y
Downloading packages:
(1/52): apr-util-1.5.2-6.el7.x86_64.rpm                    |  92 kB   00:00
(2/52): apr-1.4.8-3.el7.x86_64.rpm                         | 103 kB   00:00
(3/52): cvsps-2.2-0.14.b1.el7.x86_64.rpm                   |  58 kB   00:00
(4/52): cvs-1.11.23-35.el7.x86_64.rpm                      | 581 kB   00:00
(5/52): emacs-git-1.8.3.1-6.el7_2.1.noarch.rpm             |  48 kB   00:00
(6/52): emacs-nox-24.3-18.el7.x86_64.rpm                   | 2.4 MB   00:00
(7/52): fontconfig-2.10.95-7.el7.x86_64.rpm                | 228 kB   00:00
(8/52): fontpackages-filesystem-1.44-8.el7.noarch.rpm      | 9.9 kB   00:00
(9/52): git-1.8.3.1-6.el7_2.1.x86_64.rpm                   | 4.4 MB   00:00
(10/52): git-all-1.8.3.1-6.el7_2.1.noarch.rpm              |  24 kB   00:00
(11/52): git-email-1.8.3.1-6.el7_2.1.noarch.rpm            |  56 kB   00:00
(12/52): git-gui-1.8.3.1-6.el7_2.1.noarch.rpm              | 235 kB   00:00
(13/52): git-p4-1.8.3.1-6.el7_2.1.noarch.rpm               |  77 kB   00:00
(14/52): git-cvs-1.8.3.1-6.el7_2.1.noarch.rpm              | 110 kB   00:00
(15/52): git-svn-1.8.3.1-6.el7_2.1.x86_64.rpm              | 433 kB   00:00
(16/52): gitk-1.8.3.1-6.el7_2.1.noarch.rpm                 | 149 kB   00:00
(17/52): libXft-2.3.2-2.el7.x86_64.rpm                     |  58 kB   00:00
(18/52): libXrender-0.9.8-2.1.el7.x86_64.rpm               |  25 kB   00:00
(19/52): libgnome-keyring-3.8.0-3.el7.x86_64.rpm           | 109 kB   00:00
(20/52): liblockfile-1.08-17.el7.x86_64.rpm                |  21 kB   00:00
(21/52): neon-0.30.0-3.el7.x86_64.rpm                      | 165 kB   00:00
(22/52): pakchois-0.4-10.el7.x86_64.rpm                    |  14 kB   00:00
(23/52): perl-Authen-SASL-2.15-10.el7.noarch.rpm           |  57 kB   00:00
(24/52): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm    |  32 kB   00:00
(25/52): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm     |  57 kB   00:00
(26/52): perl-DBD-SQLite-1.39-3.el7.x86_64.rpm             | 1.3 MB   00:00
(27/52): perl-DBI-1.627-4.el7.x86_64.rpm                   | 802 kB   00:00
(28/52): perl-Data-Dumper-2.145-3.el7.x86_64.rpm           |  47 kB   00:00
(29/52): perl-Digest-1.17-245.el7.noarch.rpm               |  23 kB   00:00
(30/52): perl-Digest-HMAC-1.03-5.el7.noarch.rpm            |  16 kB   00:00
(31/52): perl-Digest-MD5-2.52-3.el7.x86_64.rpm             |  30 kB   00:00
(32/52): perl-Digest-SHA-5.85-3.el7.x86_64.rpm             |  58 kB   00:00
(33/52): perl-Error-0.17020-2.el7.noarch.rpm               |  32 kB   00:00
(34/52): perl-GSSAPI-0.28-9.el7.x86_64.rpm                 |  59 kB   00:00
(35/52): perl-IO-Compress-2.061-2.el7.noarch.rpm           | 260 kB   00:00
(36/52): perl-IO-Socket-IP-0.21-4.el7.noarch.rpm           |  35 kB   00:00
(37/52): perl-IO-Socket-SSL-1.94-3.el7.noarch.rpm          | 113 kB   00:00
(38/52): perl-Net-Daemon-0.48-5.el7.noarch.rpm             |  51 kB   00:00
(39/52): perl-Net-LibIDN-0.12-15.el7.x86_64.rpm            |  28 kB   00:00
(40/52): perl-Net-SMTP-SSL-1.01-13.el7.noarch.rpm          | 9.1 kB   00:00
(41/52): perl-Net-SSLeay-1.55-3.el7.x86_64.rpm             | 285 kB   00:00
(42/52): perl-PlRPC-0.2020-14.el7.noarch.rpm               |  36 kB   00:00
(43/52): perl-Git-1.8.3.1-6.el7_2.1.noarch.rpm             |  53 kB   00:00
(44/52): perl-TermReadKey-2.30-20.el7.x86_64.rpm           |  31 kB   00:00
(45/52): perl-YAML-0.84-5.el7.noarch.rpm                   |  84 kB   00:00
(46/52): subversion-1.7.14-10.el7.x86_64.rpm               | 1.0 MB   00:00
(47/52): subversion-libs-1.7.14-10.el7.x86_64.rpm          | 921 kB   00:00
(48/52): emacs-common-24.3-18.el7.x86_64.rpm               |  20 MB   00:02
(49/52): subversion-perl-1.7.14-10.el7.x86_64.rpm          | 798 kB   00:00
(50/52): perl-Git-SVN-1.8.3.1-6.el7_2.1.noarch.rpm         |  84 kB   00:00
(51/52): tk-8.5.13-6.el7.x86_64.rpm                        | 1.4 MB   00:00
(52/52): tcl-8.5.13-8.el7.x86_64.rpm                       | 1.9 MB   00:00
--------------------------------------------------------------------------------
Total                                               13 MB/s |  39 MB  00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                         1/52
  Installing : apr-1.4.8-3.el7.x86_64                                                                                                                      2/52
  Installing : apr-util-1.5.2-6.el7.x86_64                                                                                                                 3/52
  Installing : 1:perl-Error-0.17020-2.el7.noarch                                                                                                           4/52
  Installing : perl-Digest-1.17-245.el7.noarch                                                                                                             5/52
  Installing : perl-Digest-MD5-2.52-3.el7.x86_64                                                                                                           6/52
  Installing : cvs-1.11.23-35.el7.x86_64                                                                                                                   7/52
  Installing : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                         8/52
  Installing : cvsps-2.2-0.14.b1.el7.x86_64                                                                                                                9/52
  Installing : 1:perl-Digest-SHA-5.85-3.el7.x86_64                                                                                                        10/52
  Installing : perl-Digest-HMAC-1.03-5.el7.noarch                                                                                                         11/52
  Installing : perl-YAML-0.84-5.el7.noarch                                                                                                                12/52
  Installing : perl-Net-SSLeay-1.55-3.el7.x86_64                                                                                                          13/52
  Installing : pakchois-0.4-10.el7.x86_64                                                                                                                 14/52
  Installing : neon-0.30.0-3.el7.x86_64                                                                                                                   15/52
  Installing : subversion-libs-1.7.14-10.el7.x86_64                                                                                                       16/52
  Installing : subversion-1.7.14-10.el7.x86_64                                                                                                            17/52
  Installing : subversion-perl-1.7.14-10.el7.x86_64                                                                                                       18/52
  Installing : libgnome-keyring-3.8.0-3.el7.x86_64                                                                                                        19/52
  Installing : perl-Git-1.8.3.1-6.el7_2.1.noarch                                                                                                          20/52
  Installing : git-1.8.3.1-6.el7_2.1.x86_64                                                                                                               21/52
  Installing : perl-Git-SVN-1.8.3.1-6.el7_2.1.noarch                                                                                                      22/52
  Installing : git-svn-1.8.3.1-6.el7_2.1.x86_64                                                                                                           23/52
  Installing : git-p4-1.8.3.1-6.el7_2.1.noarch                                                                                                            24/52
  Installing : perl-GSSAPI-0.28-9.el7.x86_64                                                                                                              25/52
  Installing : perl-Authen-SASL-2.15-10.el7.noarch                                                                                                        26/52
  Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                27/52
  Installing : libXrender-0.9.8-2.1.el7.x86_64                                                                                                            28/52
  Installing : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                          29/52
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                                                                                                  30/52
  Installing : fontconfig-2.10.95-7.el7.x86_64                                                                                                            31/52
  Installing : libXft-2.3.2-2.el7.x86_64                                                                                                                  32/52
  Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                 33/52
  Installing : perl-IO-Compress-2.061-2.el7.noarch                                                                                                        34/52
  Installing : perl-PlRPC-0.2020-14.el7.noarch                                                                                                            35/52
  Installing : perl-DBI-1.627-4.el7.x86_64                                                                                                                36/52
  Installing : perl-DBD-SQLite-1.39-3.el7.x86_64                                                                                                          37/52
  Installing : git-cvs-1.8.3.1-6.el7_2.1.noarch                                                                                                           38/52
  Installing : perl-Net-LibIDN-0.12-15.el7.x86_64                                                                                                         39/52
  Installing : perl-IO-Socket-IP-0.21-4.el7.noarch                                                                                                        40/52
  Installing : perl-IO-Socket-SSL-1.94-3.el7.noarch                                                                                                       41/52
  Installing : perl-Net-SMTP-SSL-1.01-13.el7.noarch                                                                                                       42/52
  Installing : git-email-1.8.3.1-6.el7_2.1.noarch                                                                                                         43/52
  Installing : liblockfile-1.08-17.el7.x86_64                                                                                                             44/52
  Installing : 1:emacs-common-24.3-18.el7.x86_64                                                                                                          45/52
  Installing : 1:emacs-nox-24.3-18.el7.x86_64                                                                                                             46/52
  Installing : emacs-git-1.8.3.1-6.el7_2.1.noarch                                                                                                         47/52
  Installing : 1:tcl-8.5.13-8.el7.x86_64                                                                                                                  48/52
  Installing : 1:tk-8.5.13-6.el7.x86_64                                                                                                                   49/52
  Installing : gitk-1.8.3.1-6.el7_2.1.noarch                                                                                                              50/52
  Installing : git-gui-1.8.3.1-6.el7_2.1.noarch                                                                                                           51/52
  Installing : git-all-1.8.3.1-6.el7_2.1.noarch                                                                                                           52/52
  Verifying  : 1:tcl-8.5.13-8.el7.x86_64                                                                                                                   1/52
  Verifying  : liblockfile-1.08-17.el7.x86_64                                                                                                              2/52
  Verifying  : subversion-perl-1.7.14-10.el7.x86_64                                                                                                        3/52
  Verifying  : perl-IO-Socket-IP-0.21-4.el7.noarch                                                                                                         4/52
  Verifying  : perl-IO-Compress-2.061-2.el7.noarch                                                                                                         5/52
  Verifying  : apr-1.4.8-3.el7.x86_64                                                                                                                      6/52
  Verifying  : perl-DBD-SQLite-1.39-3.el7.x86_64                                                                                                           7/52
  Verifying  : perl-Net-LibIDN-0.12-15.el7.x86_64                                                                                                          8/52
  Verifying  : emacs-git-1.8.3.1-6.el7_2.1.noarch                                                                                                          9/52
  Verifying  : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                 10/52
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                                                                                                  11/52
  Verifying  : gitk-1.8.3.1-6.el7_2.1.noarch                                                                                                              12/52
  Verifying  : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                          13/52
  Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                        14/52
  Verifying  : 1:tk-8.5.13-6.el7.x86_64                                                                                                                   15/52
  Verifying  : perl-Digest-MD5-2.52-3.el7.x86_64                                                                                                          16/52
  Verifying  : subversion-1.7.14-10.el7.x86_64                                                                                                            17/52
  Verifying  : git-svn-1.8.3.1-6.el7_2.1.x86_64                                                                                                           18/52
  Verifying  : git-email-1.8.3.1-6.el7_2.1.noarch                                                                                                         19/52
  Verifying  : cvs-1.11.23-35.el7.x86_64                                                                                                                  20/52
  Verifying  : perl-DBI-1.627-4.el7.x86_64                                                                                                                21/52
  Verifying  : libXrender-0.9.8-2.1.el7.x86_64                                                                                                            22/52
  Verifying  : perl-Authen-SASL-2.15-10.el7.noarch                                                                                                        23/52
  Verifying  : perl-Git-SVN-1.8.3.1-6.el7_2.1.noarch                                                                                                      24/52
  Verifying  : 1:emacs-common-24.3-18.el7.x86_64                                                                                                          25/52
  Verifying  : perl-YAML-0.84-5.el7.noarch                                                                                                                26/52
  Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                        27/52
  Verifying  : perl-Git-1.8.3.1-6.el7_2.1.noarch                                                                                                          28/52
  Verifying  : git-all-1.8.3.1-6.el7_2.1.noarch                                                                                                           29/52
  Verifying  : apr-util-1.5.2-6.el7.x86_64                                                                                                                30/52
  Verifying  : git-cvs-1.8.3.1-6.el7_2.1.noarch                                                                                                           31/52
  Verifying  : perl-Digest-HMAC-1.03-5.el7.noarch                                                                                                         32/52
  Verifying  : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                33/52
  Verifying  : perl-GSSAPI-0.28-9.el7.x86_64                                                                                                              34/52
  Verifying  : perl-Net-SMTP-SSL-1.01-13.el7.noarch                                                                                                       35/52
  Verifying  : 1:perl-Digest-SHA-5.85-3.el7.x86_64                                                                                                        36/52
  Verifying  : cvsps-2.2-0.14.b1.el7.x86_64                                                                                                               37/52
  Verifying  : libgnome-keyring-3.8.0-3.el7.x86_64                                                                                                        38/52
  Verifying  : perl-PlRPC-0.2020-14.el7.noarch                                                                                                            39/52
  Verifying  : pakchois-0.4-10.el7.x86_64                                                                                                                 40/52
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                                                                                                          41/52
  Verifying  : perl-Net-SSLeay-1.55-3.el7.x86_64                                                                                                          42/52
  Verifying  : 1:emacs-nox-24.3-18.el7.x86_64                                                                                                             43/52
  Verifying  : neon-0.30.0-3.el7.x86_64                                                                                                                   44/52
  Verifying  : subversion-libs-1.7.14-10.el7.x86_64                                                                                                       45/52
  Verifying  : git-p4-1.8.3.1-6.el7_2.1.noarch                                                                                                            46/52
  Verifying  : git-gui-1.8.3.1-6.el7_2.1.noarch                                                                                                           47/52
  Verifying  : fontconfig-2.10.95-7.el7.x86_64                                                                                                            48/52
  Verifying  : libXft-2.3.2-2.el7.x86_64                                                                                                                  49/52
  Verifying  : perl-IO-Socket-SSL-1.94-3.el7.noarch                                                                                                       50/52
  Verifying  : git-1.8.3.1-6.el7_2.1.x86_64                                                                                                               51/52
  Verifying  : perl-Digest-1.17-245.el7.noarch                                                                                                            52/52

Installed:
  git-all.noarch 0:1.8.3.1-6.el7_2.1

Dependency Installed:
  apr.x86_64 0:1.4.8-3.el7                              apr-util.x86_64 0:1.5.2-6.el7                   cvs.x86_64 0:1.11.23-35.el7
  cvsps.x86_64 0:2.2-0.14.b1.el7                        emacs-common.x86_64 1:24.3-18.el7               emacs-git.noarch 0:1.8.3.1-6.el7_2.1
  emacs-nox.x86_64 1:24.3-18.el7                        fontconfig.x86_64 0:2.10.95-7.el7               fontpackages-filesystem.noarch 0:1.44-8.el7
  git.x86_64 0:1.8.3.1-6.el7_2.1                        git-cvs.noarch 0:1.8.3.1-6.el7_2.1              git-email.noarch 0:1.8.3.1-6.el7_2.1
  git-gui.noarch 0:1.8.3.1-6.el7_2.1                    git-p4.noarch 0:1.8.3.1-6.el7_2.1               git-svn.x86_64 0:1.8.3.1-6.el7_2.1
  gitk.noarch 0:1.8.3.1-6.el7_2.1                       libXft.x86_64 0:2.3.2-2.el7                     libXrender.x86_64 0:0.9.8-2.1.el7
  libgnome-keyring.x86_64 0:3.8.0-3.el7                 liblockfile.x86_64 0:1.08-17.el7                neon.x86_64 0:0.30.0-3.el7
  pakchois.x86_64 0:0.4-10.el7                          perl-Authen-SASL.noarch 0:2.15-10.el7           perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7
  perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7           perl-DBD-SQLite.x86_64 0:1.39-3.el7             perl-DBI.x86_64 0:1.627-4.el7
  perl-Data-Dumper.x86_64 0:2.145-3.el7                 perl-Digest.noarch 0:1.17-245.el7               perl-Digest-HMAC.noarch 0:1.03-5.el7
  perl-Digest-MD5.x86_64 0:2.52-3.el7                   perl-Digest-SHA.x86_64 1:5.85-3.el7             perl-Error.noarch 1:0.17020-2.el7
  perl-GSSAPI.x86_64 0:0.28-9.el7                       perl-Git.noarch 0:1.8.3.1-6.el7_2.1             perl-Git-SVN.noarch 0:1.8.3.1-6.el7_2.1
  perl-IO-Compress.noarch 0:2.061-2.el7                 perl-IO-Socket-IP.noarch 0:0.21-4.el7           perl-IO-Socket-SSL.noarch 0:1.94-3.el7
  perl-Net-Daemon.noarch 0:0.48-5.el7                   perl-Net-LibIDN.x86_64 0:0.12-15.el7            perl-Net-SMTP-SSL.noarch 0:1.01-13.el7
  perl-Net-SSLeay.x86_64 0:1.55-3.el7                   perl-PlRPC.noarch 0:0.2020-14.el7               perl-TermReadKey.x86_64 0:2.30-20.el7
  perl-YAML.noarch 0:0.84-5.el7                         subversion.x86_64 0:1.7.14-10.el7               subversion-libs.x86_64 0:1.7.14-10.el7
  subversion-perl.x86_64 0:1.7.14-10.el7                tcl.x86_64 1:8.5.13-8.el7                       tk.x86_64 1:8.5.13-6.el7

Complete!
View Code

为了查看git是否已经安装完成了,在命令行中输入命令查看

[azrlnx04@azrlnx04 ~]$ git --version
git version 1.8.3.1
[azrlnx04@azrlnx04 ~]$

关于配置git,请参考:http://www.linuxidc.com/Linux/2014-03/97821.htm

(2)生成SSH key

[azrlnx04@azrlnx04 ~]$ ssh-keygen -t rsa -C "chenxuhua0530@163.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/azrlnx04/.ssh/id_rsa):
Created directory '/home/azrlnx04/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/azrlnx04/.ssh/id_rsa.
Your public key has been saved in /home/azrlnx04/.ssh/id_rsa.pub.
The key fingerprint is:
44:97:e4:6e:ff:9e:99:31:1e:09:c2:fb:c8:2c:04:ba chenxuhua0530@163.com
The key's randomart image is:
+--[ RSA 2048]----+
|        ..o.     |
|       . o.      |
|        . .      |
|      .. o       |
|     . .S = .    |
|    .   .. + . . |
|     . .  . . =  |
|    E   .o o o B |
|         .+ ..B  |
+-----------------+
[azrlnx04@azrlnx04 ~]$ cd .ssh
[azrlnx04@azrlnx04 .ssh]$ vi id_rsa.pub

(3)将邮件前面的SSH key复制出来,并黏贴至github中的SSH and CPG keys中

(4)完成后,需要查看linux机器是否可以连接至github,使用命令查看,如果出现了“Hi ChenWes! You've successfully authenticated, but GitHub does not provide shell access.”则说明已经能够正常连接至github中

[azrlnx04@azrlnx04 ~]$ ssh -T git@github.com
The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
Hi ChenWes! You've successfully authenticated, but GitHub does not provide shell access.

(5)配置用户名及邮件

[azrlnx04@azrlnx04 ~]$ git config --global user.name "ChenWes"
[azrlnx04@azrlnx04 ~]$ git config --global user.email "chenxuhua0530@163.com"

(6)新增一个文件夹,并clone代码至linux服务器,与java、sonar、mysql平级的位置创建新文件夹sonar-project\project-source\instantnoodle.workbench,并使用clone命令将源代码克隆至本地文件夹,clone期间需要输入用户名及口令(github)

[azrlnx04@azrlnx04 instantnoodle.workbench]$ git clone https://github.com/XXXXXXX/XXXXXXXXXXXX.git

 (7)Scan代码

[azrlnx04@azrlnx04 ArasService]$ sonar-scanner -Dsonar.projectKey="ArasInnovatorService" -Dsonar.projectName="LinuxArasService" -Dsonar.projectVersion="1.0.1" -Dsonar.sources="." -Dsonar.language="cs"

  

posted @ 2016-11-10 16:02  WesChan  阅读(208)  评论(0编辑  收藏  举报