LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-29-2002, 06:31 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 12-29-2002, 07:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 12-29-2002, 10:30 AM   #3
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
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 shouldIMHO)
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...

Last edited by 5amYan; 12-29-2002 at 10:32 AM.
 
Old 12-29-2002, 10:37 AM   #4
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
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...

Last edited by 5amYan; 12-29-2002 at 10:41 AM.
 
Old 12-29-2002, 01:19 PM   #5
leed_25
Member
 
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
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
 
Old 12-30-2002, 10:53 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah, got it, thanks. it feels really odd being somethign of a newbie again!
 
Old 01-05-2003, 08:42 AM   #7
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
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

Last edited by llama_meme; 01-05-2003 at 08:43 AM.
 
Old 01-05-2003, 05:26 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 01-05-2003, 06:17 PM   #9
leed_25
Member
 
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
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.
 
Old 01-06-2003, 04:42 AM   #10
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

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

Alex
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove carriage returns in a bunch of perl scripts? rebel Red Hat 4 04-12-2005 02:27 PM
newbie-can't get to suss 9.2 live dvd to work skinner SUSE / openSUSE 4 12-11-2004 01:09 PM
How to remove perl cleanly jpan Linux - Software 1 11-06-2004 08:36 AM
need a perl script to remove folders cccc Programming 5 03-12-2004 02:39 AM
PERL:: trying to remove last line of file ocularbob Programming 16 09-01-2003 01:07 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:42 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