Difference between revisions of "Uninstall"

From OpenZFS on OS X
Jump to: navigation, search
(Uninstalling a source install)
 
(9 intermediate revisions by one user not shown)
Line 1: Line 1:
== Uninstalling the Official Release ==
+
[[Category:About O3X]]
 +
[[Category:Getting and installing O3X]]
 +
== 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.
 
*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.
Line 36: Line 38:
 
The script will run and uninstall o3x.
 
The script will run and uninstall o3x.
  
== Uninstalling an Installation from Source ==
+
== Uninstalling a source install ==
The procedure is the same as for [[#Uninstalling_the_Official_Release|uninstalling the official release]], 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.
+
The procedure is the same as for [[#Uninstalling_a_release_version|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.
 
Alternatively, you can determine the list of files that were installed by installing to a DESTDIR.
Line 57: Line 59:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
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.
+
Now you can manually remove each of the files listed 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.

Latest revision as of 07:41, 26 August 2015

Uninstalling a release version[edit]

  • 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[edit]

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 listed 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.