Sponsored Content
Top Forums UNIX for Advanced & Expert Users perl and HP-UX : instmodsh in combination with software depot : update inventory for installed Perl Post 302624285 by bora99 on Monday 16th of April 2012 11:25:42 AM
Old 04-16-2012
perl and HP-UX : instmodsh in combination with software depot : update inventory for installed Perl

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.

- we have following system
- at a one server we install a perl modul to a different directory (INSTALLDIRS="vendor").
- then we use HP-UX swpackage to create a software depot with the files of the perl module.
- finally we install a perl module with HP-UX "swinstall"


this system works well and the perl modul works well after installation with HP-UX "swinstall" .

but now i find out, i can't see the perl modul with "instmodsh"
when i install it interactive with "perl Makefile.PL" and "make install", i can see it with "instmodsh".

so i think, i have to start a command to update the inventory for installed Perl modules ?

i think it is a part of the created "Makefile" (with "perl Makefile.PL") ?

for update perllocal.pod i find a debug in the Makefile:

/usr/bin/perl "-MExtUtils::Command::MM" -e perllocal_install "Module" "<New-Module" "installed into" "/opt/perl_32/lib/vendor_perl/5.8.8" LINKTYPE "dynamic" VERSION "<Version>" EXE_FILES " /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/perllocal.pod"

---------- Post updated at 05:25 PM ---------- Previous update was at 11:14 AM ----------

i have news :

i have little skills of Makefile.

i can update the inventory with following sections of Makefile:

make pure_perl_install and make doc_vendor_install. but i check with Perl Module Manager | Free software downloads at SourceForge.net the inventory like /usr/bin/perlmod -f Module::Mod1 and the module exists , but no detail informations. this is the part of Makefile , which i want to extend after software depot installation:

make pure_perl_install
/usr/bin/perl -MExtUtils::Install -e 'install({@ARGV}, '\''0'\'', 0, '\''0'\'');' \
read /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/auto/Module/Mod1/.packlist \
write /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/auto/Module/Mod1/.packlist \
blib/lib /opt/perl_32/lib/5.8.8 \
blib/arch /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi \
blib/bin /opt/perl_32/bin \
blib/script /opt/perl_32/bin \
blib/man1 /opt/perl_32/man/man1 \
blib/man3 /opt/perl_32/man/man3

/usr/bin/perl "-MExtUtils::Command::MM" -e warn_if_old_packlist \
/opt/perl_32/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi/auto/Module/Mod1


make doc_vendor_install
/usr/bin/perl "-MExtUtils::Command" -e mkpath /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi

/usr/bin/perl "-MExtUtils::Command::MM" -e perllocal_install "Module" "Module::Mod1" "installed into" "/opt/perl_32/lib/vendor_perl/5.8.8" LINKTYPE "dynamic" VERSION "0.92" EXE_FILES " /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/perllocal.pod"
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Software Inventory

How can I find out what software is installed on the machine, other than ls? Is there a registry program like in Windows? The os is Sun 2.5. Thanks (1 Reply)
Discussion started by: ViperD
1 Replies

2. Shell Programming and Scripting

How to check if perl is installed?

Hi, i'm designing a unix script and i want to know if there is a shell command or a way to see if perl is installed in the system. thanks in advance! (5 Replies)
Discussion started by: kfad
5 Replies

3. Shell Programming and Scripting

Which version of perl is installed on my system?

Hi, With the command perl -v i can see the perl version, but it's like a text file.. is there a command which could give me just the perl version number? i.e.: "5.8.1" thanks!! (6 Replies)
Discussion started by: kfad
6 Replies

4. UNIX for Advanced & Expert Users

Collecting software inventory

how to obtain/ collect a list of all the applications installed in the system.. is there a configuration file(like the one which exists for hardware ) which holds all this information?? if no is there any command/shell script or utility that we can use for the same ?? I am using Red hat linux... (2 Replies)
Discussion started by: superghost
2 Replies

5. UNIX for Dummies Questions & Answers

How to know the program 'perl' is installed ?

Hi, How can I know the perl interpreter is installed in the system? When I type 'find / -name perl -print 2>/dev/null', there is 6 lines listing: /usr/local/bin/perl /usr/bin/perl /usr/lib/perl-5.8.0/bin/perl /usr/opt/IAFW310/PERL/perl /usr/opt/IAFW310/PERL/t/perl... (3 Replies)
Discussion started by: zp523444
3 Replies

6. AIX

Perl installed by default?

Hi all, I wanted to know if Perl comes installed by default on AIX 5.2 and 5.3. I know it's available through the Linux affinity toolbox, but couldn't figure out if it's installed by default along with the RPM (rpm.rte). Does anyone know for sure? Thanks, JP (4 Replies)
Discussion started by: jbeaudry
4 Replies

7. UNIX for Dummies Questions & Answers

Utilities/Scipts to Inventory Hardware and Software

Hi All, I am looking for a way to inventory the hardware and software components of many Solaris 8 servers/workstations. I would like to script this to run against a list of IP's in a text file. For Windows there are many such programs available (like Belarc) Is there anything similar for... (4 Replies)
Discussion started by: limey
4 Replies

8. HP-UX

DEPOT software

I am using SAM and it is asking for the location of the DEPOT software. I don't know what the DEPOT software is. Can anyone explain and tell me where the default location for the software is? Thanks in advance (3 Replies)
Discussion started by: Randydog
3 Replies

9. HP-UX

Good acl for remote depot software

This is the situation On hpux2.domain.com i have set a depot source,copying various depots on /var/spool/sw I can install from hpux2,but i want to do a remote access to other hosts,i have tried this swacl -l global_product_template -M host:hpux3.domain.com:crw-t swacl -l depot -M... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

10. UNIX for Advanced & Expert Users

Server inventory software

Hi, do you know any good server inventory open source products? I want information like, server hostnames, ram, cpu, os, filesystems, volume groups, disks, adapters, installed software versions, firmware levels and so on os: aix, solaris, linux, hpux data should be kept in a database, web... (7 Replies)
Discussion started by: funksen
7 Replies
update-ux(1M)															     update-ux(1M)

NAME
update-ux - updates the HP-UX operating system from new HP-UX media SYNOPSIS
option=value] software_file] [[sw_selections]...] DESCRIPTION
The command updates the HP-UX operating system to a newer version. Use when updating the operating system (OS), and installing or changing operating environments (OEs). works only with source depots con- taining the OS and OEs such as HP-UX 11i OE DVDs. When using other non-OE media as the source (such as AR), use swinstall(1M) instead. will always attempt to update the OS. In order to update a system successfully, an Operating Environment must exist in the source. A bun- dle name does not need to be specified on the command line. By default, update-ux will install the software from the source that matches and updates the software that is installed on the system. However, if a system does not contain a previous version of an OE, one must be specified on the command line or in the interactive Terminal User Interface (TUI). If the current OS is 11.11 or 11.22 , first install onto the existing system. For example: source_location where source_location is the path to a depot containing the 11i Update-UX product. Options supports these options: Perform the OE update in the interactive terminal user interface (TUI). For more information, see the swm(1M) manpage. Previews an update task by running the session through the analysis phase only. Turns on verbose output to stdout. (The logfile is not affected by this option). Specify the source location. Possible locations are a local directory, a mounted DVD containing an SD depot, or a remote machine and depot combination. If source_location is a DVD, expects to install from one DVD. If source_location is a remote machine and depot combination, the remote machine should be specified first, followed by the absolute path to the remote depot, separated by a colon with no spaces; for example: Print the usage statement. Set swm(1M) options. Read the list of sw_selections from software_file instead of (or in addition to) the command line. sw_selections Software selections support the same syntax as the SD commands plus the syntax outlined in below (see swin- stall(1M) for details on SD's supported syntax). Software Selections In addition to the SD syntax, the following syntax is supported for pattern-matching-expression Where version can be: Where op can be: or The (equals) relational operator lets you specify selections with the shell wildcard and pattern-matching-expressions: The syntax causes that selection to be deselected even if it was listed on the command line as part of other selections. RETURN VALUE
The command returns a value when it is not successful: Error during execution; update aborted. DIAGNOSTICS
Standard Output: An session writes messages for significant events, including: o Begin-session and end-session messages. o Major task messages. Logging: Errors are recorded in: and EXAMPLES
To update from the OE depot on an HP-UX 11i OE DVD mounted at enter: The example above updates the HP-UX 11i Operating Environment (OE). To install all bundles and products in sw_server that match and update software that is installed on the system: Which is equivalent to: The syntax selects all software in the source that matches what is already installed on the system. To select only software in HPUX11i-OE that matches the software on the target system: The syntax selects only software in the specified bundle that matches what is already installed on the system. To update to HPUX11i-OE and include the HP-UX Bastille Security Configuration bundle: To interactively select software for an update, use the option: To update the operating environment (OE), explicitly to the MCOE: To update all the software that is part of the OE except Mozilla: To select all of HPUX11i-OE except for Perl, which is part of HPUX11i-OE, you could specify the following: The only exception to this is if the selection is in the Operating Environment's required contents list, in which case it cannot be deselected without deselecting all of the Operating Environment. Note that deselections have precedence over selections. Thus the order is not important. The example above would be the same as the following command: AUTHOR
was developed by HP. FILES
The command. The log file. The log file. SEE ALSO
swm(1M), swinstall(1M). These manuals are available on the HP-UX 11i Instant Information CD and at o o o o update-ux(1M)
All times are GMT -4. The time now is 10:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy