Linux base RPM package, yum management rpm software packages

Source: Internet
Author: User

RPM is the abbreviation for the Red Hat package Manger.
 the rpm file name is divided into 5 parts, where:The 1th part is name, which indicates the names of the RPM packages;The 2nd part is version, which indicates the revision number of the RPM package;The 3rd part is release, which indicates the number of releases (fixed number) of this RPM package;Section 4 is architectures, which indicates which platforms this RPM package applies to;The last part is RPM, which indicates the file extension of this RPM package.
  rpm Software Installation and removal work is often used in the options:–i: Install software. –U: Upgrade (Upgrade) The older version of the software. –e: Remove/Remove (Erase) software. –v: Displays detailed processing information. –h: Displays the installation progress. Uninstall is not availableGeneral installation with RPM-IVH  common commands for querying installed package information:Rpm–qa: Displays all packages installed on the current operating system, where Q is the 1th letter of query, and a is the 1th letter of all. Rpm–qa | grep DHCPRPM–QF file name: Shows which package this file was installed in, and F is the 1th letter of file. For example, the command that lists the package that installs the/bin/tar file is: Rpm–qf/bin/tarRPM–QI Package Name: Displays the information for this package, I is the 1th letter of the information (message). For example: List the commands that tar-1.14-10.rhel4 the details of this package: Rpm–qi tar-1.14-10.rhel4RPM–QL Package Name: Lists all the files contained in this package, where L is the 1th letter of the list. For example: List the commands that tar-1.14-10.rhel4 all the files contained in this package: Rpm–ql tarP Packet YUM is the acronym for Yellow Dog Updater, modified, which is designed to solve the problem of RPM dependencies and to facilitate the installation, upgrading, and other work of the software users. yum install software: Yum install-y software nameyum Delete software: Yum remove-y software nameInstall components using Yum: Yum groupinstall-y component Name,View components: Yum grouplistTo delete a component using Yum: Yum groupremove-y component Namecleanup Yum cache: Yum clean AllFind packages using Yum: Yum search To Configure the local Yum Source:first create a local Yum package repository, add the RPM packages you need to rely on, and then build relationships through Createrepo. Add. Repo files under the/ETC/YUM.REPOS.D directory (move away from the original. Repo file beforehand)You can then install it via a local source via Yum Install-y.   

Linux base RPM package, yum management rpm software packages

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.