A list,

  • In Linux, there are three software management modes: RPM, yum, and compilation.

  • Yum, short for Yellow Dog Updater, Modified, is a software package manager developed by Duke University to improve the installation of RPM packages. Originally written in Python by Terra Soft, the developer of yellow Dog, it was called Yup (Yellow Dog Updater), which was later modified by the Linux@Duke development team at Duke University. The purpose of Yum is to automatically upgrade, install/remove RPM packages, collect information about RPM packages, check dependencies, and automatically prompt users for resolution. The key of YUM is to have a reliable repository of software. It can be an HTTP or FTP site, or a local software pool, but it must contain the header of RPM package. The header contains various information about RPM package, including description, function, etc. Provide files, dependencies, etc. It is collecting these headers and analyzing them that automates the rest of the tasks.

  • The idea of YUM is to use a central repository to manage a portion or even a distribution of application relationships, performing upgrades, installations, deletions, etc., based on calculated software dependencies. Reduces the dependencies problem that Linux users have been suffering from. In this respect, yum is similar to APT. Apt was originally used for debian deb software management, but can now be used under RedHat RPM.

  • The main function of YUM is to easily add, delete, and update RPM packages. It automatically resolves the dependency problem of packages and facilitates the management of a large number of system updates.

  • Yum can be configured with multiple repositories at the same time. The concise configuration file (/etc/yom.conf) automatically resolves the dependency problem encountered when adding or deleting RPM packages and maintains consistency with the RPM database.

  • CentOS has yum installed by default. You do not need to install yum.

Second,rpmyumThe relationship between advantages and disadvantages

  • Yum is an encapsulation of RPM. Yum is based on RPM.

  • The RPM advantages:

    The operation of software packages is relatively simple and can be operated by simple instructions.

  • The RPM faults:

    You need to download software packages during software installation. Dependencies must be considered during software installation and uninstallation. Software customization is poor and is not suitable for scenarios with special requirements.

  • Yum advantages:

    Fast and foolproof software management mode, automatically downloads software packages from the server (both internal and external servers can be used) in the case of networking, and automatically resolves software dependencies

  • Yum faults:

    Because its bottom is actually RPM operation, so also lost the software customization function.

3. Use (Common Grammar)

  • Search/query ([] is optional field)

    $yum search [all] = $yum search [all] = $yum search $yum List installed [keyword] $yum List installed [keyword]Copy the code
  • The installation

    // Install the specified software // Usually install the software, ask whether to install, add -y will not ask, so that you select yes directly. // The order of -y and install can be reversed. $yum [-y] installCopy the code
  • uninstall

    If you add -y to the command, you will not be asked if you want to uninstall the specified software. // The order of -y and remove can be reversed, either before or after. $yum [-y] removeCopy the code
  • Update (process takes a bit longer)

    $yum [-y] update; $yum [-y] updateCopy the code