mirror of
https://github.com/acedanger/shell.git
synced 2025-12-05 21:40:12 -08:00
869 B
869 B
Create a portable bash shell script to safely uninstall the Fabric AI CLI and related packages on Debian, Ubuntu, and Fedora systems. The script must:
- Detect the operating system and select the appropriate package manager (
apt,dnf, oryum). - Uninstall Fabric packages installed via system package managers and Python package managers (
pip,pip3). - Check for errors after each removal step; abort the script if a critical error occurs.
- Prompt the user for confirmation before making any changes.
- Advise the user to reboot the system if required after uninstallation.
- Log all actions and errors to a user-specified log file.
- Be fully self-contained and compatible with bash.
Reference the official Fabric documentation and your distribution’s package manager documentation for implementation details.