08-23-2018, 08:19 PM
(08-23-2018, 04:05 AM)Amresh Wrote: Hey guys thanks for the reply!Not completely offline but you can install git like this if not using the package manager (apt-get)
But I am still facing issues!
When I was installing git using sudo apt-get ....
I was being displayed by an error saying that >>Error in File Fetching<< or somewhat like this only!
I was thinking that is there any way through which I can install git offline.....like first I download the package and install it from the terminal offline!
Install the necessary dependencies
Code: (Select All)
sudo apt-get install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
Download the package to install
Code: (Select All)
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
Unpack the tar.gz
Code: (Select All)
tar -xzvf git-2.9.5.tar.gz
Build from source
Code: (Select All)
cd git-2.9.5.tar.gz
make configure
./configure --prefix=/usr
make
make install (use sudo make install for global install so any user can use git)
And done you have your git installed
![Smile Smile](https://post4vps.com/images/emoji/smile.png)
No one knows what the future holds, that's why its potential is infinite