Jump to content

How would I uninstall a Bash Shell script?

Go to solution Solved by Nayr438,

It has a built in function to remove the packages

download https://github.com/piscripts/pijarr/blob/master/pijarr-setup.sh

 

Change

main() {
    clear
    term_colors
    script_info
    check_superuser
    check_continue
    pkg_update
    pkg_upgrade
    pkg_cleanup
    setup_dependencies
    #remove_app jackett sonarr lidarr radarr
    setup_app jackett sonarr lidarr radarr
    remove_temp
    final_info
}

to

main() {
    clear
    term_colors
    script_info
    check_superuser
    check_continue
    #pkg_update
    #pkg_upgrade
    #pkg_cleanup
    #setup_dependencies
    remove_app jackett sonarr lidarr radarr
    #setup_app jackett sonarr lidarr radarr
    #remove_temp
    #final_info
}

then run it.

I installed this https://github.com/piscripts/pijarr, it's "a bash shell script to automate the setup and configuration of JackettSonarrRadarr, and Lidarr on a Raspberry Pi."

 

Which works great, and I only wanted to test out if radarr/sonarr was good for me, turns out I dont really need it.

So I want to uninstall all 4 of those, how would I do that?

It installed some extra stuff, but I can probably remove unnesessary stuff with apt. I have access to ssh and vnc, those apps arent shown in the gui as they are added via script.

 

I do have a backup point set before I installed that script, so I can just go back to it, but I wanna know how to uninstall anyway.

Thanks.

Link to comment
Share on other sites

Link to post
Share on other sites

Try the following commands one at a time and see if you see anything related to uninstall in the results...

 

ls /usr/bin | grep pijarr

ls /usr/local/bin | grep pijarr

ls usr/sbin | grep pijarr

 

...if the script left an uninstaller it should be in one of these 3 directories otherwise its just a case of manually removing everything you don't want. Remember you really don't need to worry about orphan dependency libraries, having them installed won't affect the system in any way.

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
Share on other sites

Link to post
Share on other sites

image.png.ec7892fc11ceb7bc84560cd45c5f0911.png

 

Maybe you can try uncomment that and remove the line below it. Run the script again.

| Intel i7-3770@4.2Ghz | Asus Z77-V | Zotac 980 Ti Amp! Omega | DDR3 1800mhz 4GB x4 | 300GB Intel DC S3500 SSD | 512GB Plextor M5 Pro | 2x 1TB WD Blue HDD |
 | Enermax NAXN82+ 650W 80Plus Bronze | Fiio E07K | Grado SR80i | Cooler Master XB HAF EVO | Logitech G27 | Logitech G600 | CM Storm Quickfire TK | DualShock 4 |

Link to comment
Share on other sites

Link to post
Share on other sites

It has a built in function to remove the packages

download https://github.com/piscripts/pijarr/blob/master/pijarr-setup.sh

 

Change

main() {
    clear
    term_colors
    script_info
    check_superuser
    check_continue
    pkg_update
    pkg_upgrade
    pkg_cleanup
    setup_dependencies
    #remove_app jackett sonarr lidarr radarr
    setup_app jackett sonarr lidarr radarr
    remove_temp
    final_info
}

to

main() {
    clear
    term_colors
    script_info
    check_superuser
    check_continue
    #pkg_update
    #pkg_upgrade
    #pkg_cleanup
    #setup_dependencies
    remove_app jackett sonarr lidarr radarr
    #setup_app jackett sonarr lidarr radarr
    #remove_temp
    #final_info
}

then run it.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×