CentOS Software Management

Source: Internet
Author: User
RPM QueryRPM-QA lists the installed software. Rpm-qa | The grep Docker lists the installed Docker software. Rpm-q Docker See if Docker is installed. Rpm-q MySQL to see if MySQL is installed.

Rpm-qf/etc/docker/daemon.json See which package the Daemon.json file belongs to.

Explanation:-F: Query which corresponding RPM package the specified file belongs to. -q:query the meaning of the word. -A: all installed software. Installation:

First download the RPM installation package:

sudo rpm-ivh./docker-ce-17.06.1.ce-1.el7.centos.x86_64.rpm
Explanation:-i:install means to install the software. -V: Displays additional information. -H: Output Mark "#" at installation. Delete: rpm-e Docker deletes the specified package.

Explanation:-E: Delete. Update: rpm-u docker-ce-17.06.1.ce-1.el7.centos.x86_64.rpm upgrade the specified software.

Explanation:-U upgrade. YUM view installed software: Yum list installed or Yum info installed lists installed software. Yum List Installed | grep docker or yum info installed | The grep Docker lists the installed Docker software.

Yum list Docker or Yum info Docker to see if the Docker software is installed. Yum list mysql or yum info mysql to see if MySQL is installed.

Find Yum search Docker searches for details such as Docker for the RPM package that matches a specific character. Yum Provides/etc/docker/daemon.json See which package the Daemon.json file belongs to.

Install the software:

Command format: Yum install package_name sudo yum install docker install yum software using Docker. Delete software: Yum remove Docker Delete Docker package and dependency pack. Update

Yum update updates all the packages.

Yum check-update Check the package that you want to update.

Yum Update Docker updates are developed for packages such as Docker. Summary:

I am a member of the Chiu, the North Drift.

Life motto: [Make a decision, not difficult, difficult is to put into action, and adhere to the end]

Today's bitter fruit, is yesterday's foreshadowing, the present pay, is tomorrow's flower opens. Come on... Come on...

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.