n00b question: pkgadd behaves strange
Complete n00b with Solaris; so please be mersiful. After a fresh Solaris 10 install I had to run a script that required curl and curl was not available. So I went to sun's freeware site (http://www.sun.com/software/solaris/freeware/s10pkgs_download.xml) and downloaded SFWcurl.pkg.bz2; after unbzipping it, I've got SFWcurl.pkg. Any attempt to follow the instructions given on Suns Freeware page gave errors:
# bunzip2 SFWcurl.pkg.bz2
# pkgadd -d SFWcurl
pkgadd: ERROR: attempt to process datastream failed
- open of <SFWcurl> failed, errno=2
pkgadd: ERROR: could not process datastream from <SFWcurl>
Finally, I tried
# pkgadd -d SFWcurl.pkg
and it worked out, but this seems to contradict the instructions on the above mentioned page... any comments? Thank you in advance!
One more thing: I miss (ohhh how BADLY I MISS) my linux bash auto completion and command history... where have they gone? Any chance to got them back in Solaris? How?
Thanks again!
yassen
# 2
Apparently the install instructions on sunfreeware.com are incorrect, the correct command in this case is pkgadd -d SFWcurl just as you typed it.
The easiest way to get bash behaviour in Solaris is to make it your shell, which you can do by editing /etc/passwd or by running the following command as root:
usermod -s /bin/bash <user>
.7/M.
# 3
> Apparently the install instructions on
> sunfreeware.com are incorrect, the correct command in
> this case is pkgadd -d SFWcurl just as you typed it.
It's not sunfreeware.com, it's Sun's web page. (and I think you meant 'pkgadd -d SFWcurl.pkg'). The instructions on sunfreeware.com are correct for their packages.
Looks to me like the package and the compressed zip of it have been renamed since the documentation was written. In the docs, neither the compressed file nor the uncompressed pkgstream file have the '.pkg' portion in their name, but in the poster's comments, they all do.
It should probably be reported as a documentation bug on that page.
--
Darren
# 4
Thanks, Daren and all,
I think the problem is that the page's author assumes no further "packaging" than the zipping, but in fact, after downloading e.g. the Dependency package or the curl package, or vim, they all come packaged in a way that makes the given instructions confusing.
Thanks a lot for all your hints! I am a little more at home now, having my favorite shell under my fingers :-)
Thanks again!
yassen
# 5
> try this:
>
> pkgadd -d ./SFWcurl.pkg.bz2
pkgadd: ERROR: attempt to process datastream failed
- bad format in datastream table-of-contents
pkgadd: ERROR: could not process datastream from </export/home/root/downloads/SFWvim.pkg.bz2>
pkgadd -d ./SFWcurl.pkg.bz2 does not work; also pkgadd -d ./SFWcurl does not work (as I've said), pkgadd -d ./SFWcurl.pkg did work out, but it costed me a lot of time until I've got it...
(P.S. Darren, please excuse me for misspelling your name.)
yassen