Linux under RPM package management

Source: Internet
Author: User

Overview

A package and Installation tool for Internet downloads, which is included in someLinuxthe distribution version. It generates a. RPMthe file name extension. RPMis aRedhat Package Manager(Redhatpackage management tools). This file format, while playingRedhatbut its original design concept is open and now includesOpenLinux,S.U.S.E.as wellTurbo LinuxwaitLinuxdistributed versions are used. Can be regarded as a recognized industry standard.

the name format of the RPM package

apache-1.3.23-11.i386.rpm

-"Apache": Software name

-"1.3.23-11": Version number of the software, major version and this version

-"i386": is the hardware platform that the software runs

-"rpm": File extension, representing rpm package

RPM Common Commands

-Rpm‐qa: Check all rpm packages installed

-Rpm‐qa | More

-Rpm‐qa | grep X

-Rpm‐q Package name : Whether the query package is installed

-Rpm‐q xinetd

-Rpm‐q foo

-Rpm‐qi Package name : Query Package information

-Rpm‐qi File

-RPM‐QL Package name : Querying the files in the package

-RPM‐QL File

-RPM‐QL JDK

-RPM‐QF file full path name : The package to which the query file belongs

-RPM‐QF/ETC/PASSWD

-Rpm‐qf/root/install.log

-RPM‐QP Package file name : Information about the package is introduced to the package

-Rpm‐qp jdk-1_5_0-linux-i586.rpm

-Rpm‐qpi jdk-1_5_0-linux-i586.rpm

-RPM‐QPL jdk-1_5_0-linux-i586.rpm

Installing RPM Packages

RPM‐IVH RPM Package Full path name: Install package to current system

-I=install, installation

-V=verbose, hint, prompt message

-H=hash, progress bar

Delete RPM Package

Rpm‐e RPM Package name

"Case"rpm ‐e JDK

If other packages depend on the package you are uninstalling, an error message will be generated when uninstalling, such as:

"Case"rpm ‐e foo

Removing these packages would break dependencies:foo was needed by Bar-1.0-1

If you want RPM to ignore this error and continue uninstalling, use the ‐‐nodeps command-line option

"Case"rpm ‐e‐‐nodeps foo

Upgrade RPM Package

Rpm‐u RPM Package full path name

"Case"rpm ‐u cvs-1.11.2-10.i386.rpm

Linux under RPM package management

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.