LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-26-2011, 03:43 AM   #1
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Rep: Reputation: 30
Help with removing Packages that aren't installed. But are really - apt-get


I installed nodejs and npm via using this configuration script from here http://apptob.org/ which installs 0.6.5 and npm 1.0.106.

However the install isn't functioning correctly and npm could not install packages. So I wanted to remove the installed packages and try a fresh install again.

So I did.
Code:
sayth@sayth-TravelMate-5740G:~$ sudo apt-get --purge remove node npm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libv8-3.1.8.22 libc-ares-dev libev4 libv8-dev libc-ares2 libev-dev
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  node* npm*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 283764 files and directories currently installed.)
Removing node ...
Purging configuration files for node ...
Removing npm ...
Purging configuration files for npm ...
I also then completed apt-get autoremove.

However at the command line both node and npm still show as installed and return their version numbers.
Code:
sayth@sayth-TravelMate-5740G:~$ npm -v
1.0.106
sayth@sayth-TravelMate-5740G:~$ node -v
v0.6.5
But running the remove commands again states they are not installed.
Code:
sayth@sayth-TravelMate-5740G:~$ sudo apt-get --purge remove node
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package node is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
How can I get the 'not installed?' package to be uninstalled from my installation.

I am on ubuntu 11.10.
 
Old 12-26-2011, 12:17 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,923

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
/usr/bin/npm is provided by package "mricron, npm"
http://packages.ubuntu.com/search?su...ords=bin%2Fnpm


/usr/bin/node is provided by "nodejs"
http://packages.ubuntu.com/search?su...rds=bin%2Fnode
( /usr/sbin/node : "node".)

.
 
Old 12-26-2011, 01:23 PM   #3
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 66
The install instructions for nodejs at your link are for a build-from-source install. `configure` usually sets up the makefile install for /usr/local; if you say `type -p node` I'm betting it'll say `/usr/local/bin/node`, or at any rate not `/usr/bin/node`.

So to remove it you'll have to find everything that got installed. `find /usr/local -daystart -ctime 0` or some variation on that should do for a start, you could also try `make -n install` to see what else it does.
 
1 members found this post helpful.
Old 12-26-2011, 03:59 PM   #4
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by knudfl View Post
/usr/bin/npm is provided by package "mricron, npm"
http://packages.ubuntu.com/search?su...ords=bin%2Fnpm


/usr/bin/node is provided by "nodejs"
http://packages.ubuntu.com/search?su...rds=bin%2Fnode
( /usr/sbin/node : "node".)

.
I haven't used the packages in the ubuntu repository based on the information at the nodejs website which advises currently development is moving to quick to use repository managed packages.
http://packages.ubuntu.com/oneiric/npm list the node package at 0.2.6, however the current stable version is 0.6.6 here http://nodejs.org/dist/v0.6.6/
 
Old 12-26-2011, 05:35 PM   #5
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Original Poster
Rep: Reputation: 30
Actually tried find but it doesn't return any results.

Code:
sayth@sayth-TravelMate-5740G:~$ find /usr/local -daystart -ctime 0
sayth@sayth-TravelMate-5740G:~$ find /usr/local/bin -daystart -ctime 0
You were on the money with the locations though.
Code:
sayth@sayth-TravelMate-5740G:~$ type -p node
/usr/local/bin/node
sayth@sayth-TravelMate-5740G:~$ type -p npm
/usr/local/bin/npm
 
Old 12-28-2011, 08:24 AM   #6
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 66
apt is built on dpkg, that whole system works on specially-built '.deb' packages that contain lists of the installed files, and other things. You're going to have to find what nodejs and npm installed yourself, depending on just how much you have in /usr/local it might be easiest to start with `find /usr/local -type f`.
 
  


Reply

Tags
apt-get, node, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt/dpkg List of all installed packages jmoschetti45 Linux - Software 2 02-12-2010 04:20 PM
Apt Show Installed Packages moo-cow Linux - General 1 07-06-2006 02:48 PM
fc3 problems removing installed packages. gSalsero Fedora 4 12-13-2004 09:53 AM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 01:17 AM
Removing old kernel and other packages installed DriveMeCrazy Red Hat 1 06-05-2004 09:40 PM


All times are GMT -5. The time now is 12:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration