Find the answer to your Linux question:
Results 1 to 9 of 9
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to install git in linux 5


    i have installed linux 5 and want to install Git can any one tell me how install same?

  2. #2
    Linux Newbie slw210's Avatar
    Join Date
    Apr 2013
    Location
    South Central Florida
    Posts
    194
    What is Linux 5?

  3. #3
    Linux Newbie slw210's Avatar
    Join Date
    Apr 2013
    Location
    South Central Florida
    Posts
    194
    Anyway try

    Code:
    yum install git-core
    or maybe

    Code:
    apt-get install git

  4. $spacer_open
    $spacer_close
  5. #4
    Not happeing it shows apt-get cammand not available...

  6. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    4,028
    To repeat slw210: which linux distribution are you using?

    Sent from my GT-I9505 using Tapatalk 4
    You must always face the curtain with a bow.

  7. #6
    Linux version 2.6.18-274.el5

  8. #7
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Linux version 2.6.18-274.el5
    That is not the distribution but the kernel. Usually the name of the distribution is shown on the screen in large letter when you boot. The commands should work for a Red Hat or Debian based system so you probably don't have either if you get a 'command not found' with both although you only indicate the apt-get.

  9. #8
    Code:
    $ cat /etc/issue
    Welcome to antiX. Powered by Debian Testing.
    harry@biker:~
    $ cat /etc/issue.net
    Welcome to antiX. Powered by Debian Testing.
    $ cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
    NAME="Debian GNU/Linux"
    VERSION_ID="7"
    VERSION="7 (wheezy)"
    ID=debian
    ANSI_COLOR="1;31"
    HOME_URL="http://www.debian.org/"
    SUPPORT_URL="http://www.debian.org/support/"
    BUG_REPORT_URL="http://bugs.debian.org/"
    Is some of the ways to find out what operating system you are using Though in rpm distros I have no experience.
    I refuse to let fear and fear of others rule my life. It puts my humanity at risk.
    Accepting Death is the only way to stay alive.

  10. #9
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    .el5 would typically indicate a red hat based distro. In such a case, I believe git resides in the EPEL repository which you need to add before installation.

    Code:
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
    yum install git
    [edit]More info on EPEL[/edit]
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •