Uninstall

From OpenZFS on OS X
Revision as of 10:17, 14 March 2014 by Ilovezfs (Talk | contribs)

Jump to: navigation, search

Uninstalling the Official Release

  • 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 an Installation from Source

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.