Comments (6)
@timothystewart6
Good call. Yours looks like it would work. Here is the script I use occasionally in testing:
#!/bin/bash
dpkg --purge libupsclient4 libusb-0.1-4 nut-client nut-server nut nut-cgi
apt remove apache2 -y
apt remove snmp snmpd libsnmp-dev snmp-mibs-downloader -y
rm /etc/snmp/snmpd.conf
apt-get purge apache2 -y
rm -rf /etc/apache2
https://gist.github.com/dzomaya/eb3c733e4c157dbbd516c5f4e8ac3fca
I don't recall why I use dpkg
for the Network UPS Tools and Libusb stuff, but I think there was a reason.
I'll at least add to the readme in the next week or so. Could also add a secondary script to the repo.
I'll tag this as a good first issue in case someone wants to hop in with a PR in the interim.
from nutandrpi.
I think it's something like this:
sudo sudo apt-get remove nut nut-cgi snmp snmpd libsnmp-dev snmp-mibs-downloader --purge
sudo rm -rf /etc/nut
sudo rm -rf /etc/snmp
sudo apt-get autoremove
sudo reboot
from nutandrpi.
Thanks! I think autoremove
will clean up all dependencies that aren't being used anymore. nut
installs quite a few.
The following packages were automatically installed and are no longer required:
apache2 apache2-bin apache2-data apache2-utils fontconfig-config
fonts-dejavu-core libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libc-dev-bin libc-devtools libc6-dev libcrypt-dev
libdeflate0 libfontconfig1 libfreetype6 libgd3 libjbig0 libjpeg-turbo8
libjpeg8 libltdl7 liblua5.3-0 libmysqlclient21 libnetsnmptrapd40
libnsl-dev libnutscan1 libpci-dev libsensors-dev libsnmp-perl libssl-dev
libtiff5 libtirpc-dev libudev-dev libupsclient4 libusb-0.1-4 libwebp7
libwrap0-dev libxpm4 linux-libc-dev manpages-dev mysql-common
rpcsvc-proto smistrip ssl-cert zlib1g-dev
so you don't have to one off remove things like apache2
from nutandrpi.
Yeah, autoremove
seems better than what I was doing.
from nutandrpi.
@timothystewart6
https://github.com/dzomaya/NUTandRpi#how-to-uninstall
Added to README. I did NOT include the reboot step you mention, but let me know if you think there is an important reason to always reboot (I generally like to suggest it, but didn't come up with a specific reason to make it a step here).
Other than that, pretty closely mirrors what you suggested with some minor tweaks/notes.
from nutandrpi.
@timothystewart6 https://github.com/dzomaya/NUTandRpi#how-to-uninstall
Added to README. I did NOT include the reboot step you mention, but let me know if you think there is an important reason to always reboot (I generally like to suggest it, but didn't come up with a specific reason to make it a step here).
Other than that, pretty closely mirrors what you suggested with some minor tweaks/notes.
For sure! Reboot is not necessary! Thank you!
from nutandrpi.
Related Issues (11)
- Open ports? HOT 7
- Update the docs on how to export the data to grafana. HOT 6
- Apache2 not installing (fix) HOT 3
- Play date with Klipper HOT 4
- Build from source/support 2.8.0
- Adding multiple UPSs with the script HOT 6
- Add option to enable remote upsd connections
- Fix references to tripplite.com and [email protected] to call out something else HOT 1
- Script is failing to install "snmp-mibs-downloader" on debian 11. HOT 7
- Accessing UPS info page results in "Error: can't open template file (upsstats.html)" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nutandrpi.