Linux Yum installation jdk

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.