Git For El Capitan



OS_X_10.11_El_Capitan_ISO.txt
Git For El Capitan
First of all this is not my work, I am just pasting my logs so that it would be useful for others.
Thank the guy here http://forums.macrumors.com/threads/how-to-create-el-capitan-os-x-bootable-dvd.1923894/page-2#post-22064565
# In VM OSX 10.7, double click 'Install OS X El Capitan.app.dmg'
# Now, you will have it mounted
192-168-181-137:~ vikas$ df -kgP | grep Capitan
/dev/disk1s2 5 5 0 98% /Volumes/Install OS X El Capitan
192-168-181-137:~ vikas$
# Mount the installer image
192-168-181-137:~ vikas$ hdiutil attach /Volumes/Install OS X El Capitan/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 EFI
/dev/disk2s2 Apple_HFS /Volumes/install_app
192-168-181-137:~ vikas$
# Create a ElCapitan blank ISO image of 9900mb with a Single Partition - Apple Partition Map
192-168-181-137:~ vikas$ hdiutil create -o /tmp/ElCapitan.cdr -size 9900m -layout SPUD -fs HFS+J
............
created: /tmp/ElCapitan.cdr.dmg
192-168-181-137:~ vikas$
# Mount the ElCapitan blank ISO image
192-168-181-137:~ vikas$ hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
/dev/disk3 Apple_partition_scheme
/dev/disk3s1 Apple_partition_map
/dev/disk3s2 Apple_HFS /Volumes/install_build
192-168-181-137:~ vikas$
# Restore the Base System into the ElCapitan blank ISO image
192-168-181-137:~ vikas$ asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
Validating target...done
Validating source...done
Retrieving scan information...done
Validating sizes...done
Restoring ....10....20....30....40....50....60....70....80....90....100
Remounting target volume...done
192-168-181-137:~ vikas$
# Remove Package link and replace with actual files
192-168-181-137:~ vikas$ rm /Volumes/OS X Base System/System/Installation/Packages
192-168-181-137:~ vikas$ cp -rp /Volumes/install_app/Packages /Volumes/OS X Base System/System/Installation/
# Copy El Capitan installer dependencies
192-168-181-137:~ vikas$ cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS X Base System/BaseSystem.chunklist
192-168-181-137:~ vikas$ cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS X Base System/BaseSystem.dmg
# Unmount the installer image
192-168-181-137:~ vikas$ hdiutil detach /Volumes/install_app
'disk2' unmounted.
'disk2' ejected.
192-168-181-137:~ vikas$
# Unmount the ElCapitan ISO Image
192-168-181-137:~ vikas$ hdiutil detach /Volumes/OS X Base System/
'disk3' unmounted.
'disk3' ejected.
192-168-181-137:~ vikas$
# Create a sparseimage and auto-size it
192-168-181-137:~ vikas$ hdiutil convert /tmp/ElCapitan.cdr.dmg -format UDSP -o /tmp/ElCapitan
Reading Driver Descriptor Map (DDM : 0)…
Reading Apple (Apple_partition_map : 1)…
Reading disk image (Apple_HFS : 2)…
.....................
Elapsed Time: 32.108s
Speed: 222.6Mbytes/sec
Savings: 27.8%
created: /tmp/ElCapitan.sparseimage
192-168-181-137:~ vikas$ hdiutil resize -size `hdiutil resize -limits /tmp/ElCapitan.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/ElCapitan.sparseimage
# Convert the ElCapitan sparseimage to ISO/CD master
192-168-181-137:~ vikas$ hdiutil convert /tmp/ElCapitan.sparseimage -format UDTO -o /tmp/ElCapitan
Reading Driver Descriptor Map (DDM : 0)…
Reading Apple (Apple_partition_map : 1)…
Reading disk image (Apple_HFS : 2)…
.....................
Elapsed Time: 28.851s
Speed: 248.0Mbytes/sec
Savings: 0.0%
created: /tmp/ElCapitan.cdr
192-168-181-137:~ vikas$
# Remove the unwanted images
192-168-181-137:~ vikas$ rm /tmp/ElCapitan.cdr.dmg
192-168-181-137:~ vikas$ rm /tmp/ElCapitan.sparseimage
# Rename the ElCapitan ISO image and move it to the desktop
192-168-181-137:~ vikas$ mv /tmp/ElCapitan.cdr ~/Downloads/ElCapitan.iso
# Eject the Installation dmg now in Finder
Git For El Capitan

commented Nov 20, 2017

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Installing Homebrew on Mac OS X prior to El Capitan (that is Yosemite, Mavericks and others) used to be a breeze. But with a new change in OS X El Capitan called SIP - installing Homebrew has become a bit complicated.

You need not worry, I have got you covered.

There are two parts to this tutorial. If you want to uninstall or delete Homebrew first and then re-install it on El Capitan then follow Part 2 of this tutorial below. However, if you are doing a fresh installation of El Capitan then follow the steps outlined in Part 1 of this tutorial.

Happy Brewing!

Part 1: How to install fresh copy of Homebrew in OS X El Capitan

Step 1 - Install XCode by downloading it from here. This is needed for installing the XCode command line tools which in turn is needed by Homebrew. You might skip this step if you already have XCode installed.

If it complains about permission issues, then you have to fix it before you can continue. This is an additional thing that you need to do in Mac OS X El Capitan because Apple introduced this new feature called System Integrity Protector. Here is a guide to how you can fix this permission issue with Homebrew on OS X El Capitan. El Capitan no longer allows modifications to /usr/bin, and /usr/local/bin is preferred over /usr/bin, by default. The installer installs the uninstall.sh script, which has also been updated to remove the new symlinks created. ErmaC at InsanelyMac reshaped the Chameleon code into a branch called ‘Enoch’. This branch can boot El Capitan, and also can patch the kernel on the fly, as Clover does. This is not an official Enoch guide. This site recommends Clover for OS X El Capitan- the following guide is an alternative to this site’s main Clover method. El Capitan comes bundled by default with Git 2.6.4. The two vulnerabilities, both heap-based buffer overflows, allow attackers to execute malicious code on the machine. The only condition for an.

Quick Note - If you already have XCode installed then go to STep 2. Also, You can skip this step and jump to Step 3 instead and see if the Homebrew installer complains about XCode command line tools. If it does, then come back to this step and continue.

Step 2 - Install Command Line tools by running the following command in terminal:

Step 3 - Now, you need to get a fresh copy of Homebrew and then run the install script. You can perform both these tasks using this one command in the terminal app:

If it complains about permission issues, then you have to fix it before you can continue. This is an additional thing that you need to do in Mac OS X El Capitan because Apple introduced this new feature called System Integrity Protector. Here is a guide to how you can fix this permission issue with Homebrew on OS X El Capitan.

After you have fixed the permission issue, re-run the command above in the terminal to begin the Homebrew installation process.

Step 4 - Run the Brew Doctor utility to check for issues or warnings in the terminal

brew doctor

If it shows errors, then you need to fix them before you can continue. You might, however, skip any warnings that the doctor tool shows.

All the apps and libraries that you install using Homebrew are located in this folder: /usr/local/Cellar

After Homebrew is installed, you can use some of the following commands to perform different tasks with it:

  1. You can search for an application using: brew search
  2. You can install a new application using: brew install <application-name>
  3. In order to list all apps installed by Homebrew, you can use: brew list
  4. For removing an app installed via Homebrew: brew remove <application-name>
  5. Homebrew can be updated using: brew update
  6. man brew will show other switches and command options for Homebrew.

Part 2: How to uninstall and re-install Homebrew in OS X El Capitan

Step 1 - First you will have to delete the Cellar folder of Homebrew that is usually available in the /usr/local folder. To do this, you need to run the following command in the terminal:

Capitan

rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

Please note - If the above command throws a permissions error then you need to read this article to fix the Homebrew permissions in OS X El Capitan.

Step 2 - Install Xcode & XCode command line tools. This is an optional step but for many users, installing the tools mentioned in this step is mandatory. So in order to check, if you have to really perform this step, what you can do is quickly skip to Step 3 and run the command mentioned on that step - if you see success then you can safely skip this step, else continue here:

First download and install Xcode from this link - https://itunes.apple.com/au/app/xcode/id497799835?mt=12

Next, install Xcode command line tools by running the following command in your terminal:

Git For El Capitan Download

If it complains about permissions, then use sudo and run the same command again.

Git For El Capitan

Step 3 - Now that you have a cleaned-up Brew data folder, you need to fetch a fresh copy of Homebrew and start the installation process by running this command in the terminal:

Git For El Capitan Update

You might be prompted for your root password and when that happens, enter the password and continue. You can find some sample output towards the end of this post.

Step 4 - After the installation completes, you should run the doctor utility on brew to see if there were any issues with the Homebrew installation. This can be done by running the following command:

Git For El Capitan Mac

brew doctor

If it returns any error, try fixing them. If you see just warnings then you could ignore them.

Git For El Capitan Free

At this point you have succesfully installed Homebrew on El Capitan and you can use the commands mentioned above to perform various operations.

Git Mac El Capitan

Some sample Outputs: