Difference between revisions of "Uninstall"

From OpenZFS on OS X
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:About O3X]]
 
[[Category:About O3X]]
 +
[[Category:Getting and installing O3X]]
 
== Uninstalling a Release Version ==
 
== Uninstalling a Release Version ==
  

Revision as of 10:41, 20 March 2014

Uninstalling a Release Version

  • If you have the folder Docs & Scripts from when you installed, go there, otherwise open the Open_ZFS_on_OS_X_x.y.z.dmg file you downloaded when you originally installed. If you no longer have the .dmg file, you can re-download it, on the Downloads page.
  • Open the folder Docs & Scripts.
  • Find the file named uninstall-openzfsonosx.sh.
  • Open Terminal.app. You can open it from Spotlight, or from the folder in Finder /Applications/Utilities.
  • Close all open files from your pools.
  • Export every pool.
sudo zpool list
 
#For each pool listed
sudo zpool export $pool1name
sudo zpool export $pool2name
...
#Verify all the pools have been exported.
sudo zpool status
  • Now drag and drop the file uninstall-openzfsonosx.sh onto your Terminal window. Or just type
/Volumes/OpenZFS*/Docs\ \&\ Scripts/uninstall-openzfsonosx.sh
  • Press return.
  • You will be prompted for your password. Enter that and press return.

The script will run and uninstall o3x.

Uninstalling a Source Install

The procedure is the same as for uninstalling a release version, except you need to use the uninstaller script named "uninstall-make-install.sh" instead of the one named "uninstall-openzfsonosx.sh." And if you wish, in Finder you can drag ~/Developer/spl and ~/Developer/zfs to the Trash.

Alternatively, you can determine the list of files that were installed by installing to a DESTDIR.

cd ~/Developer
 
cd spl
sudo make DESTDIR=~/Developer/destdir install
cd ..
 
cd zfs
sudo make DESTDIR=~/Developer/destdir install
cd ..
 
cd destdir
find . -type f > o3x_uninstall_list.txt
open o3x_uninstall_list.txt

Now you can manually remove each of the files list either by using "rm" in Terminal.app or by dragging them to the trash from Finder. You can also remove ~/Developer/destdir, ~/Developer/spl, and ~/Developer/zfs when you're done.

Uninstalling a Development Build DMG

Make sure you have exported all of your pools as described in the section on uninstalling a release version.

Then you can run this script: https://gist.github.com/ilovezfs/9547643

mkdir -p ~/Developer
cd ~/Developer
git clone https://gist.github.com/9547643.git
cd 9547643/
chmod +x uninstall-development-dmg.sh
./uninstall-dmg.sh