04-20-2005
What do you mean "like a text file"? perl -v outputs the version information for the perl that is installed. Output is to stdout. You can capture and parse this data to get the version number if you wish. Post the output of perl -v from your machine.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I wanted to know how can I get the version of underlying HP-OS installed on a HPUX workstation. The output required is "June 2001" version or "March 2003" version etc whatever OS is present.
Thanx in advance for your help.
Regards,
Pankaj (3 Replies)
Discussion started by: pankschawla
3 Replies
2. Solaris
Hi,
I have Solaris 8 wih Java 1.2.2 as default. I just upgraded it to Java 2 version 1.4. But when I do "java -version: I get following:
"Java version "1.2.2"
Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunjwit)
How would I make solaris to look at my new java?
If I have to... (4 Replies)
Discussion started by: harjitsingh
4 Replies
3. Shell Programming and Scripting
Hi all,
I downloaded a XML parser lib from blastwave.org...
Its the "libxml2",but i am having trouble initializing it(or so it feels)...I kind of need it badly as the OSE version of the virtualbox 1.6.2 will not install unless i have one
The version was 2.6.3...
The min requirement from... (0 Replies)
Discussion started by: wrapster
0 Replies
4. Red Hat
Guys,
Can you help me how to verify the current installed NIC driver version in RHEL5.3?
Thanks.:D (1 Reply)
Discussion started by: shtobias
1 Replies
5. UNIX for Dummies Questions & Answers
If X was not installed, what would print data onto the display? Does it include applications form Gpl/Gnu or is it a daemon only?
Thanks in advance!:wall: (2 Replies)
Discussion started by: theKbStockpiler
2 Replies
6. UNIX for Advanced & Expert Users
we create a HP-UX software depot with a new perl-modul. after installation of the software depot, the perl module
i can't find with instmodsh in the inventory for installed Perl modules.
- i have learned of using instmodsh command : i find out what modules are already installed on my system.
... (0 Replies)
Discussion started by: bora99
0 Replies
7. Shell Programming and Scripting
Hi,
I want to know what version of the java is installed?
Please let me know the command or process to identify the installed java version in sun solaris box.
Thanks in advance for all your support. (3 Replies)
Discussion started by: sridhardwh
3 Replies
8. Shell Programming and Scripting
I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies
9. Solaris
I need a programmatic way to check, that supersede of required package is installed. At Linux I do it using rpmvercm utility to compare installed package version to my minimal requirement.
So - I need analog of Linux "rpmvercm" utility for Solaris (10/11)
Let us say - I know that minimal version... (10 Replies)
Discussion started by: zuismanm
10 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
LEARN ABOUT X11R4
perl-after-upgrade
PERL-AFTER-UPGRADE(1) User Contributed Perl Documentation PERL-AFTER-UPGRADE(1)
NAME
perl-after-upgrade -- fixup FreeBSD packages that depend on perl
SYNOPSIS
perl-after-upgrade
perl-after-upgrade -f
perl-after-upgrade -v
DESCRIPTION
The standard procedure after a perl port (either lang/perl5.6 or lang/perl5.8) upgrade is to basically reinstall all other packages that
depend on perl. This is always a painful exercise. The perl-after-upgrade utility makes this process mostly unnecessary.
The tool goes through the list of installed packages, looks for those that depend on perl, moves files around, modifies shebang lines in
those scripts in which it is necessary to do so, tries its best to adjust dynamically linked binaries that link with libperl.so in the old
path, and updates the package database.
After installation of the new perl is complete, either by hand from the ports collection, or from a package, or via portupgrade, do the
following:
o go root;
o run perl-after-upgrade utility.
Do not specify any arguments at first, so it does nothing destructive. Pay attention to the produced output and especially to
errorlist at the end, if any;
o run the utility again, with -f command line option.
This will actually do the work. Again, pay attention to the output produced;
o fix any reported errors;
o reinstall required packages:
The utility will tell you what packages that depend on perl it could not handle. It will also tell you why it happened (for example,
they were compiled against a binary incompatible perl). If you want such packages to remain operational, you will have to reinstall
then by hand or via portupgrade.
o review the files left in the older perl installation.
This is typically /usr/local/lib/perl5/site_perl/5.X.Y/. There should be very little, if any, files in that directory and its subdi-
rectories, excepting a number of .ph files;
o check that things work as they should;
o remove backup files from the package database.
Those will be /var/db/pkg/*/+CONTENTS.bak;
o that's all.
COPYRIGHT AND LICENSE
Copyright 2005 by Anton Berezin
"THE BEER-WARE LICENSE" (Revision 42)
<tobez@FreeBSD.org> wrote this module. As long as you retain this
notice you can do whatever you want with this stuff. If we meet some
day, and you think this stuff is worth it, you can buy me a beer in
return.
Anton Berezin
NO WARRANTY OF ANY KIND, USE AT YOUR OWN RISK.
HISTORY
The first version of this utility was not bundled with perl package on FreeBSD. It was dumber than the current version in several impor-
tant areas. It was faster.
CREDITS
Thanks to Mathieu Arnold for discussion.
SEE ALSO
perl(1).
perl v5.8.9 2009-04-13 PERL-AFTER-UPGRADE(1)