WebSphere Issues

19/04/2017

RPM commands

Filed under: Linux — Tags: , — Ishtiaque @ 11:58 am

– Install a package

  • rpm -ivh httpd-2.4.6-45.el7.centos.4.x86_64

– Uninstall or Remove a package

  • rpm -e httpd

– Upgrade a package

  • rpm -Uvh httpd-2.4.6-45.el7.centos.4.x86_64

– Query package

  • rpm -qa | grep httpd*
  • rpm -q httpd

– Search based on config file

  • rpm -qf /etc/httpd/conf.d/welcome.conf

– List files installed by the package

  • rpm -ql httpd
  • rpm -qil httpd

– Show info a the package

  • rpm -qi rpm

– Verify packages

  • rpm -Va
  • rpm -V httpd

– The standard naming format:

  • <name>-<version>-<release>.<distro>.<architecture>.rpm
  • sed-4.2.1-10.e16.x86_64.rpm
Advertisements

Create a free website or blog at WordPress.com.

%d bloggers like this: