How to install .p51 packages in Solaris 11.4?


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Solaris How to install .p51 packages in Solaris 11.4?
# 1  
How to install .p51 packages in Solaris 11.4?

Does anyone know how to install a package that comes in a p5i file in Solaris 11.4? The first thing the Oracle documentation says is to "launch packagemanager". Well they removed packagemanager from 11.4 (and you can't install it yourself). I want a package from http://pkg.openindiana.org/hipster/en/catalog.shtml?version=0.5.11%2C0.5.11-2018.0.0.0&action=Browse

When I mouse over the "Install" link it pops up "Launch the Package Manager and install this package". Uh, no Package Manager. I tried downloading the p5i file and then saying "# pkg install pkg-name" but that didn't work either. This is a mystery.

And while I'm asking, this should probably go in the Solaris subforum but for the life of me I can't figure out how to get there either. Whenever I click on the "ask a question" button it takes me here.
# 2  
I'm not a Solaris person for a few decades now; but just as a wild guess, did you try "the web method" (for example, for logrotate):

Code:
pkg install -g http://pkg.openindiana.org/hipster/p5i/0/system%2Ffile%2Flogrotate.p5i logrotate

(maybe use the directory of the package versus the file name)

Also, which packages are you trying to install?

Ref:

Installing and Updating Packages -
Updating Systems and Adding Software in Oracle(R) Solaris 11.4


Frankly, I'm as confused as you are. Before, Solaris has "
Code:
packagemanager

" which used the .p5i file extension.

Then, Oracle switches to pkg and in the documentation (online and PDF), there is zero mention of .p5i files (as if .p5i files never existed).

Indeed, this is really strange, indeed.
# 3  
See also, for reference:

Installing packages in Solaris 11

Code:
https://www.unix.com/solaris/227455-installing-packages-solaris-11-a.html

Please note I search the net for quite some time and could not find any "bridge" discussion between the ".p5i" files mentioned in packagemanager and the pkg system on Solaris. This really did not make sense to me.

Why is there no discussion (that I can find) linking the two different package management systems on Solaris?
# 4  
Well that didn't work but I think we're on the right track.

Code:
root@hemlock:~# pkg install -g http://pkg.openindiana.org/hipster/p5i/0/system%2Ffile%2Flogrotate.p5i logrotate


Errors were encountered while attempting to retrieve package or file data for
the requested operation.
Details follow:

  http protocol error: Unknown error code: 404 reason: Not Found
URL: 'http://pkg.openindiana.org/hipster/p5i/0/system%2Ffile%2Flogrotate.p5i/versions/0/'

I tried a few other variations, like this:

Code:
root@hemlock:~# pkg install -g http://pkg.openindiana.org/hipster/info/0/pkg://openindiana.org/system/file/logrotate@3.15.0,5.11-2018.0.0.0:20190307T195640Z logrotate

Errors were encountered while attempting to retrieve package or file data for
the requested operation.
Details follow:

  http protocol error: Unknown error code: 400 reason: Bad Request
URL: 'http://pkg.openindiana.org/hipster/info/0/pkg://openindiana.org/system/file/logrotate@3.15.0,5.11-2018.0.0.0:20190307T195640Z/versions/0/'

root@hemlock:~# install -g http://pkg.openindiana.org/hipster/info/0/pkg://openindiana.org/system/file/logrotate logrotate
find: cycle detected for /lib/secure/32/
find: cycle detected for /lib/crypto/32/
find: cycle detected for /lib/32/
find: cycle detected for /lib/fm/32/
find: cycle detected for /usr/lib/gss/32/
find: cycle detected for /usr/lib/pool/32/
find: cycle detected for /usr/lib/python2.7/vendor-packages/nss/32/
find: cycle detected for /usr/lib/python2.7/vendor-packages/solaris/32/
find: cycle detected for /usr/lib/python2.7/vendor-packages/zfs/32/
find: cycle detected for /usr/lib/reparse/32/
find: cycle detected for /usr/lib/secure/32/
find: cycle detected for /usr/lib/brand/solaris10/32/
find: cycle detected for /usr/lib/32/
find: cycle detected for /usr/lib/scsi/32/
find: cycle detected for /usr/lib/lwp/32/
find: cycle detected for /usr/lib/fm/topo/plugins/32/
find: cycle detected for /usr/lib/fm/32/
find: cycle detected for /usr/lib/rad/client/c/32/
find: cycle detected for /usr/lib/cfgadm/32/
find: cycle detected for /usr/lib/locale/en_US.UTF-8/32/
find: cycle detected for /usr/lib/locale/en_US.UTF-8/LO_LTYPE/32/
find: cycle detected for /usr/lib/locale/en_US.UTF-8/LC_CTYPE/32/
find: cycle detected for /usr/lib/security/32/
find: cycle detected for /usr/lib/link_audit/32/
find: cycle detected for /usr/lib/nfs/32/
find: cycle detected for /usr/lib/elfedit/32/
install: logrotate was not found anywhere!
root@hemlock:~# install -g http://pkg.openindiana.org/hipster/info/0/pkg://openindiana.org/system/file/logrotate
/usr/sbin/install[263]: shift: (null): bad number
root@hemlock:~# pkg install -g http://pkg.openindiana.org/hipster/p5i/0/system%2Ffile%2Flogrotate.p5i logrotate

Errors were encountered while attempting to retrieve package or file data for
the requested operation.
Details follow:

  http protocol error: Unknown error code: 404 reason: Not Found
URL: 'http://pkg.openindiana.org/hipster/p5i/0/system%2Ffile%2Flogrotate.p5i/versions/0/'

I think I just need to figure out what name to feed pkg install. I'd be curious if anyone has been able to install OpenIndiana packages in Solaris 11.4. The one I'm really interested in is firefox. Apparently they have Firefox 60 which is not available anywhere else. The Firefox that comes with 11.4 is 52 which is now way out of date.
# 5  
Maybe as a test case, you can download the file locally first, in the case of logrotate, you will get this file:

Code:
system_file_logrotate.p5i

Then try the same idea but with a local file:

Code:
yoursystem# pkg install -g file://path_to/system_file_logrotate.p5i  logrotate

Honestly, I don't have Solaris so I cannot try this out, so I'm just grasping at straws, hopefully it's not completely off-the-wall.
# 6  
Update:

Also, I found this quite detailed discussion for you:

Code:
https://serverfault.com/questions/348139/how-to-manually-download-individual-files-from-the-openindiana-or-solaris-pkg

Maybe review that link and give it a try and post back your (hopefully good) results?

Thanks.
# 7  
OK well I just checked what I should have checked at the start. It turns out that OpenIndiana is only for x86 Solaris, not SPARC. So even if I could download it, it wouldn't run. Sigh.

Thanks anyway though. Perhaps this will be useful to someone else.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #677
Difficulty: Medium
The IEEE does not test equipment for compliance with their standards.
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 packages

Hi all, Does anyone know where you can get solaris 10 packages these days? It seems that sunfreeware have now started charging you to download them, which is good. I have found opencsw, but that seems to rely on you hooking the machine into the interenet and at the moment I am trying to... (3 Replies)
Discussion started by: callmebob
3 Replies

2. Solaris

Solaris 10 packages

can one install packages from different Solaris 10 subversion on a SPARC? (if we don't have the install media for exact same Solaris10.) (3 Replies)
Discussion started by: orange47
3 Replies

3. Solaris

Solaris 10 install dvd drive boots, but not recoginized by install process

I am trying to build a Sun Ultra 10 with solaris 10. This computer is one of a collection that was donated to the non-profic company I work for. All media was wiped before I recieved them, so I am starting from stratch. I downloaded the Solaris 10 ISO and burned a DVD. The computer came with a... (4 Replies)
Discussion started by: gwillhight
4 Replies

4. Red Hat

Install Fedora core 10.0 packages

Hello All, I hv installed fedora 10 on my PC. At the time of installation, i skipped some of the other packages. Now i wanted to install the other packages from the DVD. How sholud i install the other packages. My DVD is bootable one which i got thru software magazines. So it contains FC 10 and... (1 Reply)
Discussion started by: phpalerts
1 Replies

5. Programming

How to install openGL packages?

Hi, Any one help me regarding how to install openGL packages to work in linux. And i installed some of the packages(gl,glu), but i don't know whether they are installed are not .. Which command is should use to check whether openGL is installed are not .. I am Thankful for any kind of... (3 Replies)
Discussion started by: Ravikishore
3 Replies

6. Solaris

Help required to install packages

Hi All, I was told to install multiple packages on my solaris server. Is it possible to install multiple packages from a directory or CD. Or I need to install one by one. Please suggest. Thanks, Deepak (1 Reply)
Discussion started by: naw_deepak
1 Replies

7. Solaris

error during install jdk 5.0.11 packages

hi all i tried to install jdk on solaris 10 2008 and i used these packages in installation pkgadd -d SUNWj5cfg SUNWj5dmo SUNWj5dev SUNWj5rt SUNWj5jmp SUNWj5man all was good except one (SUNWj5rt) some of the output ERROR: attribute verification of... (3 Replies)
Discussion started by: maxim42
3 Replies

8. UNIX for Dummies Questions & Answers

how to install new packages when disk space is full

during installation i created four partitions mainly / 5GB /home 1GB /boot 100MB swap 2GB now since i didnt make the /usr partition all of the packages were being installed in the / partition ..now all the space in the / partition is filled ...i ran du -h... (3 Replies)
Discussion started by: tarunicon
3 Replies

9. Solaris

how to install packages into specific dirs!!!

Hi all, Am a newbie and would like to know how to install packages into specific directories of my choice , rather than the defaults!!! Thanks (4 Replies)
Discussion started by: wrapster
4 Replies