Software Package management and how to implement the WEB source code compilation and installation process (as illustrated in the following figure)

Source: Internet
Author: User

Learn the software package management tools: RPM, YUM

Now that we are learning RPM, What Is RPM?
RPM (RedHat Package Manager) was the first software Package standard proposed by RedHat. Later, with the continuous development of rpm and the addition of many features, RPM has gradually become a recognized software Package management standard for linux.
So a simple understanding is to install the software package you need to install on your Linux system in one form.

  1. Principle of RPM software installation:
  2. Source code program-> compile-> corresponding platform assembly language-> link-> RUN
  3. Therefore, the rpm software package we installed is compiled and converted to a binary code program through some underlying shared libraries.
  4. The following describes the advantages and disadvantages of compiled RPM:
  5. Advantages: for installation, you can install it without compiling, and query, upgrade, and other functions.
  6. Disadvantage: it can only be installed when it is consistent with the platform used for source code compilation. That means the rpm package cannot be installed when the platform and the compilation platform are inconsistent.
  7. Note: (all of the above understandings are self-Understood. If your understanding is incorrect, you are welcome to propose them to achieve common learning and progress)

 

  1. # Rpm-qa
  2. Used to view all installed rpm packages in the system
  1. # Rpm-q PACKAGE_name
  2. Check whether the software package is installed. If the queried software package is installed, the full package name is displayed.

  1. Rpm-ivh/PATH/TO/PACKAGE_FILE
  2. Install the software package and display the installation process. I: installation, v: Visual installation, h: installation progress

  1. # Rpm-qi
  2. Description of the specified Software Package

  1. # Rpm-ql
  2. Query the path where the software package is installed

  1. # Rpm-qf FILE_name
  2. Queries the file generated by which the specified file is installed.

  1. # Rpm-qc PACEAGE_NEME: query the configuration file installed in the specified package

  1. # Rpm-qd PACKAGE_NAME: query the Help file for installing a specified package
  2. # Run the rpm-qd vsftpd command to query the help files generated by the installation of the vsftpd package.
  3. # Rpm-q -- scripts PACKAGE_NAME: query scripts contained in a specified package
  4. If an rpm package has not been installed, We need to query its instructions and files generated after installation;
  5. # Rpm-qpi/PATH/TO/PACKAGE_FILE: displays the information of a software package.
  6. # Rpm-qpl query the path installed when a software package is installed
  7. # Rpm-e RPM package name is used to uninstall the software package (and the software package cannot be dependent)
  8. # Rpm-e -- nodeps package name is used to delete dependent software packages. This command can delete all software packages that are dependent on the package.
  9. # Rpm-Uvh RPM package name (new version package): If the old version is installed, upgrade; otherwise, install the package.
  10. # Rpm-fvl RPM package name (new version package): if an old version is available, upgrade the new version. Otherwise, exit.
  11. # Rpm -- oldpackage: downgrade the software package version
  12. RPM package manager cannot install software packages with dependencies. If it is forced to install, some software faults may occur. Therefore, we often use YUM to install and solve the package dependency.
  13. Software packages are often used for installation, uninstall, query, update, and other software packages.
  14. The following describes the metadata files in the yum Repository:
  15. Primary.xml.gz
  16. List of all RPM packages;
  17. Dependency;
  18. List of files generated by each RPM installation;
  19. Filelists.xml.gz
  20. List of all files of all RPM packages in the current warehouse;
  21. Other.xml.gz
  22. Additional information, RPM package modification log;
  23. Repomd. xml
  24. Record the timestamp and checksum of the above three files;
  • 1
  • 2
  • 3
  • Next Page

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.