CentOS 6.8 ์ตœ์‹  Git ์„ค์น˜

1137 ๋‹จ์–ด
CentOS 6.8์˜ ์ž์ฒด Git ๋ฒ„์ „์€ 1.7.1๋กœ ๋น„๊ต์  ๋‚ก์•˜๊ณ yum ์„ค์น˜๋„ 1.7.1์— ๋จธ๋ฌผ๋ €์œผ๋‹ˆ ์›๋ณธ ์ฝ”๋“œ๋ฅผ ์ปดํŒŒ์ผํ•˜์—ฌ ์„ค์น˜ํ•˜์ž.
1. ์›๋ณธ ๋‹ค์šด๋กœ๋“œ:
wget -c https://github.com/git/git/archive/v2.12.1.tar.gz

2. ์ด์ „ ๋ฒ„์ „ Git ์ œ๊ฑฐ
yum remove git

3. ์••์ถ• ํ•ด์ œ, ์ปดํŒŒ์ผ๋ง, ์„ค์น˜
tar zxvf v2.12.1.tar.gz
cd git-2.12.1

make configure
./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv
make all doc
sudo make install install-doc install-html

4. ์†Œํ”„ํŠธ ๋งํฌ ๋งŒ๋“ค๊ธฐ (์ฃผ์˜:/usr/local/git/bin ๋””๋ ‰ํ„ฐ๋ฆฌ์— ์žˆ๋Š” ๋ชจ๋“  ํŒŒ์ผ์„ ์†Œํ”„ํŠธ ์—ฐ๊ฒฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค!)
ln -s /usr/local/git/bin/git  /usr/local/bin/git
ln -s /usr/local/git/bin/git-cvsserver  /usr/local/bin/git-cvsserver
ln -s /usr/local/git/bin/gitk  /usr/local/bin/gitk
ln -s /usr/local/git/bin/git-receive-pack  /usr/local/bin/git-receive-pack
ln -s /usr/local/git/bin/git-shell  /usr/local/bin/git-shell
ln -s /usr/local/git/bin/git-upload-archive  /usr/local/bin/git-upload-archive
ln -s /usr/local/git/bin/git-upload-pack  /usr/local/bin/git-upload-pack

5. ์„ค์น˜ ์„ฑ๊ณต ์—ฌ๋ถ€ ํ™•์ธ
git version

 
 
๊ด€๋ จ ๊ธฐ์‚ฌ:
CentOS 6.8 Git ์ฝ”๋“œ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ ๊ตฌ์ถ• Gitea

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ