Yum provides commands for finding, installing, and deleting one, a group, or even all of the packages.
Options: Optional, option includes-H (Help),-y (when the installation process prompts you to select all "Yes"),-Q (does not show the installation process)
Command: The operation to be performed.
The object for the package operation.
Yum Common commands
1. List all updatable software inventory commands: Yum check-update
2. Update all software commands: Yum update
3. Install only the specified software commands: Yum install <package_name>
4. Update only the specified software commands: Yum update <package_name>
5. List all installed software inventory commands: Yum list
6. Remove Package Command: Yum remove <package_name>
7. Find package Commands: Yum search <keyword>
8. Clear the Cache command:
Yum Clean Packages: Clear the cache directory for packages
Yum Clean headers: Clear headers in cache directory
Yum Clean oldheaders: Clears the old headers from the cache directory
Yum Clean, yum clear all (= Yum packages; yum oldheaders): Clears the cache directory of the package and the old headers
Example: Yum install JDK
1. Review the current JDK version and uninstall
(Note 1:rpm-qa # # #解释: Check all installed RPM packages
grep JDK # # #解释: Displays the package with the string "JDK" in the name)
Yum provides commands for finding, installing, and deleting one, a group, or even all of the packages.
Options: Optional, option includes-H (Help),-y (when the installation process prompts you to select all "Yes"),-Q (does not show the installation process)
Command: The operation to be performed.
The object for the package operation.
Yum Common commands
1. List all updatable software inventory commands: Yum check-update
2. Update all software commands: Yum update
3. Install only the specified software commands: Yum install <package_name>
4. Update only the specified software commands: Yum update <package_name>
5. List all installed software inventory commands: Yum list
6. Remove Package Command: Yum remove <package_name>
7. Find package Commands: Yum search <keyword>
8. Clear the Cache command:
Yum Clean Packages: Clear the cache directory for packages
Yum Clean headers: Clear headers in cache directory
Yum Clean oldheaders: Clears the old headers from the cache directory
Yum Clean, yum clear all (= Yum packages; yum oldheaders): Clears the cache directory of the package and the old headers
Example: Yum install JDK
1. Review the current JDK version and uninstall
(Note 1:rpm-qa # # #解释: Check all installed RPM packages
grep JDK # # #解释: Displays the package with the string "JDK" in the name)
Yum provides commands for finding, installing, and deleting one, a group, or even all of the packages.
Options: Optional, option includes-H (Help),-y (when the installation process prompts you to select all "Yes"),-Q (does not show the installation process)
Command: The operation to be performed.
The object for the package operation.
Yum Common commands
1. List all updatable software inventory commands: Yum check-update
2. Update all software commands: Yum update
3. Install only the specified software commands: Yum install <package_name>
4. Update only the specified software commands: Yum update <package_name>
5. List all installed software inventory commands: Yum list
6. Remove Package Command: Yum remove <package_name>
7. Find package Commands: Yum search <keyword>
8. Clear the Cache command:
Yum Clean Packages: Clear the cache directory for packages
Yum Clean headers: Clear headers in cache directory
Yum Clean oldheaders: Clears the old headers from the cache directory
Yum Clean, yum clear all (= Yum packages; yum oldheaders): Clears the cache directory of the package and the old headers
Example: Yum install JDK
1. Review the current JDK version and uninstall
(Note 1:rpm-qa # # #解释: Check all installed RPM packages
grep JDK # # #解释: Displays the package with the string "JDK" in the name)
2. Find Java-related lists
(Yum-y list Java)
(Note 1:yum install java-1.8.0-openjdk.x86_64) (note 2:yum-y install java-1.8.0-openjdk*)
(Note: java-version)
The path to the default installation via Yum is (note: CD/USR/LIB/JVM)
Add the JDK's installation path to Java_home (note: vi/etc/profile. /etc/profile)
The above contents are excerpted from PPT, the invasion delete apology.
Linux Yum installation jdk