How to search apache version locally or remotely?

You run the command below to get the above information:

To search if apache-22 is installed localy

# pkg search apache-22

or

# pkg search -l apache-22

To search if apache-22 version is available on the remote publisher

# pkg search -r apache-22

To find out which publisher you are using.

# pkg publisher

root@MySolaris:/var/apache2/2.2/htdocs# hostname

MySolaris

root@MySolaris:/var/apache2/2.2/htdocs# pkg search -l apache-22

INDEX ACTION VALUE PACKAGE pkg.fmri set solaris/web/server/apache-22 pkg:/web/server/apache-22@2.2.16-0.151.0.1

root@MySolaris:/var/apache2/2.2/htdocs# pkg search -r apache-22

INDEX ACTION VALUE PACKAGE pkg.fmri set solaris/web/server/apache-22 pkg:/web/server/apache-22@2.2.16-0.151.0.1


Previous Home Page Next


Contact us      |      About us      |      Term of use      |       Copyright © 2000-2023 MyWebUniversity.com ™