how to completely remove eclipse, Linux - linux

I'm running BackBox linux
I installed eclipse IDE for C/C++ by downloading it from https://www.eclipse.org/downloads/packages/release/helios/m7/eclipse-ide-linux-developers
i removed eclipse using sudo apt-get autoremove --purge eclipse
and then i executed sudo find / -name *[E,e]clipse* -exec sudo rm -rf {} \;
now when i do find (with sudo) on *[E,e]clipse* i get find: ‘/run/user/1000/gvfs’: Permission denied
and when i search for eclipse in the search bar i still see an icon of eclipse
also Eclipse is still there in the in the apps list
i'm seeking to understand why is this happening and how to completely remove it

You were almost done,run this :
sudo apt-get autoremove eclipse*
rm -r ~/.eclipse/
this should remove all dependencies & packages for eclipse.

Run following commands:
sudo apt-get purge eclipse*
sudo apt-get autoremove eclipse*
rm -r ~/.eclipse/
This will uninstall the dependencies and related packages that were installed along with eclipse. This should do the trick.

Related

How to remove docker aufs folder?

I've uninstalled docker with the following command
sudo apt-get purge docker-engine
sudo apt-get autoremove --purge docker-engine
The above command works fine, no problem. But when I try to run sudo rm -rf /var/lib/docker as instructed in Docker docs, I get the following error
rm: cannot remove '/var/lib/docker/aufs/mnt/04fc3de09910bf8fae3d0430b0debbf3032d480bef4ced9f40b1f532bf478ef9': Is a directory
What should I do to remove this content?
First remove docker-engine using sudo apt remove docker-engine
Reboot.
Then remove /var/lib/docker/aufs with sudo rm -rf /var/lib/docker/aufs.
Perform the Ubuntu upgrade with sudo do-release-upgrade
You can now re-install docker-engine using sudo apt install docker-engine (or don't, your choice)
Try sudo su and then rm -rf /var/lib/docker/aufs/mnt/04fc3de09910bf8fae3d0430b0debbf3032d480bef4ced9f40b1f532bf478ef9

Unable to find packages error

I ran two commands:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
Now if I try to install any software it is showing
unable to find the package.
The issue is occurring because, you have removed the local cache of apt package manager. Run sudo apt-get update to get all packages list.

Uninstall nodejs installed from binary distribution files

I have installed nodejs(node-v4.2.1) in ubuntu 14.04 using zip file(tar.gz) downloaded from node js website(not using apt-get install.The location of installed node is /usr/local/bin.
while trying to uninstall it using sudo apt-get purge,sudo apt-get remove &sudo apt-get autoremove is not working.How could I uninstall it?
I got the solution from the links given below
http://hungred.com/how-to/completely-removing-nodejs-npm/
How to install node binary distribution files on Linux
I did the following steps and it works fine
sudo rm -rf /usr/local/bin/npm
sudo rm -rf /usr/local/bin/node
sudo rm -rf /usr/local/lib/node_modules/
sudo rm -rf /usr/local/include/node/
sudo rm -rf /usr/local/share/man/man1/node.1
cd /home/userName
ls -ld .?* (to display hidden files)
# delete files/folders related with node
sudo rm -f .node_repl_history
sudo rm -rf .npm
To Re-install new version follow the below steps
1.Download new version from Node official website.In my case my downloaded file is node-v6.9.4-linux-x64.tar.xz
2.Move the file into /usr/local directory using the command
sudo mv Downloads/node-v6.9.4-linux-x64.tar.xz /usr/local
3.Use the below command to extract into appropriate directories in /usr/local
sudo tar --strip-components 1 -xf node-v6.9.4-linux-x64.tar.xz
-xf is to unzip .tar.xz for tar.gz use -xzf
4.verify installation
node --version
Check if there is an uninstall script in the zip, otherwise you need to clean /usr/local manually for any node related artefacts.

Not able to install youtube-dl

I have tried almost everything I could find on google but could not install youtube-dl on Debian Mint.
Try 1
Installed and updated with following commands:
sudo apt-get install youtube-dl
sudo youtube-dl -U
But when tried
youtube-dl http://www.youtube.com/watch?v=dwYatpwrs8s
Then I got
Hi! We changed distribution method and now youtube-dl needs to update itself one more time.
This will only happen once. Simply press enter to go on. Sorry for the trouble!
From now on, get the binaries from http://rg3.github.io/youtube-dl/download.html, not from the git repository.
Then I went to http://rg3.github.io/youtube-dl/download.html and followed the installation instructions:
Try 2
sudo wget http://youtube-dl.org/downloads/2013.05.23/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
Got the same error about the distribution change and new link.
Try 3
So I installed pip on my debian first and ran
sudo pip install --upgrade youtube_dl
But I am still getting same error and I have no idea what to do about it.
Just re-execute sudo youtube-dl -U and press Enter to update to the latest version. With your second try, you installed it a second time (to /usr/local/bin/ instead of /usr/bin) - you want only one.
Alternatively, simply uninstall youtube-dl with sudo apt-get remove -y youtube-dl. That should make the local version (/usr/local/bin/youtube-dl) the first one in your PATH again - if your PATH contains /usr/local/bin. If it doesn't, you can also just install youtube-dl to /usr/bin, with the following commands:
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/bin/youtube-dl
sudo chmod a+x /usr/bin/youtube-dl
If you already install remove it:
sudo rm /usr/bin/youtube-dl
sudo apt-get remove -y youtube-dl
Try the following command
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r
I solved the issue with this:
https://github.com/ytdl-org/youtube-dl/issues/3908
Use the following commands to update:
sudo rm /usr/bin/youtube-dl # or apt-get remove -y youtube-dl
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl

Uninstall Node.JS using Linux command line?

How do you uninstall node.js using the cmd line in linux?
For Ubuntu 12.04:
sudo apt-get remove nodejs
This will uninstall nodejs as well as npm.
Edit: If you know which package manager was used to install, it is best to uninstall with the same package manager. Examples for apt, make, yum are in other answers.
This is a manual approach:
Running which node will return something like /path/bin/node.
Then run cd /path
This is all that is added by Node.JS.
rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1
Now the only thing I don't know about is npm and what it has installed. If you install npm again into a custom path that starts off empty, then you can see what it adds and then you will be able to make a list for npm similar to the above list I made for node.
If you installed from source, you can issue the following command:
sudo make uninstall
If you followed the instructions on https://github.com/nodejs/node/wiki to install to your $HOME/local/node, then you have to type the following before the line above:
./configure --prefix=$HOME/local/node
Sorry the answer of George Bailey does work very fine when you
want absolutely remove the node from your machine.
This answer is referred from : #tedeh
https://github.com/nodesource/distributions/issues/486
If you wanna install a new version of node you have to use the code below
sudo rm -rf /var/cache/yum
sudo yum remove -y nodejs
sudo rm /etc/yum.repos.d/nodesource*
sudo yum clean all
And add new nodejs version to "yum" an new version of node
#using this command for Node version 8
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
#using this command for Node version 10
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
Install nodejs
sudo yum -y install nodejs
I hope it gonna help you guy!!!
To uninstall node I followed the accepted answer by #George, as I no longer have the sources, but before doing so I ran:
sudo npm rm npm -g
That seemed to get rid of npm from the system directories such as /usr/bin/npm and /usr/lib/npm. I got the command from here. I then found a ~/.npm directory, which I deleted manually. Honestly I don't know if every trace of npm has been removed, but I can't find anything else.
If you installed node using curl + yum:
sudo curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
sudo yum -y install nodejs
Then you can remove it using yum:
sudo yum remove nodejs
Note that using the curl script causes the wrong version of node to be installed. There is a bug that causes node v6.7 to be installed instead of v4.x intended by the path (../setup_4.x) used in the curl script.
This is better to remove NodeJS and its modules manually because installation leaves a lot of files, links and modules behind and later it create problems while we reconfigure another version of NodeJS and its modules.
Run the following commands.
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules
sudo rm -rf /usr/local/lib/node*
sudo rm -rf /usr/local/include/node*
sudo rm -rf /usr/local/bin/node*
and this done.
A step by step guide with commands is at http://amcositsupport.blogspot.in/2016/07/to-completely-uninstall-node-js-from.html
This helped me resolve my problem.
I think Manoj Gupta had the best answer from what I'm seeing. However, the remove command doesn't get rid of any configuration folders or files that may be leftover. Use:
sudo apt-get purge --auto-remove nodejs
The purge command should remove the package and then clean up any configuration files. (see this question for more info on the difference between purge and remove). The auto-remove flag will do the same for packages that were installed by NodeJS.
See the accepted answer on this question for a better explanation.
Although don't forget to handle NPM! Josh's answer covers that.
The answer of George Bailey works fine.
I would just add the following flags and use sudo if needed:
sudo rm -rf bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node
if you want to just update node, there's a neat updater too
https://github.com/creationix/nvm
to use,
git clone git://github.com/creationix/nvm.git ~/.nvm
source ~/.nvm/nvm.sh
nvm install v0.4.1
I think this works, at least partially (have not investigated):
nvm uninstall <VERSION_TO_UNINSTALL>
eg:
nvm uninstall 4.4.5
If you have yum you could do:
yum remove nodesource-release* nodejs
yum clean all
And after that check if its deleted:
rpm -qa 'node|npm'
after installing using the "ROCK-SOLID NODE.JS PLATFORM ON UBUNTU" script, i get this output. Which tells you how to uninstall nodejs.
Done. The new package has been installed and saved to
/tmp/node-install/node-v0.8.19/nodejs_0.8.19-1_i386.deb
You can remove it from your system anytime using:
dpkg -r nodejs
Best way to go around this is to do it right from the BEGINNING:
INSTALL BREW
#HERE IS HOW: PASTE IN TERMINAL
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
Then at the end of your .bashrc file(In your home directory press Ctrl + H)
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
Then restart terminal so the modification to .bashrc are reloaded
TO INSTALL NODE
brew install node
TO CHECK VERSION
node -v
npm -v
TO UPDATE NODE
brew update
brew upgrade node
TO UNINSTALL NODE
brew uninstall node
To Remove nodejs installed in centos 8:
From your home directory, run the below command
sudo yum remove nodejs
Enter y to confirm your command
In addition to apt or yum removal, clean any residual files to avoid conflicts if you ever install a new version:
sudo rm -rf /usr/local/bin/npm
sudo rm -rf /usr/local/share/man/man1/node*
sudo rm -rf /usr/local/lib/dtrace/node.d
sudo rm -rf ~/.npm
sudo rm -rf ~/.node-gyp
sudo rm -rf /opt/local/bin/node
sudo rm -rf opt/local/include/node
sudo rm -rf /opt/local/lib/node_modules
sudo rm -rf /usr/local/lib/node*
sudo rm -rf /usr/local/include/node*
sudo rm -rf /usr/local/bin/node*
For Centos 7 and 8
Remove NodeJS
sudo yum remove -y nodejs
sudo rm -rf /var/cache/yum
sudo rm /etc/yum.repos.d/nodesource*
sudo yum clean all
Remove residual files
whereis node
sudo rm -rfv /usr/bin/node /usr/local/bin/node /usr/share/man/man1/node.1.gz
sudo rm -rfv /usr/bin/npm /usr/local/bin/npm /usr/share/man/man1/npm.1.gz
sudo rm -rfv /usr/local/bin/npx
sudo rm -rfv /usr/local/lib/node*
sudo rm -rfv /usr/local/include/node*
sudo rm -rfv /usr/lib/node_modules/
Just remove these files. No need to do anything else.
rm -rf ~/.nvm
rm -rf ~/.npm
rm -rf ~/.bower

Resources