1. Package classification
SOURCE Package: Script installation package
Binary Package: RPM package, system default Package
2.RPM Command Management
@rmp package on the system CD
Mkdir/mnt/cdrom
Mount/dev/sr0/mnt/cdrom
Cd/mnt/cdrom/packages
@RPM Package naming principles
http-2.2.15-15.el6.centos.1.i686.rpm
HTTPD: Package Name
2.2.15: Software version
15: Number of software releases
El6.centos: the right Linux platform
i686: the right hardware platform
@RPM Package Dependencies:
Tree-dependent: a->b->c
Ring-dependent: a->b->c->a
Module dependency: Requires the installation of a certain RPM package software files, query website: www.rpmfind.net
@ Install Command
RPM-IVH Package Full Name
-i:install
-v:verbose Show Details
-h:hash Reality Progress
--nodeps: No dependency detection
@ Upgrade and Uninstall
RPM-UVH Package Full Name
-u:upgrade
RPM-E Package Name
@rpm Package Query
1. Whether the query is installed
RPM-Q Package Name
RPM-QA: Query all installed RPM packages
Rpm-qa | grep Package Name
Rpm-qi Information
RPM-QL list: Query software File installation location
RPM Package Default installation location:
/etc/configuration File installation directory
/usr/bin/: Executable Command installation directory
/usr/lib/: The function library where the program is stored
/usr/share/doc/: Basic software User manual save location
/usr/share/man/: Save location for help files
RPM-QLP Full-Package name: query for non-installed RPM package information
RPM-QF System file name: Query which package this file belongs to
RPM-QR Package Name: Query depends on the package, but does not play any role
@rpm Package Check
Rpm-v Installed package Name
Verify the specifics of the 8 information in the content:
S: File size changed
M: Whether the file's type or file's permissions have been changed
5: File MD5 checksum is changed (can be seen as file content changes)
D: Whether the master/slave Code of the device changes
L: Whether the file path changes
U: Whether the owner of the file has changed
G: Whether the genus Group of the file has changed
T: Changes in file modification time
File extraction:
Rpm2cpio Package Full Name | Cpio-idv. File absolute Path
-i:copy-in mode, restoring
-D: Automatically create a new directory when restoring
-V: Displays the restore process
Rpm-qf/bin/ls first query which package the file name belongs to
Rpm2cpio: Convert RPM package to cpio Format command
3.yum Online Management
Yum Source files:
Vim/etc/yum.repos.d/centos-base.repo
[Base]: container name, must be placed in []
Name: Container description, you can write your own
Mirrorlist: Mirror site, this can be commented out
Baseurl:yum the address of the source server. The default is the official CentOS Yum source server, can be used, if you feel slow can be changed to write your favorite Yum source address
Enabled: Whether this container is in effect, if not written or written enable=1 are effective
Gpgcheck: If 1 means RPM digital certificate is in effect
Gpgkey: Digital certificate's public key file save location without modification
The local Yum source is built on the disc:
Mkdir/mnt/cdrom
Mount/dev/sr0/mnt/cdrom
MV Centos-base.repo Cent-base.repo.bak: invalidating the network yum source
Vim Centos-media.repo makes the disc Yum source effective
[C6-media]
name=centos-$releaseever-media
baseurl=file:///mnt/cdrom# address for your own CD mount address
Gpgcheck=1
Enabled=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
Validation: Yum List
Inquire:
Yum List
Yum Search
Yum-y Install package Name
YUM-Y Update package Name
Yum-y Remove Package Name
Lang=en_us
Yum Grouplist
4. Source Package Installation
Installed in the specified location, generally:/usr/local/software name because there is no uninstall command
The impact of different installation locations:
RPM Package-installed services can be managed using the System Service Management Command service
Installation Preparation
Download Source Bundle: HTTP://MIRROR.BIT.EDU.CN/APACHE/HTTPD
"WinSCP software for Windows and Linux network Connection"
Installation Considerations
Source code save location:/usr/local/src/
Unzip the downloaded source package
Go to unzip Directory
./configure software Configuration and inspection
-Define the required feature options./configure--help
-Detects if the system environment meets the installation requirements
-Write the defined function options and the information of the inspection system environment to the makefile file for subsequent edits
Make
Make clean
Make install
View Instructions Installation Documentation:/Unzip directory/install
linux-Software Installation Management