diff --git a/README.md b/README.md index 4e82dc0..b9b971f 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,9 @@ $ curl https://raw.githubusercontent.com/geerlingguy/rpi-clone/master/install | > Alternatively, you can manually install from source if you don't trust the `curl | sudo bash` install script: > > ``` -> git clone https://github.com/geerlingguy/rpi-clone.git -> cd rpi-clone -> sudo cp rpi-clone rpi-clone-setup /usr/local/sbin +> $ git clone https://github.com/geerlingguy/rpi-clone.git +> $ cd rpi-clone +> $ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin > ``` Make sure `/usr/local/sbin` is in your $PATH and then run @@ -715,5 +715,14 @@ Ok to proceed with the clone? (yes/no): ``` +## Uninstall +Uninstall by removing the two `rpi-clone` scripts that were downloaded: + +``` +$ sudo rm -rf /usr/local/sbin/rpi-clone* +``` + +If you installed manually by cloning this GitHub project (instead of the `curl | sudo bash` method), delete the clone as well. + ## Author Original author: Bill Wilson (billw--at--gkrellm.net) diff --git a/docs/index.md b/docs/index.md index cbf6b96..9cc60da 100644 --- a/docs/index.md +++ b/docs/index.md @@ -50,6 +50,14 @@ sudo rpi-clone nvme0n1 For an exhaustive list of options and usage scenarios, read [this project's README](https://github.com/geerlingguy/rpi-clone). +## Uninstall + +Assuming you used the `install` script with the `curl | sudo bash` installation method, the following command will remove both files that were downloaded: + +``` +sudo rm -rf /usr/local/sbin/rpi-clone* +``` + ## Code and License The code for `rpi-clone` is maintained on GitHub: diff --git a/install b/install index d70982b..d894690 100755 --- a/install +++ b/install @@ -5,7 +5,7 @@ # Downloads and installs rpi-clone and rpi-clone-setup into /usr/local/bin # # Command to use to install rpi-clone: -# curl https://github.com/geerlingguy/rpi-clone/blob/master/install | sudo bash +# curl https://raw.githubusercontent.com/geerlingguy/rpi-clone/master/install | sudo bash # # rpi-clone is Copyright (c) 2018-2019 Bill Wilson #