" Rpm ' package install in solaris 10

hi all,

I want to install rpm package in solaris 10. I already installed rpm-4.1 for solaris. here is the output

bash-3.00#

bash-3.00# /opt/sfw/bin/rpm

RPM version 4.1

Copyright (C) 1998-2002 - Red Hat, Inc.

This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-a|--all] [-f|--file] [-g|--group] [-p|--package] [--specfile]

[--whatrequires] [--whatprovides] [-c|--configfiles] [-d|--docfiles]

[--dump] [-l|--list] [--queryformat=QUERYFORMAT] [-s|--state]

[--nomd5] [--nofiles] [--nodeps] [--noscript] [--addsign]

[-K|--checksig] [--import] [--resign] [--nodigest] [--nosignature]

[--initdb] [--rebuilddb] [--allfiles] [--allmatches] [--badreloc]

[-e|--erase <package>+] [--excludedocs] [--excludepath=<path>]

[--force] [-F|--freshen <packagefile>+] [-h|--hash] [--ignorearch]

[--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps]

[--nomd5] [--noorder] [--nosuggest] [--noscripts] [--notriggers]

[--oldpackage] [--percent] [--prefix=<dir>] [--relocate=<old>=<new>]

[--repackage] [--replacefiles] [--replacepkgs] [--test]

[-U|--upgrade <packagefile>+] [-D|--define'MACRO EXPR']

[-E|--eval'EXPR'] [--macros=<FILE:...>] [--nodigest] [--nosignature]

[--rcfile=<FILE:...>] [-r|--root ROOT] [--querytags] [--showrc]

[--quiet] [-v|--verbose] [--version] [-?|--help] [--usage]

[--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes]

[--provides] [--requires] [--info] [--changelog] [--triggers]

[--last] [--filesbypkg] [--redhatprovides] [--redhatrequires]

[--buildpolicy=<policy>] [--with=<option>] [--without=<option>]

bash: rpm: command not found

I also update rpm db ,

rpm --initdb.

But same.. Pls help..

Thanks

Partha

pls tell me what

[2095 byte] By [parthaa] at [2007-11-26 13:50:14]
# 1

You need to either use the full path - /opt/sfw/bin/rpm or add /opt/sfw/bin/ to the path statement in your profile.

If you are trying to run from the /opt/sfw/bin/ directory then you do the following:

# ./rpm

RPMs are mainly for Linux. I have seen only a couple RPMs for Solaris in the last 15 years and they came from a third-party vendor. What are you trying to install?

regards

jsuchea at 2007-7-8 1:26:56 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
Yes.. I got it from Solaris 10 Companion dvd.. I did one thing.. It was in /opt/sfw/bin & all the dir I copy & paste into /usr/bin.. Then I have found its working... as normal.. But i have found it will goo d work in lxrun.. otherwise in genral it shows !/bin/sh is missing..
parthaa at 2007-7-8 1:26:56 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...