Difference between revisions of "Uninstall"
From OpenZFS on OS X
(→Uninstalling a source install) |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | == Uninstalling | + | [[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. |
− | Open the folder Docs & Scripts. | + | *Open the folder Docs & Scripts. |
− | Find the file named uninstall-openzfsonosx.sh. | + | *Find the file named uninstall-openzfsonosx.sh. |
− | Open Terminal.app. You can open it from Spotlight, or from the folder in Finder /Applications/Utilities. | + | *Open Terminal.app. You can open it from Spotlight, or from the folder in Finder /Applications/Utilities. |
− | Close all open files from your pools. | + | *Close all open files from your pools. |
− | Export every pool. | + | *Export every pool. |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo zpool list | 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 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | *Now drag and drop the file uninstall-openzfsonosx.sh onto your Terminal window. Or just type | |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | + | /Volumes/OpenZFS*/Docs\ \&\ Scripts/uninstall-openzfsonosx.sh | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | *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|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. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | / | + | 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 | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | 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.