LoginSignup
0
0

More than 1 year has passed since last update.

(WSL2の)debian busterでgitのより新しいバージョンをインストールする

Posted at

実行するコマンド

# buster-backportsを使えるようにする
# WSL2のdebianなら最初から使えるのでやらなくて良いはず
sudo apt edit-sources # 'deb http://ftp.debian.org/debian buster-backports main' という行がなければ追加する
sudo apt update

# buster-backportsを指定してgitをインストールする
sudo apt -t buster-backports install git

これで2021/09/18時点ではgit 2.20から2.30に上げることができました(git restoreできるようになる)。

backports

安定バージョンに各種パッケージの新しいバージョンを取り込むために用意されているレポジトリのようです。
手順は上記ページの内容を参考にしています。

0
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
0
0