threads / discuss / 53183

Installing git questions I can't find an answer to.

Subject: Installing git questions I can't find an answer to.

## tl;dr

3 messages between Apr 7, 2020 and Apr 9, 2020.

replies: 2people: 2as markdown or json

Jordan· Apr 7, 2020, 23:12 UTC · lore

Hello, I have searched the internet and can find no answer to my dilemma. I am trying to install a local copy of git on a Linux machine that is not connected to the internet and I don't have root privileges on. I can download and transfer things to this machine, but that is it. I think this should be possible, but have had no luck with the things I have tried. Thanks you for any advice. Regards Jordan

Pratyush Yadav· Apr 8, 2020, 18:07 UTC · re: Jordan · lore

Re: Installing git questions I can't find an answer to.

On 08/04/20 08:12AM, Jordan wrote:
Show 7 quoted lines
> Hello,
> I have searched the internet and can find no answer to my dilemma. I am
> trying to install a local copy of git on a Linux machine that is not
> connected to the internet and I don't have root privileges on. I can
> download and transfer things to this machine, but that is it. I think this
> should be possible, but have had no luck with the things I have tried.
> Thanks you for any advice.

Are you able to build Git from source? Do you have all the dependencies already installed? If so, I have sometimes used the Git binary in the build folder when testing a new feature I was working on because I didn't want to install an unstable version on my system. It worked fine for the most part, though I admit I didn't really use a whole lot of things other than commit and some worktree commands. Maybe something like that would work for you? You can download a tarball from kernel.org [0].

If you can't, maybe you can try building Git on a machine you _do_ have internet and root access on, and then copy over the binaries? Again, I haven't played around a whole lot with something like this so I can't say if it'll work. Something to try I guess.

[0] https://mirrors.edge.kernel.org/pub/software/scm/git/
-- 
Regards,
Pratyush Yadav
Jordan· Apr 9, 2020, 00:28 UTC · re: Pratyush Yadav · lore

RE: Installing git questions I can't find an answer to.

Hello Pratyush, Thanks for the reply. I was able to build it from a tarball, but it was certainly not straightforward. After a failed attempt and more research I came to the following that works. $ tar -zxf git-2.9.4.tar.gz $ cd git-2.9.4 $ make configure $ ./configure --prefix=/ <my directory> $ make && make install

Regards, Jordan

-----Original Message-----
From: Pratyush Yadav <me@yadavpratyush.com> 
Sent: Thursday, April 9, 2020 3:08 AM
To: Jordan <jordan.az@samsung.com>
Cc: git@vger.kernel.org
Subject: Re: Installing git questions I can't find an answer to.
On 08/04/20 08:12AM, Jordan wrote:
Show 6 quoted lines
> Hello,
> I have searched the internet and can find no answer to my dilemma. I 
> am trying to install a local copy of git on a Linux machine that is 
> not connected to the internet and I don't have root privileges on. I 
> can download and transfer things to this machine, but that is it. I 
> think this should be possible, but have had no luck with the things I have
tried.
> Thanks you for any advice.

Are you able to build Git from source? Do you have all the dependencies already installed? If so, I have sometimes used the Git binary in the build folder when testing a new feature I was working on because I didn't want to install an unstable version on my system. It worked fine for the most part, though I admit I didn't really use a whole lot of things other than commit and some worktree commands. Maybe something like that would work for you? You can download a tarball from kernel.org [0].

If you can't, maybe you can try building Git on a machine you _do_ have internet and root access on, and then copy over the binaries? Again, I haven't played around a whole lot with something like this so I can't say if it'll work. Something to try I guess.

[0] https://mirrors.edge.kernel.org/pub/software/scm/git/

-- Regards, Pratyush Yadav

← back to recent threads