1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linux Mint 19にGitをインストール

Last updated at Posted at 2018-12-30

Linux Ming 19 を使っていますがデフォルトでgitは入っていませんでした。
gitバージョンを確認するとaptで入れろと言われます。

$ git --version

Command 'git' not found, but can be installed with:

sudo apt install git

いちおうapt updateしておきます。

$ sudo apt update

でaptでインストール
sudo apt -y install git だと何故か動作しなかったので
-yオプションを最後に持ってきたけど特殊なやり方かも

$ sudo apt install git -y

もう一回バージョンを確認してみると2.17.1が入っていますね

$ git --version
git version 2.17.1

アンインストールする場合

$ sudo apt remove git -y

環境

$ uname -srvpio
Linux 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 GNU/Linux

このマシンのイメージ作り込む事が多そうなので
gitにスクリプト作って置いておこうと思います。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?