updated README and Makefile

Added uninstall as dependency for purge in Makefile.
Changed pkexec and pkcon to sudo and apt and dnf
This commit is contained in:
Pranav Jerry 2021-08-19 12:03:20 +05:30
parent 7e0fe5ef4c
commit be8de69b73
Signed by: pranav
GPG Key ID: F1DCDC4FED0A0C5B
2 changed files with 8 additions and 7 deletions

View File

@ -20,7 +20,7 @@ uninstall:
echo "Do 'sudo make purge' to remove it."
# remove config files, like apt purge
purge:
purge: uninstall
rm -rf /etc/naxalnet
clean:

View File

@ -84,9 +84,9 @@ Install the requirements from the Ubuntu repositories:
```sh
# batctl is optional
pkcon install systemd python3-pip iwd batctl
sudo apt install systemd python3-pip iwd batctl build-essential
# Now, install dasbus with pip
pkexec pip3 install dasbus
sudo pip3 install dasbus
```
Now follow the instructions in the
@ -100,7 +100,7 @@ available on Fedora 34 and above. Install the dependencies:
```sh
# systemd-resolved may be required for rawhide
pkcon install systemd-networkd iwd python3-dasbus python3-setuptools
sudo dnf install systemd-networkd iwd python3-dasbus python3-setuptools
```
Now head over to the [next section][install-manual] to install naxalnet.
@ -258,14 +258,15 @@ When a shutdown occurs, [enable naxalnet][enablenx]
## Uninstalling
If you installed naxalnet manually, use make uninstall to remove
naxalnet and its data files:
naxalnet and its data files. This requires python pip to be installed.
```sh
# Uninstall the program, keeping the config files
sudo make uninstall
# Or, to uninstall and remove config files
sudo make purge
```
This requires python pip to be installed.
## Contributing or reporting bugs
See [HACKING.md](HACKING.md)