How do you remove zookeeper in Linux / UNIX using apt-get command?
Here is the tutorial to learn how to uninstall zookeeper with apt-get command.
Step 1: Open a terminal with 'su' access and enter the command as shown below.
apt-get remove zookeeper -y
Step 2: The command reads the package lists and proceeds with the uninstallation.
Result of the Command Execution shown below:
root@hiox:~ apt-get remove zookeeper -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libpcsclite1 libjaxp1.3 java update notifier common fakeroot libxerces2 java
libxxf86dga1 iso codes libsvga1 libxxf86vm1 python newt
language pack zh hant base libx86 1 java common libgomp1 icedtea 6 jre cacao
python apt libnspr4 0d default jre headless znc tcl openjdk 6 jre lib
firefox locale zh hans firefox locale zh hant gcc 4.4 cpu checker
openjdk 6 jre headless libavahi common data libcups2 gcc
linux headers 2.6.32 74 libggi2 linux headers 2.6.32 74 generic libgii1
tzdata java libaa1 znc perl linux headers generic manpages libzookeeper java
libzzip 0 13 libgii1 target x tcl8.5 libperl5.10 language pack zh hans base
libc ares2 libc6 dev libavahi client3 ca certificates java linux libc dev
patch manpages dev language pack zh hans language pack zh hant
libggi target x libc dev bin binutils znc extra libavahi common3
liblog4j1.2 java libjline java libnss3 1d
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
zookeeper
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 123kB disk space will be freed.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 48436 files and directories currently installed.)
Removing zookeeper ...
root@hiox:~