Install git on UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Install git on UNIX
# 8  
Old 06-11-2018
Quote:
Originally Posted by Akash BHardwaj
Thanks a lot for guiding me.I actually tried

Code:
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.
Code:
root@raspberrypi # ./build
sudo:command not found

I tried
Code:
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.
Please use code tags. It looks as though the sudo package is not included in your repository. However, sudo is normally used to elevate the privilege level to that of root and you are running the build as root already. Try adding into (a directory in) your path an executable shell script with the following command:
Code:
#!/bin/sh
exec "$@"

and call it sudo. That should act as a workaround, given you don't actually need sudo in this case.

Andrew
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