LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   can't suss out how to remove old perl (https://www.linuxquestions.org/questions/%2Absd-17/cant-suss-out-how-to-remove-old-perl-39662/)

acid_kewpie 12-29-2002 06:31 AM

can't suss out how to remove old perl
 
my bsd had perl 5.003 or something installed on it by default, and after installing 5.8.0 i still have the old version higher up in my path, and i can't find out where this old version of perl came from, pkg_which does not return anything for the old perl binaries, and i can't see anything suitable in ports.

how can i remove it properly?

acid_kewpie 12-29-2002 07:07 AM

in a similar vein as well... i presume all the p5 ports are preconfigured to work under this old version of perl and not 5.6.1 or 5.8.0?

5amYan 12-29-2002 10:30 AM

port upgrades
 
What release are you using and how did you install the new version of perl?

If you have the original release ports tree:
cd /usr/ports/lang/perl5
make deinstall clean

Alternativley I don't know how you installed/upgraded it but you should:(IMHO)
su

cd /usr/ports/sysutils/portupgrade
make all install clean

cd ../../net/cvsup
make all install clean

find / -name ports-supfile
#or cvs-supfile if you want all the sources for all #distributions (couple hours over T1)

cp /usr/share/location of supfile /root/ports-supfile
ee /root/ports-supfile
# change CHANGE_THIS to a cvs server near you
# any other changes...I usually comment out all ports
# and uncomment the ones I use...
<esc> a) a)

cvsup -g -L 2 /root/ports-supfile
# the -g flag makes it non graphical. If you are using X you #can leave it out and get a nice informative window.
# this updates the ports code to the latest...

pkgdb -F
# interactively fix stale dependencies add an -a flag to #autoFix

portupgrade -ar
# upgrades all installed ports that are installed #dependencies and all
# I usually do this shortly after some security flaw and fix is #posted for something I am running...

if it tells you it's already installed (perhaps older version)
cd /usr/ports/problem/package
make deinstall clean
make reinstall clean

Alternative to get above utils

/stand/sysinstall
follow the gui

I don't think they upgrade packages twixt distros
not sure though cuz I usually build from the ports tree...

Hope this helps, it s from memory so some paths maybe off...

5amYan 12-29-2002 10:37 AM

the perl way
 
perl -MCPAN -e "install Bundle::CPAN"

also will install but I don't know that it would remove the old package.

I am not really a perl junkie...

This is an older link but still true I believe:
http://www.bsdtoday.com/2002/May/News680.html

"Is that the same Jeremy?" 5amYan wonders to himself...

leed_25 12-29-2002 01:19 PM

basically, you should be able to do something like this:
Quote:

# cd /usr/ports/lang/perl5
# make install clean
# use.perl port
here's a link to a thread on bsdforums in which this issue is discussed:

http://www.freebsdforums.org/forums/...light=use.perl

acid_kewpie 12-30-2002 10:53 AM

yeah, got it, thanks. it feels really odd being somethign of a newbie again!

llama_meme 01-05-2003 08:42 AM

Perl 5.0 is part of the FreeBSD base system, you don't want to get rid of it because its used the FreeBSD build process (this is set to change somewhat in 5.0, I think). The new perl you installed can be run as perl5.8.0

Alex

acid_kewpie 01-05-2003 05:26 PM

well it could be removed, as, as stated above, the use.perl script changes which will be used for everything, so with the port installed, the other is not needed. I saw something too about removing perl from the base system, and rewriting apps to make this possible again like it used to be.

leed_25 01-05-2003 06:17 PM

Quote:

Originally posted by acid_kewpie
I saw something too about removing perl from the base system, and rewriting apps to make this possible again like it used to be.
I believe that perl will be removed from the base installation in 5.0; release candidates are already out. Check www.freebsd.org for the straight poop.

llama_meme 01-06-2003 04:42 AM

true, i just thought that backward compatability might no be perfect...(not sure though)

Alex


All times are GMT -5. The time now is 12:54 PM.