1 개요[ | ]
- 우분투16 git 2.19 설치
2 확인[ | ]
Console
Copy
root@ubuntu16:~# git --version
git version 2.7.4
Console
Copy
root@ubuntu16:~# apt list git -a
Listing... Done
git/xenial-updates,xenial-security,now 1:2.7.4-0ubuntu1.6 amd64 [installed]
git/xenial 1:2.7.4-0ubuntu1 amd64
3 설치[ | ]
Bash
Copy
add-apt-repository ppa:git-core/ppa
apt update
apt install git
Bash
Copy
add-apt-repository ppa:git-core/ppa -y
apt update
apt install git -y
Console
Copy
root@ubuntu16:~# add-apt-repository ppa:git-core/ppa
The most current stable version of Git for Ubuntu.
For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .
More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it
Console
Copy
gpg: keyring `/tmp/tmplqr2gum0/secring.gpg' created
gpg: keyring `/tmp/tmplqr2gum0/pubring.gpg' created
gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmplqr2gum0/trustdb.gpg: trustdb created
gpg: key E1DF1F24: public key "Launchpad PPA for Ubuntu Git Maintainers" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Console
Copy
root@ubuntu16:~# apt update
Hit:1 http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu xenial InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:5 https://deb.nodesource.com/node_10.x xenial InRelease
Hit:6 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial InRelease
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:8 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease [17.5 kB]
Hit:9 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Get:10 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main amd64 Packages [3,336 B]
Get:11 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main i386 Packages [3,336 B]
Get:12 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main Translation-en [2,380 B]
Fetched 133 kB in 3s (38.7 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
155 packages can be upgraded. Run 'apt list --upgradable' to see them.
Console
Copy
root@ubuntu16:~# apt list git -a
Listing... Done
git/xenial 1:2.19.2-0ppa1~ubuntu16.04.1 amd64 [upgradable from: 1:2.7.4-0ubuntu1.6]
git/xenial-updates,xenial-security,now 1:2.7.4-0ubuntu1.6 amd64 [installed,upgradable to: 1:2.19.2-0ppa1~ubuntu16.04.1]
git/xenial 1:2.7.4-0ubuntu1 amd64
Console
Copy
root@ubuntu16:~# apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
git-man libpcre2-8-0
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs
git-mediawiki git-svn
The following NEW packages will be installed:
libpcre2-8-0
The following packages will be upgraded:
git git-man
2 upgraded, 1 newly installed, 0 to remove and 153 not upgraded.
Need to get 7,519 kB of archives.
After this operation, 9,917 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Console
Copy
Get:1 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main amd64 git amd64 1:2.19.2-0ppa1~ubuntu16.04.1 [5,750 kB]
Get:2 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main amd64 git-man all 1:2.19.2-0ppa1~ubuntu16.04.1 [1,593 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libpcre2-8-0 amd64 10.31-3+ubuntu16.04.1+deb.sury.org+1 [177 kB]
Fetched 7,519 kB in 5s (1,406 kB/s)
(Reading database ... 361213 files and directories currently installed.)
Preparing to unpack .../git_1%3a2.19.2-0ppa1~ubuntu16.04.1_amd64.deb ...
Unpacking git (1:2.19.2-0ppa1~ubuntu16.04.1) over (1:2.7.4-0ubuntu1.6) ..................]
Preparing to unpack .../git-man_1%3a2.19.2-0ppa1~ubuntu16.04.1_all.deb ..................]
Unpacking git-man (1:2.19.2-0ppa1~ubuntu16.04.1) over (1:2.7.4-0ubuntu1.6) ..............]
Selecting previously unselected package libpcre2-8-0:amd64...............................]
Preparing to unpack .../libpcre2-8-0_10.31-3+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.31-3+ubuntu16.04.1+deb.sury.org+1) .....................]
Processing triggers for libc-bin (2.23-0ubuntu10) ...#####...............................]
Setting up libpcre2-8-0:amd64 (10.31-3+ubuntu16.04.1+deb.sury.org+1) ...
Setting up git-man (1:2.19.2-0ppa1~ubuntu16.04.1) ...##############......................]
Setting up git (1:2.19.2-0ppa1~ubuntu16.04.1) ...###########################.............]
Processing triggers for libc-bin (2.23-0ubuntu10) ...################################....]
4 확인 2[ | ]
Console
Copy
root@ubuntu16:~# git --version
git version 2.19.2
Console
Copy
root@ubuntu16:~#apt list git -a
Listing... Done
git/xenial,now 1:2.19.2-0ppa1~ubuntu16.04.1 amd64 [installed]
git/xenial-updates,xenial-security 1:2.7.4-0ubuntu1.6 amd64
git/xenial 1:2.7.4-0ubuntu1 amd64
5 같이 보기[ | ]
6 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.