I used to do yum install xcodebuild
,but now getting this error:
You need to be root to perform this command.
How can I install it without the root privilege?
I used to do yum install xcodebuild
,but now getting this error:
You need to be root to perform this command.
How can I install it without the root privilege?
In general, you can't install packages using yum without being root. You'll be writing to root owned directories and updating root owned configuration files.
Assuming you have the correct sudo configuration, you would normally use, or might have used in the past,
That will switch you to the root user and then perform the install, you don't need to know the root password, but you do need to have the right sudo config.
You can install local versions of some applications without being root, but you wouldn't normally use a package system like yum to do that.