Linux notes (ix)-Package management

Source: Internet
Author: User

(1) Package Introduction
1. Source Code Package
Script installation Package
2. Binary package (RPM, system default package)
(2) RPM package management
Installation
-I Installation
-V Show More information
-H Show Progress
--nodeps does not detect dependencies
-U Upgrade
Example: Installation: RMP-IVH package name
Upgrade: RMP-UVH Package Name
-e Uninstall
Example: RMP-E package Name
-Q Query
-A All
-I. Software information
-P does not install package information
-L Mounting position
-F System file belongs to which package
-R Dependency
Example: Query all installed: RPM-QA | grep Package Name
Query software details: RPM-QI package Name
File installation location in Query package: RPM-QL Package Name
Query which package the system file belongs to: RPM-QF file name
Query Package dependencies: RPM-QR Package Name
-V Checksum
Example: Verifying files in a specified package: Rpm-v installed package name
Example: Extracting a file from a package: Rpm2cpio Package Full Name | Cpio-idv. File absolute Path
Extracting data from a file
Cpio Options <[File | device]>
-I Restore
-D new Catalog when restoring
-V shows the restore process
(3) Yum Online management
Query all available installation packages: Yum List
Search the server for the key-related packages: Yum search
Installation: Yum-y Install package name (-y auto Answer Yes)
Upgrade: Yum-y Update package name
Uninstall: Yum-y Remove package Name
(4) Source package installation
1. Preparation: Installing the C language compiler (GCC)
2. Note:
SOURCE Package Save Location:/usr/local/src/
Software Installation Location:/usr/local/
3. Installation Steps
Download
Extract
Go to Catalog
./config--prefix=/usr/local/xxx
Make
Make install
4. Annotations
./config (software configuration and inspection, preparation before compiling)
Define the required feature options
Detects if the system environment meets the installation requirements
Writes the defined function options and the information of the inspection system environment to the makefile file for subsequent edits
--prefix=/usr/local/xxx Defining the installation location
Make compilation
Make clean empty the compiled file
Make Install build Installation
4. Remove/usr/local/xxx or Uninstall

Linux notes (ix)-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.