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? |
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?
|
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... |
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... |
basically, you should be able to do something like this:
Quote:
http://www.freebsdforums.org/forums/...light=use.perl |
yeah, got it, thanks. it feels really odd being somethign of a newbie again!
|
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 |
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.
|
Quote:
|
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. |