Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
package check module in perl reqd



karans
New User

Mar 19, 2009, 8:50 PM


Views: 2403
package check module in perl reqd

Dear all,

Can u pls. provide some info. regarding how to check installed packages in different os in perl.

Means,

Linux: rpm -q -a
FreeBSD: pkg_info -a -I
Solaris: pkginfo
HP-UX: swlist
AIX: lslpp -l all

How to check in perl, which module should i call...?

Can check with system(`<cmd>`), but its not a good approach... so can u pls. help me out in sorting this asap..

Regards,

Karan