Bobcares

Uninstall Redis from Ubuntu – How we do it

by | Feb 18, 2020

Are you looking for how to uninstall Redis from Ubuntu? We can help you with it.

Website performance enhancing tools like Redis can be installed either from the repository or from the source.

But improper uninstallation leaves redundant files and affects the working of Redis.

At Bobcares, we often get requests to uninstall Redis and reinstall, as a part of our Server Management Services.

Today, let’s see a brief guide on how our Support Engineers make Redis working.

 

What is Redis?

Redis aka Remote Dictionary Server is an open-source, in-memory, data structure server. Its major application is to deliver fast loading websites by enabling caching.

We can install Redis in two ways. One way is the installation from the repository.

Whereas, the other way is manually installing Redis using the makefile. This is called installing from the source.

Customers often approach us to uninstall Redis when they got stuck due to improper installation. Usually, this happens when there are multiple installations of the same package.

Hence, while uninstalling a package its important to remove its dependencies and related data files to avoid further errors.

So let’s see how our Support Engineers do a complete removal of Redis from an Ubuntu server.

 

Error due to improper uninstall

In some servers, checking the redis-server status shows up as,

Uninstall Redis from Ubuntu.

Usually, this error denotes a redundant package left after removing Redis. So to fix this, we need to completely remove the existing package and then do a complete installation.

So let’s see how to completely uninstall the Redis package from the server.

 

How to uninstall Redis from Ubuntu?

The uninstallation process depends on the way the user installs a package. So let’s see how our Support Engineers uninstall Redis properly in both cases.

 

1. Using the package manager

The Ubuntu server install packages with apt-get. So in such cases, we uninstall Redis using the command,

apt-get purge --auto-remove redis-server

Here --auto-remove option removes the Redis server package and its dependencies.

And the purge option removes the configuration and other Redis related data files.

This successfully uninstalls the Redis from the Ubuntu server.

After uninstalling the package, in the Ubuntu system check if the package is present or not. For this, we use the command,

apt-cache policy redis-server

This command gives the status of the package in the server. A server without Redis server shows up as:

root@serv:~# apt-cache policy redis-server
redis-server:
Installed: (none)

 

2. Uninstall Redis manually

Some customers install the Redis by compiling the source package. Hence we need to remove it manually.

Let’s see how our Support Engineers do this.

Initially, we stop the Redis server, using the command,

systemctl stop redis

Next, we remove the Redis file from the server. First, we remove the files in /usr/local/bin using the command,

rm /usr/local/bin/redis-*

Then we remove the configuration.

rm /etc/redis/redis.conf

rm -r /etc/redis/

Next, we remove the log files using the command,

rm /var/log/redis_*

Similarly, we remove the data directory.

rm -r /var/lib/redis/

Finally, we remove the init scripts.

rm /etc/init.d/redis_*

Later we check for any PID file and remove that too.

rm /var/run/redis_*

Finally, we restart the server to completely remove Redis.

 

[Still, having trouble in uninstalling Redis? – We can help you.]

 

Conclusion

In short, proper uninstalling of Redis involves removing the dependencies and related data files. Today, we saw how our Support Engineers uninstall Redis from Ubuntu without any remnants.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF