Xcode Command line tools present but not showing installed

Hey guys , I am new to mac I just downloaded the command line tools 12.4 from the apple developer site it was in .dmg file because xcode-select --install was getting stuck at "finding software". I had put that in my Xcode developer folder but when I run xcode-select -p its not showing the path /Applications/Xcode.app/Contents/Developer or if i run xcode-select --install it asks to install command line(gets stuck on finding software. What should I do , I am new to mac I have no idea , can not find anything on youtube which is helpful.

Accepted Answer

You’re setting up symbolic links with the way you’re trying to copy files around, here to the installer, to the DMG disk image, and to the installation kit. (That’s the arrow shown in the lower left corner of the icons.)

If you have enough room, load Xcode, and let that load the command-line tools. If you don’t, then double-click on the package (pkg) file to install the tools.

Then clean up all those links. Control-click, and select move-to-trash.

Some common shortcuts: https://support.apple.com/en-us/HT201236

Xcode Command line tools present but not showing installed
 
 
Q