29

I followed this guide to install Redis "How To Install and Configure Redis on Ubuntu 16.04". However, now I want to remove the Redis from my server (Ubuntu 16.04).

The command sudo apt-get purge --auto-remove redis-server doesn't work as I installed the Redis manually..

How can I uninstall it now?

1
  • You did a manual install so apt-get purge won't work Oct 31, 2017 at 8:00

1 Answer 1

39

Go into the folder where you ran sudo make install and run sudo make uninstall and that would get rid of it but first you have to stop it see steps below.

Steps:

  1. Stop redis with:

     sudo systemctl stop redis
     sudo systemctl disable redis
    
  2. Change into install location as per the tutorial link:

     cd redis-stable
     sudo make uninstall
    
  3. Get rid of the folders created:

     sudo rm /etc/redis/redis.conf
     sudo rm -rf /var/lib/redis
    
  4. Remove redis user:

     sudo deluser --group redis # OR
    
  5. Remove redis group:

     sudo delgroup redis
    
1
  • 2
    redis group still remains, maybe update your answer to include that last piece of information for completeness, otherwise great answer. Jun 15, 2022 at 11:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .