1

I am trying to install a .pkg file on a Solaris 11 Intel machine and am faced with the following error:

pkg install: The following pattern(s) did not match any allowable packages.  Try
using a different matching pattern, or refreshing publisher information:

The command I am using to install the package is:

pkg install <package name>

I have set full permissions on the package using chmod 777 and have also run the pkg update command with a reboot.

Does anyone know what the problem here may be?

7
  • Please show us the actual command used. The error is telling you that the pattern you specified cannot be found, so we cannot help unless you tell us what you specified.
    – terdon
    Jun 10, 2022 at 12:37
  • Sounds like the package you are trying to install is not available in your package repo.
    – jesse_b
    Jun 10, 2022 at 12:41
  • Hi @terdon & jesse_b thank you for the feedback, I have moved a .pkg file onto the machine that has worked previously when it comes to installing on the Solaris 11 platform but on this particular machine, the install just keeps throwing the error highlighted above in the post. To install the .pkg file, I used the command "pkg install <package.pkg>". As I am trying to install a .pkg file, I assumed no repo would be required? Any ideas where I am going wrong?
    – Help
    Jun 10, 2022 at 20:14
  • @jesse_b just tagging you as it did not allow me to do so in my original response! ^^
    – Help
    Jun 10, 2022 at 20:14

1 Answer 1

1

First you need to determine what type of package the file is.

Packages for the IPS package manager (the primary package manager in Solaris 11) usually end in .p5m, not .pkg, but that's just a convention, not a requirement. If this is an IPS package, then you would need to get the actual package name (pkgrepo -s package.pkg list), and do:

pkg install -g package.pkg actual/package/name

If it is instead a SVR4 package (the primary package manager in Solaris 2-10) you instead will need to use pkgadd to install it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .