git-lfs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
git-lfs: command not found
or when using sudo you get the following error message
sudo: git-lfs: command not found
Solutions to git-lfs: command not found
How To Fix git-lfs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu git-lfs is provided by git-lfs package.
git-lfs is:
An open source Git extension for versioning large files. Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server.
To fix this problem, we can install more using the command below.
sudo apt-get -y install git-lfs
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install git-lfs.
sudo apt -y install git-lfs
Or if you have aptitude installed you can use the following command.
sudo aptitude install git-lfs
Summary
In this tutorial we learn how to fix git-lfs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.