Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

How to install git

Status
Not open for further replies.

Ray Milyard

Patron
Joined
Aug 8, 2014
Messages
262
I have a FreeNAS 9.3.x that is up to date as of today.

When I try:

pkg install git

I get this error:

root@sabnzbd_1:/ #pkg: No packages available to install matching 'git' have been found in the repositoriesAll repositories are up-to-date.FreeBSD repository is up-to-date.Updating FreeBSD repository catalogue...

How can I fix this or install git. Sorry but FreeBSD noob here.
 
D

dlavigne

Guest
Are you running that command inside a jail or from the FreeNAS shell?
 
D

dlavigne

Guest
That's the correct command. Can you double-check that you can ping a domain name (such as google.com) from within the jail?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,946
I'm assuming the package is broken on the official repo at the moment. you could always try building from ports

cd /usr/ports/devel/git
make install clean
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,946
you probably need to install the ports tree
portsnap fetch install
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,741
Sounds like your repository's are not up to date.

To update pkg:
# pkg update

To update ports:
# portsnap fetch extract
 
Status
Not open for further replies.
Top