Linux Package Management

Source: Internet
Author: User

01. RPM Package Naming rules = [package name]-[version number]-[number of software releases]. [Suitable for Linux platforms]. [Suitable for software platform]. [RPM Package Extension]

Example: httpd-2.2.15-15.e16.centos.1.i686.rpm (package full name)

HTTPD: Package name 2.2.15: Software version

15: Number of software releases E16.centos: the right Linux platform

i686: Suitable software platform rpm:rpm package extension

RPM Package Dependency: A, B, C and D pack a Pack B pack, Pack B First Pack C package, pack C Pack First Pack D package; dependence is troublesome.

02. RPM Package Management and Yum online package management

03, the full name of the package and the operating package is not installed package, the use of the package full name. and pay attention to the path

Package name = = Use package name to search for databases in/var/lib/rpm when operating packages already installed

04. RPM Package Installation = RPM-IVH Package Full Name

-I (Install): Installation

-V (verbose): Show details

-H (hash): Show progress

libdb_cxx-4.7.so library file dependencies, only need to go to http://www.rpmfind.net search for the corresponding installation file installation.

05. RPM Package Upgrade = RPM-UVH Package Full Name

-U (upgrade): Upgrade

06, Package Uninstall = RPM-E Package name (embodies the full registration and package name difference)

-E (Erase): Uninstall

07, RPM Package Query = = RPM-Q Package name (with RPM query)

-Q: Query

-qa (All): all

-qi (Information): Query for information about installed packages

-QIP (Package): Query for information that does not have a package installed (requires a full name, not much use)

Example: Rpm-qa |grep httpd = query all installation packages about HTTPD

08, query package Software Installation location = RPM-QL Package Name

-QL (list): Lists

-QLP: Query does not install package information

09, the query system files belong to which RPM package = RPM-QF System file name

-F (file): The reverse query system file belongs to which package

10. Query Package dependencies = RPM-QR Package Name

-QR (Requires): Querying the dependencies of a package

-QRP: Query For information about the installation package

11. rpm Package Check = = Rpm-v installed files

12, the content of the 8 information to verify the specific content:

S: File size changed

M: File type or file permissions (RWX) changed

5: File MD5 checksum is changed (can be seen as whether the contents of the file have changed)

D: In the device, from the code is all changed

L: The file path has been changed

U: Whether the owner of the file has changed

G: Whether the genus Group of the file has changed

T: File modification time is enough to change

File type: the

C (config file): Profile

D (Documentation): Normal file

G (Ghost file): "Ghost" file, rarely seen, is that the file should not be included in this RPM package

L (license file): Authorization files

R (read file): Description file

13, RPM Package File Extract = Rpm2cpio package full name |\ Cpio-idv. File absolute path (\: Represents a row without a newline; Extract the specified file to the current file)

Rpm2cpio: Convert RPM package to cpio Format command

Cpio: is a standard tool for creating software archive files and extracting files from archive files

Cpio Options < [file | device]

-i:copy-in mode,. Restores

-D: Automating new catalogs when restoring

-V: Displays the restore process

    

 

Linux Package Management

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.