Install git on UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Install git on UNIX
# 1  
Old 06-05-2018
Question Install git on UNIX

How can I install git on unix using wget?
# 2  
Old 06-06-2018
Funny question, wget has nothing to do with installing GIT...
now we cant really reply on installation since it will depend of architecture, OS s I suppose each may have a package with their install procedure
About wget, is it because you are blocked ( in private lan, firewall ?)?
# 3  
Old 06-06-2018
Actually ,I am working on yocto image booted on raspberry pi.I don't have apt-get option in my bin.So only option left to install git is to use wget.So ,if there is a way to install git using wget then please inform.
# 4  
Old 06-06-2018
Quote:
Originally Posted by Akash BHardwaj
Actually ,I am working on yocto image booted on raspberry pi.I don't have apt-get option in my bin.So only option left to install git is to use wget.So ,if there is a way to install git using wget then please inform.
I've not come across yocto before. So it's a tool for building embedded Linux distributions. My first question to you is, did you build this distribution yourself, or are you using one built by somebody else?

If the former, could you rebuild the image with a package manager, or even git, built into the distribution?

You can use wget to download git, but then you still need to install it. This will have to be done either by downloading the source and building it or getting a package for your system, and you will still need a package manager such as dpkg to install it.

Andrew
# 5  
Old 06-06-2018
Yes,I build the image myself and I have included dpkg,opkg and rpm packages.So I need to download git in order to clone to wiringpi repository.It will be really helpful and appreciable if you or someone can provide me command using wget to download and install git.
# 6  
Old 06-06-2018
Quote:
Originally Posted by Akash BHardwaj
Yes,I build the image myself and I have included dpkg,opkg and rpm packages.So I need to download git in order to clone to wiringpi repository.It will be really helpful and appreciable if you or someone can provide me command using wget to download and install git.
So why can't you include apt-get or the equivalent rpm front-end in your image? Why can't you include git in your image?

Andrew
# 7  
Old 06-07-2018
Thanks a lot for guiding me.I actually tried

IMAGE_INSTALL_APPEND = "git apt dpkg opkg rpm sudo"
in my local conf and I was able to use git on my raspberrypi.
Now as a next step I am trying to install sudo on my system because ./build on wiringpi is not installing wiringpi without sudo command.
root@raspberrypi # ./build
sudo:command not found
I tried
apt-get install -y sudo
but it returned an Error:cannot find sudo package

I am trying my best to do it but it will be great if anyone could help.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Git or PKGutil

i am running solaris 10 and they want GIt on there. The instructions that I found on line want me to use pkgutil which i don't have either. Most packages that i have installed come from the cd and are labeled SUNW... I see one instruction to add pkgadd -d http://get.opencsw.org/now ... (4 Replies)
Discussion started by: goya
4 Replies

2. Red Hat

Git command

trying to add git link to my computer as root and getting error message git clone https://github.com/xxxxxxx/xxxxx.sh bash: git: command not found Please use CODE tags as required by forum rules! (3 Replies)
Discussion started by: DOkuwa
3 Replies

3. Solaris

Git Solaris

I need to be able to run git commands on a solaris 10 box, the git server is a Linux rh 6.9 , but I can not find much info out there on a git client for solaris 10. Is it just a pkgadd, or and install tar? or is there even any support for Solaris 10 git? My reading so far had not turned much up. ... (1 Reply)
Discussion started by: rrodgers
1 Replies

4. OS X (Apple)

Man git -add

I meant to type in: man git-add //no space but I typed this in instead: man git -add // space between git and -add There were all these spewing out; not quite sure what I did. I am new to unix and the terminal. Does anyone know what man git -add does and how do I undo... (2 Replies)
Discussion started by: BuDop
2 Replies

5. Red Hat

[Solved] Cannot install git on RHEL 6

Hi, I am trying to install git on RHEL 6. From the research I have done I should be able to just say: sudo yum install git but it is not working (it says no package git is available). I am fairly new to linux and cannot figure this out. Thanks for any help you can provide. (7 Replies)
Discussion started by: dsabol
7 Replies

6. UNIX for Dummies Questions & Answers

Updating git clones

Hi, I'm fairly new to the git command and I'm trying to figure out how to check if your local clone is up to date with the master. I know you can do the same thing on packages with apt-get by using update and then upgrade. Is there something similar with git? (0 Replies)
Discussion started by: silverdust
0 Replies

7. AIX

GIT issue in AIX 6.1

Hello, I recently installed GIT 1.8.1 on my AIX 6.1 machine referring to AIX Open Source Packages | Main / git website and am facing a few issues with it. Now if I login as root and issue git commands like git --version I get the response as shown : git version 1.8.1And I have tried creating... (4 Replies)
Discussion started by: gaugeta
4 Replies
Login or Register to Ask a Question