threads / discuss / 42780

Dependencies required for offline installation

Subject: Dependencies required for offline installation

## tl;dr

6 messages between Jul 5, 2016 and Jul 5, 2016.

replies: 5people: 4as markdown or json

Kevin Paxton· Jul 5, 2016, 11:45 UTC · lore
Hi,

I’m looking to install git on a separate network that is running Redhat 5.5. I need to know what is the list of packages that I need to download to be able to install git-all? I plan on using git-svn to migrate an existing svn repo over to git as well. Svn version we have installed is 1.9.3.

Does the tarball contain all dependencies already? Should I go that route? Or should I try and find all the rpm's required?

Thanks,
Kevin Paxton
Dennis Kaarsemaker· Jul 5, 2016, 17:53 UTC · re: Kevin Paxton · lore

Re: Dependencies required for offline installation

On di, 2016-07-05 at 07:45 -0400, Kevin Paxton wrote:
> Hi,
> 
> I’m looking to install git on a separate network that is running
> Redhat 5.5. 

That's ancient and unsupported. If you insist on using rhel 5, at least do 5.11 so you get the security updates.

> I need to know what is the list of packages that I need to
> download to be able to install git-all? I plan on using git-svn to
> migrate an existing svn repo over to git as well. Svn version we have
> installed is 1.9.3.

There are rpms for git 1.8 in EPEL. git-all is probably overkill, but you'll need at least git, perl-Git, perl-Git-SVN and perl-Error.

> Does the tarball contain all dependencies already? Should I go that
> route? Or should I try and find all the rpm's required?

The source tarball of git contains no dependencies. Also be aware that building git from source requires even more dependencies.

D.
Kevin Paxton· Jul 5, 2016, 18:06 UTC · re: Dennis Kaarsemaker · lore

Re: Dependencies required for offline installation

Thank you for the response.
I apologize. RHEL 6.5, not 5.5.

Would the same version be applicable to 6.5 as well as the dependencies that you mentioned?

On Tue, Jul 5, 2016 at 1:53 PM, Dennis Kaarsemaker <dennis@kaarsemaker.net> wrote:

Show 24 quoted lines
> On di, 2016-07-05 at 07:45 -0400, Kevin Paxton wrote:
>> Hi,
>>
>> I’m looking to install git on a separate network that is running
>> Redhat 5.5.
>
> That's ancient and unsupported. If you insist on using rhel 5, at least
> do 5.11 so you get the security updates.
>
>> I need to know what is the list of packages that I need to
>> download to be able to install git-all? I plan on using git-svn to
>> migrate an existing svn repo over to git as well. Svn version we have
>> installed is 1.9.3.
>
> There are rpms for git 1.8 in EPEL. git-all is probably overkill, but
> you'll need at least git, perl-Git, perl-Git-SVN and perl-Error.
>
>> Does the tarball contain all dependencies already? Should I go that
>> route? Or should I try and find all the rpm's required?
>
> The source tarball of git contains no dependencies. Also be aware that
> building git from source requires even more dependencies.
>
> D.
Dennis Kaarsemaker· Jul 5, 2016, 19:53 UTC · re: Kevin Paxton · lore

Re: Dependencies required for offline installation

On di, 2016-07-05 at 14:06 -0400, Kevin Paxton wrote:
> Thank you for the response.
> 
> I apologize. RHEL 6.5, not 5.5.

That's less ancient, but still not recommended. When using RHEL, try to stay with the latest point release so you get security updates.

> Would the same version be applicable to 6.5 as well as the
> dependencies that you mentioned?

Red hat actually ships a version of git with RHEL 6.  So the version will be different (I believe it's a 1.7.something). The dependencies should be similar, if not the same.

Show 33 quoted lines
> On Tue, Jul 5, 2016 at 1:53 PM, Dennis Kaarsemaker
> <dennis@kaarsemaker.net> wrote:
> > 
> > On di, 2016-07-05 at 07:45 -0400, Kevin Paxton wrote:
> > > 
> > > Hi,
> > > 
> > > I’m looking to install git on a separate network that is running
> > > Redhat 5.5.
> > That's ancient and unsupported. If you insist on using rhel 5, at
> > least
> > do 5.11 so you get the security updates.
> > 
> > > 
> > > I need to know what is the list of packages that I need to
> > > download to be able to install git-all? I plan on using git-svn
> > > to
> > > migrate an existing svn repo over to git as well. Svn version we
> > > have
> > > installed is 1.9.3.
> > There are rpms for git 1.8 in EPEL. git-all is probably overkill,
> > but
> > you'll need at least git, perl-Git, perl-Git-SVN and perl-Error.
> > 
> > > 
> > > Does the tarball contain all dependencies already? Should I go
> > > that
> > > route? Or should I try and find all the rpm's required?
> > The source tarball of git contains no dependencies. Also be aware
> > that
> > building git from source requires even more dependencies.
> > 
> > D.
brian m. carlson· Jul 5, 2016, 22:45 UTC · re: Dennis Kaarsemaker · lore

Re: Dependencies required for offline installation

On Tue, Jul 05, 2016 at 09:53:15PM +0200, Dennis Kaarsemaker wrote:
Show 14 quoted lines
> On di, 2016-07-05 at 14:06 -0400, Kevin Paxton wrote:
> > Thank you for the response.
> > 
> > I apologize. RHEL 6.5, not 5.5.
> 
> That's less ancient, but still not recommended. When using RHEL, try to
> stay with the latest point release so you get security updates.
> 
> > Would the same version be applicable to 6.5 as well as the
> > dependencies that you mentioned?
> 
> Red hat actually ships a version of git with RHEL 6.  So the 
> version will be different (I believe it's a 1.7.something). The
> dependencies should be similar, if not the same.

At $DAYJOB, we build and ship Git with our software, which runs on RHEL 6 and 7. I'd have to check to be certain, but I'm pretty sure the dependencies for core Git are the same as Red Hat's version. We choose to compile with PCRE because it enables git grep -P, which we use in development. If you want git-svn, you'll of course need subversion.

In case you do move back to RHEL 5 (which I don't recommend), be aware that the libcurl version is old enough that some features (DAV is one, if I remember correctly) don't work.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
Konstantin Khomoutov· Jul 5, 2016, 18:09 UTC · re: Kevin Paxton · lore

Re: Dependencies required for offline installation

On Tue, 5 Jul 2016 07:45:12 -0400 Kevin Paxton <kpaxton@paxdesigns.com> wrote:

Show 7 quoted lines
> I’m looking to install git on a separate network that is running
> Redhat 5.5. I need to know what is the list of packages that I need to
> download to be able to install git-all? I plan on using git-svn to
> migrate an existing svn repo over to git as well. Svn version we have
> installed is 1.9.3.
> 
> Does the tarball contain all dependencies already?

No, it does not. It depends on a few of external libraries (and software packages) -- check it out yourself at [1].

It should be noted though that this list is not fixed. IIUC the only hard dependency is zlib and all the other stuff is optional. SSH transport is implemented by calling an OpenSSH (or compatible) client program, so this is a soft dependency.

Note that in your case you will need to have Perl 5.8+ because it's used by the git-svn implementation, and that will use the Perl bindings for Subversion (which, in turn, depend on both Perl and libsvn). You'll need to have that stuff available and installed as well.

> Should I go that route?
> Or should I try and find all the rpm's required?
It's hard to tell.

RH 5.5 appears to be really really old so it's unlikely you'll find official RPMs for recent Git versions. You might try to look them up in unofficial 3rd-party repos maintained by those who need to support outdated systems.

This might get further complicated by the fact you appear to have non-standard Subversion package (too fresh for RH 5.5 IMO).

Failing that, I'd have a VM running RH 5.5 and tried to build a set of RPMs against the software packages you have deployed on the target system. The RPM specs can be grabbed from any up-to-date Redhatoid system and backported.

1. https://github.com/git/git/blob/master/INSTALL

← back to recent threads