{"id":427,"date":"2023-02-25T12:14:04","date_gmt":"2023-02-25T04:14:04","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=427"},"modified":"2023-04-29T21:19:39","modified_gmt":"2023-04-29T13:19:39","slug":"install-git-with-source-code-under-centos","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/install-git-with-source-code-under-centos\/","title":{"rendered":"CentOS\u4e0b\u6e90\u7801\u5b89\u88c5Git"},"content":{"rendered":"<h2>\u5b89\u88c5\u4f9d\u8d56<\/h2>\n<pre><code>yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make cmake m4 openssl openssl-devel curl libcurl-devel zlib-devel libxml2-devel gettext-devel gdbm-devel readline-devel ncurses-devel libffi-devel libyaml-devel libxslt-devel libicu-devel logrotate python-docutils krb5-devel<\/code><\/pre>\n<p><!-- more --><\/p>\n<h2>\u5b89\u88c5Git<\/h2>\n<pre><code># yum install gettext-devel asciidoc xmlto perl-ExtUtils-MakeMaker\n# rpm -qa | grep -i git\n# rpm -e git-1.8.3.1-6.el7_2.1.x86_64 --nodeps  \/\/\u4e00\u5b9a\u8981\u79fb\u9664\u65e7\u7248\u672c\uff0c\u56e0\u4e3a\u65e7\u7248\u672c\u6ca1\u6709-C\u9009\u9879\n# wget https:\/\/www.kernel.org\/pub\/software\/scm\/git\/git-2.13.2.tar.gz\n# tar -xzf git-2.13.2.tar.gz\n# cd git-2.13.2\/\n# .\/configure --prefix=\/usr\/local\/git\n# make all doc\n# make install\n# ln -s \/usr\/local\/git\/bin\/git \/usr\/bin\/git\n# git --version<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5\u4f9d\u8d56 yum install wget gcc gcc-c++ g++ autoconf autoconf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[99],"class_list":["post-427","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-git"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=427"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/427\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}