Giter VIP home page Giter VIP logo

Comments (6)

dzomaya avatar dzomaya commented on June 11, 2024 2

@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.

timothystewart6 avatar timothystewart6 commented on June 11, 2024 1

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.

timothystewart6 avatar timothystewart6 commented on June 11, 2024 1

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.

dzomaya avatar dzomaya commented on June 11, 2024 1

Yeah, autoremove seems better than what I was doing.

from nutandrpi.

dzomaya avatar dzomaya commented on June 11, 2024 1

@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 avatar timothystewart6 commented on June 11, 2024 1

@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 (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.