Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suse Enterprise 11 SP2 how to install git

Tags:

git

linux

suse

I've never had a problem installing git on any Linux distro, but now I'm forced to use a client's server which is SLES 11 SP2. It uses yast or zypper to do package management, which I've never used before. Apparently I should be able to zypper install git-core but that doesn't work because it needs a certain repo added. Of course none of this is on the official git installation page here.

I found what packages belong to the SLE11-SP2-SDK repo here. But no instructions on how to add the repo to yast or zypper.

I'll also accept an answer that simply tells me how to install git on a SLES server. I've already tried from source, but of course it's missing requirements which also belong to the SDK repo.

This is what I get when I do "zypper install git-core":

$ sudo zypper install git-core  Refreshing service 'nu_novell_com'. Loading repository data... Reading installed packages... 'git-core' not found in package names. Trying capabilities. No provider of 'git-core' found. Resolving package dependencies...  Nothing to do. 
like image 592
Brade Avatar asked Jun 08 '12 18:06

Brade


People also ask

How do I manually install Git?

To install Git, navigate to your command prompt shell and run the following command: sudo dnf install git-all . Once the command output has completed, you can verify the installation by typing: git version .


2 Answers

I figured it out, only by piecing together other info mainly from the OpenSUSE project. Basically it's:

$ sudo zypper addrepo http://download.opensuse.org/repositories/devel:/tools:/scm/SLE_11_SP2/devel:tools:scm.repo $ sudo zypper install git-core 
like image 67
Brade Avatar answered Oct 04 '22 00:10

Brade


git is part of the SDK for SLES, which can be downloaded here:

http://download.novell.com (ideally for the currently used SP2)

Once you installed itm the zypper or yast commands work. It's not recommended to use openSUSE rpms within a SLES environment.

like image 36
user1571656 Avatar answered Oct 03 '22 23:10

user1571656