2020-08-23 16:53:03 +10:00
# Upgrade or uninstall
## Upgrading
2020-09-05 17:23:04 +10:00
### Note for users upgrading to Version 3
2020-08-28 18:13:46 +10:00
2020-09-05 17:23:04 +10:00
To upgrade from an earlier version to Version 3.x you will need to remove your existing install.
2020-08-28 18:13:46 +10:00
1. save a copy of your `config.yaml` file somewhere safe
2020-09-05 17:23:04 +10:00
2. run `pip3 uninstall ephemetoot`
3. run `pip3 install ephemetoot`
2020-08-28 21:14:44 +10:00
4. check your config file is in the current directory
2020-09-05 17:23:04 +10:00
5. check everythign is working with `ephemetoot --test` or `ephemetoot --version`
2020-08-28 18:13:46 +10:00
2020-08-26 21:57:13 +10:00
### Upgrading with pypi
2020-08-28 18:13:46 +10:00
To upgrade to a new version, the easiest way is to use pip to download the latest version from pypi (remembering that for your machine you may need to substitute `pip` for `pip3` ):
2020-08-26 21:57:13 +10:00
```shell
2020-08-28 18:13:46 +10:00
pip3 install --upgrade ephemetoot
2020-08-26 21:57:13 +10:00
```
2020-08-23 16:53:03 +10:00
### Upgrading with git
To upgrade to a new version using git, run the following from inside the `ephemetoot` directory:
```shell
git fetch --tags
2020-08-26 21:57:13 +10:00
git checkout [latest-tagname]
2020-08-28 18:13:46 +10:00
pip3 install .
2020-08-23 16:53:03 +10:00
```
### Upgrading with a ZIP file
2020-08-26 21:57:13 +10:00
To upgrade without using git or pypi:
2020-08-23 16:53:03 +10:00
* put your config file somewhere safe
* download and unzip the zip file into your `ephemetoot` directory over the top of your existing installation
* move your config file back in to the ephemetoot directory
2020-09-05 17:23:04 +10:00
* run `pip3 install .` from within the directory
2020-08-23 16:53:03 +10:00
## Uninstalling
Uninstall using pip:
```shell
2020-08-28 18:13:46 +10:00
pip3 uninstall ephemetoot
2020-08-23 16:53:03 +10:00
```
If you scheduled a `launchd` job on MacOS using `--schedule` , you will also need to unload and remove the scheduling file:
```shell
launchctl unload ~/Library/LaunchAgents/ephemetoot.scheduler.plist
rm ~/Library/LaunchAgents/ephemetoot.scheduler.plist
```
---
2020-08-26 21:57:13 +10:00
* [Home ](/ )
2020-08-23 16:53:03 +10:00
* [Installation ](./install.md )
2020-08-26 21:57:13 +10:00
* [Options ](./options.md )
* [Contributing ](./contributing.md )