LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-10-2016, 03:48 PM   #1
adams kpewa
LQ Newbie
 
Registered: Aug 2016
Location: Virginia- USA
Distribution: Redhat -Centos
Posts: 20

Rep: Reputation: Disabled
Thumbs up Uninstall Perl version 5.2 x


Hello Group.

I install perl version 5.2x but need to uninstall it from a Linux box.

NOTE! i did not install Perl with rpm neither Yum but rather used a new directory to which i typed the following commands below.

" ./configure"
make
make test
make install


Thanks
 
Old 10-10-2016, 08:33 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
USE!!!!! yum
there is a reason it is there !!!!

USE IT

if you installed from source
you need to use the ":makefile" in the source folder to uninstall it
Code:
su 
make uninstall
NOTE!!!!!!

not all makefiles have a uninstall option
 
Old 10-11-2016, 08:27 AM   #3
adams kpewa
LQ Newbie
 
Registered: Aug 2016
Location: Virginia- USA
Distribution: Redhat -Centos
Posts: 20

Original Poster
Rep: Reputation: Disabled
John thanks for the prompt response. I must advise that this file was not install from a repository so I'm not sure "yum" can do it. I also tried "su make uninstall" and I have a message that says "no rule to make target "uninstall".


Thanks a lot
 
Old 10-11-2016, 09:10 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
so you are probably out of luck. You may try to check how make install worked and based on that you can identify the directories/files you need to remove. Also probably you need to modify your environment.
why do you want to uninstall it?
 
Old 10-11-2016, 11:33 AM   #5
adams kpewa
LQ Newbie
 
Registered: Aug 2016
Location: Virginia- USA
Distribution: Redhat -Centos
Posts: 20

Original Poster
Rep: Reputation: Disabled
My boss what me to uninstall it.
 
Old 10-11-2016, 11:49 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
"no rule to make target "uninstall".
i have to ask!!!

ARE you in the build folder for that version of perl when you ran "make uninstall"

Also are you SURE it installed ?
there is a LOT more to building perl than just this

Code:
" ./configure"
make
make test
make install
it is a rather complex bit of code

for starters a normal "./configure" is not used
that is the normal autotools configure
perl uses it's own NON autotools script " Configire"

also the default install location is NOT the redhat default
the source defaults to
"-Dprefix=/opt/perl5 "

Last edited by John VV; 10-11-2016 at 11:50 AM.
 
Old 10-11-2016, 11:49 AM   #7
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Did you type "make uninstall" in the same directory where you did "make install"?
 
Old 10-11-2016, 12:32 PM   #8
adams kpewa
LQ Newbie
 
Registered: Aug 2016
Location: Virginia- USA
Distribution: Redhat -Centos
Posts: 20

Original Poster
Rep: Reputation: Disabled
Smallpond thanks for helping out. Yes I did use the directory.


So I have actually used the command "make clean' to uninstall it but their are still few more files I have to manually uninstall"
 
Old 10-11-2016, 01:44 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
"make clean" DOSE NOT uninstall and never did
it cleans out the build folder and removes the compiled files and generated files
it dose not uninstall

if you ran "make clean" you will need to rerun the configur scripts then run uninstall
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uninstall perl which I installed via tar.gz niraj.vara Linux - Server 4 07-10-2012 02:14 AM
I uninstall PERL, and now the startx many other things is gone eunicewol Red Hat 2 11-21-2010 11:46 AM
How do I uninstall perl? dasoberdick Slackware 1 06-24-2007 12:51 AM
How to uninstall perl modules ust Linux - Software 1 01-27-2005 08:28 AM
Can I safely uninstall perl rpm ? cmisip Linux - Software 5 04-28-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:05 AM.

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
Open Source Consulting | Domain Registration