LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2017, 03:24 AM   #1
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Rep: Reputation: Disabled
How to uninstall ns2.34 in Fedora 20


I've installed ns2 separately and not using allinone package. I installed all the tcl,otcl,tk in usr/share/ directory. I delete the folder ns-2.34, tcl,otcl,tk, tclcl to uninstall ns2. I forgot to uninstall ns2 by using the terminal. Now, when i type ns in terminal ,it still shows %. How can I completely remove ns2.34 as I've already deleted the file ns-2.34, tcl, otcl,tk ,tclc. ? Thank you
 
Old 05-11-2017, 04:04 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You must have installed from source. If you have the source uncompressed, go into the top-level directory and type:
Code:
$ make unistall
If you don't have the source, uncompress the source file, reinstall the programs, and then uninstall as above.
 
Old 05-11-2017, 05:20 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
"allinone package" : All applications must be 'uninstalled' separately.
( tcl tk otcl tclcl etc.)

How can you have something in /usr/share/ ?
The normal build directory is /home/|name|/dir/ns-allinone-2.34/.
With only one file outside /home/ : /usr/local/bin/ns*

I guess you could delete the directories in /usr/share/ containing the ns2 remains ?
Else : Don't worry, a few kB in a /usr/share/ folder does no harm.


-
 
Old 05-12-2017, 03:55 AM   #4
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Original Poster
Rep: Reputation: Disabled
I've already deleted the ns2 cache in usr/share

Quote:
Originally Posted by knudfl View Post
"allinone package" : All applications must be 'uninstalled' separately.
( tcl tk otcl tclcl etc.)

How can you have something in /usr/share/ ?
The normal build directory is /home/|name|/dir/ns-allinone-2.34/.
With only one file outside /home/ : /usr/local/bin/ns*

I guess you could delete the directories in /usr/share/ containing the ns2 remains ?
Else : Don't worry, a few kB in a /usr/share/ folder does no harm.


-
I copy files to /usr/share by using this command :
su cp -r <source directory> <destination directory>

I've deleted all ns2 related files in usr/share but I can still run ns2. I've also tried make uninstall in /ns2.3X directory. I also tried yum purge ns-allinone-2.3X. What should I do next? TQ
 
Old 05-12-2017, 04:01 AM   #5
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Original Poster
Rep: Reputation: Disabled
No rule to make target `uninstall'

Quote:
Originally Posted by AwesomeMachine View Post
You must have installed from source. If you have the source uncompressed, go into the top-level directory and type:
Code:
$ make unistall
If you don't have the source, uncompress the source file, reinstall the programs, and then uninstall as above.
I've done what you suggested but I got this error.

make: *** No rule to make target `uninstall'. Stop.

What should I do next?
 
Old 05-12-2017, 04:54 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,322

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
Re #4.
Quote:
I can still run ns2
There is no command by name ns2.
If you did # 'make install' in top directory 1. = ns-allinone-2.34/ns-2.34/:
Then delete the result = /usr/local/bin/ns

Other "top" directories are :
2. tcl8.4.18/unix/
3. tk8.4.18/unix/
4. otcl-1.13/
5. tclcl-1.19/
6. nam-1.14/
... There are another five top directories, I guess you didn't copy those to usr/.

Quote:
I copy files to /usr/share by using this command :
su cp -r <source directory> <destination directory>
Things copied like above : Delete is the only option.

? How did you get that crazy idea copying "alien" surplus files to a system location ?
There are places for that: /home/[name]/Documents/(backup) ...
... or e.g. /usr/local/src/(backup)

Actually all applications can be deleted right after the build (to save space) :
The executable ns will use these files only →
Code:
ns-allinone-2.34/lib/{libtcl8.4.a, libtclstub8.4.a, tcl8.4/*, tclConfig.sh}
ns-allinone-2.34/bin/tclsh8.4

-

Last edited by knudfl; 05-12-2017 at 06:20 AM.
 
  


Reply

Tags
ns2


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
[SOLVED] uninstall fedora - I have installed windows 8.1 and fedora in same partetion (C) so.. nanilchandu2000 Linux - Distributions 6 11-04-2014 03:05 PM
[SOLVED] how to uninstall ns2.35 in fedora 17 evanjalin Linux - Newbie 6 02-12-2014 01:14 AM
help uninstall Fedora 7 eernese Linux - Newbie 2 08-05-2007 02:11 AM
Uninstall Fedora lolita lumpicka Linux - General 5 02-20-2007 07:17 AM
Uninstall Fedora 3 aznboi12321 Fedora 2 03-14-2005 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration