Linux Basic notes--[010]--{rpm, Yum and source management software package}

Source: Internet
Author: User

A. Yum configuration file location

    • /etc/yum.conf
    • /etc/yum.repos.d/*.repo

Second, yum common commands

    • Install pkgs
    • Reinstall pkgs
    • Update pkgs
    • Update-to
    • Check-update
    • Erase pkgs
    • List Installed/updates
    • Info pkgs
    • Provides pkgs
    • Deplist pkgs
    • Repolist all/enabled/disabled
    • History [Info num]
    • Clean all
    • Makecache
    • Grouplist
    • Groupinstall
    • Groupupdate
    • Groupremove
    • GroupInfo

Third, the production of local Yum source

    • Server: Place the Package collection of a CD or other source into a specific directory Repo_dir, execute the CREATEREPO command in this directory, and then share the Repo_dir as FTP, HTTP, and so on
    • Client: Refer to the system's own repo file format, set baseurl=ftp://... such as

Four, RPM package general format

    • Example: ftp-0.17-43-e17.x32.rpm
    • In order: Package name, version number, number of compilations, applicable system version, applicable hardware platform
    • RPM Package management uses the database to record the relevant parameters of RPM files for easy upgrade, removal, query and verification

V. Common commands of RPM

    • RPM-IVH--nodeps--test
    • Brief description of the RPM-Q query package
    • Rpm-qa querying all packages that have been installed
    • RPM-QF query which package is generated by a file
    • Rpm-qi Query package details, for packages that are not installed, use RPM-QPI
    • RPM-QL list of all files generated by the query package
    • RPM-QC the configuration file of the query package
    • RPM-QD help documents for query packages
    • rpm-d--scripts a script that executes when a query package is installed or uninstalled
    • RPM-V Check packet information (various property changes)

Vi. setting up the manager database for RPM packages

    • RPM--initdb--dbpath DIRECTORY
    • RPM--REBUILDDB--dbpath DIRECTORY
    • Note: The established database file is in/var/lib/rpm

Vii. Source Code installation package

    • Install the necessary compilation development tools (package Group): Development tools, Server Platform development, etc.
    • Check the install, Readme and other files to learn about the source package information
    • ./configure--help View available configuration options
    • Handle path variables for ease of use
    • Relink The dynamic library file: The build *.so will be compiled and installed. N file address is added to/etc/ld.so.conf.d/*.conf, one per line; Ldconfig Rebuild Library Map cache ld.so.conf, common options-p and-V
    • Processing header files: Copy or link the newly generated. h file to/usr/include
    • Handling Man Handbook: Adding Paths to MANPATH in/etc/man.config files
    • Necessary Service script files

Linux Basic notes--[010]--{rpm, Yum and source management software package}

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.