git-lite on FreeBSD


I've been moving my svn and hg repos to git, to force personal familiarity with its arcane syntax. Installing the package on a FreeBSD 10.1 box:

# pkg install git

... returns this package list.

New packages to be INSTALLED:
        git: 2.3.7
        expat: 2.1.0_2
        p5-Authen-SASL: 2.16_1
        perl5: 5.18.4_14
        p5-Digest-HMAC: 1.03_1
        p5-Net-SMTP-SSL: 1.02
        p5-IO-Socket-SSL: 2.012
        p5-Mozilla-CA: 20141217
        p5-Net-SSLeay: 1.68
        p5-Socket: 2.019
        p5-IO-Socket-IP: 0.37
        python27: 2.7.9_1
        libffi: 3.2.1
        p5-Error: 0.17023
        curl: 7.42.1
        ca_root_nss: 3.18.1
        cvsps: 2.1_1
The process will require 140 MiB more space.

Holy dependencies, Batman. And here I was thinking git was written in C (and wouldn't be written any other way).

Fortunately, a quick search returned git-lite. In keeping with FreeBSD conventions, the generic named package is compiled with most of the expected includes, with -lite being the minimum required (vim-lite being one other that comes to mind).

So we install...

# pkg install git-lite 

... with the following package list:

New packages to be INSTALLED:
        git-lite: 2.3.7
        expat: 2.1.0_2
        curl: 7.42.1
        ca_root_nss: 3.18.1
The process will require 21 MiB more space.

This has worked so far for work, personal, GitHub and BitBucket over SSH. As my imperial unit utilising friends are wont to say though, your mileage may vary.

Author bio and support


Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.