Linux under Package Management-source Package-binary Package

Source: Internet
Author: User
Tags gpg

Linux Package Management

1. Package classification
SOURCE Package
Binary package (RPM package)

2.RPM Package naming rules

Naming rules:
name-major-minjor-release-release.arch.rpm

Name: Package Name
Major: Major Version number
Minjor: Minor version number
Release: Release version, fixed a major bug
Feature Update for RELEASE:RPM
Arch: Platform
Package full name: Before software is installed
Package Name: After software Installation
3. Installation

RPM-IVH Package Full Name

4. Upgrade

RPM-UVH Package Full Name

5. Uninstall
RPM-E Package Name
-E (Erase)
--nodeps: Not concerned about dependencies, generally do not use

6. Enquiry

RPM-Q Package name RPM-QA: Query all installed packages RPM-QI Package name: Details of the query package RPM-QIP Package Name: Query package details (not installed package) RPM-QL Package Name: query specified Build list of files after package installation RPM-QLP package Name: List of information for the package not installed RPM-QF package name: Find out which RPM package is generated by the specified file


7. Check

RPM-V Package Name

S: File size has changed
M: File permissions have been modified
5:MD5 Checksum failure
D: Device Master-Slave code
L: File path
U: Owner
G: Genus Group
T: File modification Time

8. Querying the dependencies of a package

RPM-QR Package Name

9. Import the key file

RPM--import/etc/pki/rpm-gpg/rpm-gpg-key-redhat-release

RPM Package Installation default location:

/etc/ Configuration file Installation
/usr/bin/ Executable Command installation directory
/usr/lib/ Library directory for RPM packages
/usr/share/doc/ User manual
/usr/share/man/ Help documentation



Yum Online installation package

Yum file location/etc/yum.repos.d, repo end



Make Disc Source:

1. Mount the disc

2. Prohibit network sources

3. Modify the configuration file

[CDROM]
Name=cdrom Repo
Baseurl=file:///media/cdrom/server
Enable=1
Gpkcheck=0


Yum command:

Yum List
All: Lists all
Available: Available
Instatlled: Installed software
Updates: Available upgrades

Yum search keywords: searching for all the keyword-related packages on the server

Installation:

Yum-y Install package Name

Unloading:

Yum-y Remove Package Name

Clear cache:

Yum Clean

General principles: The server uses the minimum installation, what software to install what software, try to avoid uninstalling

Yum Group Management

Yum grouplist Yum Groupinstall "Chinaese support"



SOURCE Package Management:

Source Package Installation Location:/usr/local/software Name

Install the source package be sure to specify an installation location

The process of installing the source code:
1. Download the source code

2. Unzip the source package and enter the source package directory

3. Execution./configure
./configure Optional, you can enter./configure--help View available options

4.make

5.make Install

Installation considerations:
SOURCE Package Save Location:/usr/local/src/
Software Installation Location:/usr/local/


Script installation package:

Script instance Download: lnmp.org


























This article is from the "Small City Studio" blog, please be sure to keep this source http://xcroom.blog.51cto.com/7941996/1707318

Linux under Package Management-source Package-binary Package

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.