Introduction:
RPM [1] is an abbreviation RedHat Package Manager (RPM Package Manager), the name of this file format, although marked by signs RedHat, but its original design philosophy is open, now including OpenLinux, SuSE and Turbo Linux and other Linux-distributions are commonly used, it can be regarded as the accepted industry standard.
1, rpm commands commonly used parameters introduced:
-i, - install installation packages
-v, --verbose provide more detailed information output
-h, - when the hash list hash marks installed packages, display a progress bar
Example: Installation jdk
rpm -ivh jdk-8u171-linux-x64.rpm
vim /etc/profile
#set java environment
JAVA_HOME=/usr/java/jdk1.8.0_171
JRE_HOME=/usr/java/jdk1.8.0_171/jre
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASS_PATH PATH
source /etc/profile
Example: Update
rpm -Uvh jdk-8u171-linux-x64.rpm
View software installed on the system: cases
rpm -qa | grep jdk