Comparison or Analogy in pkg (Solaris 11) and yum (RHEL) commands.

Purpose  RHEL Solaris 11.1 Remarks
Check available Repostiories on server. yum repolist all pkg publisher
Check whether update of packages are available yum check-update pkg update -nv
To install the package on server yum install <pkg-name> pkg install <pkg-name>
To list the available and installed packages yum list pkg list
To get the information related to package yum info ftp pkg info <pkg-name>
To search the package yum search <pkg-name> pkg search <lot of options> https://ervikrant06.wordpress.com/2014/06/17/solaris-11-pkg-repository-commands-cheat-sheet-part-3/
Remove the package from server. yum remove <pkg-name> pkg uninstall <pkg-name>
Check the history yum history pkg history
Repository Information yum repoinfo pkgrepo info -s <URI>
Checking dependencies yum deplist <pkg-name> pkg contents or pkg search https://ervikrant06.wordpress.com/2014/06/17/solaris-11-pkg-repository-commands-cheat-sheet-part-3/
To downgrade the version of package yum downgrade pkg mediator <options> If multiple version of packages are installed in solaris 11
Which file belongs to package yum provides <filename> pkg contents <options> https://ervikrant06.wordpress.com/2014/06/17/solaris-11-pkg-repository-commands-cheat-sheet-part-3/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s