Installation of linux software package
Software Package:
Source code:
Binary format:
Source --> binary
Software Package Manager
The redhat Package Manager is RPM.
Package-version-release (release). arch (Platform). rpm
Httpd-2 (major version). 2 (minor version). 19 (revision)-1 (release version). el5.i386. rpm
Linux rpm management is placed at:/var/lib/rpm
The Software Package Manager of suse is also RPM.
Rpm package management:
1. Query: rpm
-QPACKAGE_NAME: Check whether the software package is installed.
-Qa: view all installed software packages
-Files generated during installation of the package listed in qlpackagename
-Qcpackagename: view the software configuration file
-Qdpackagename: displays the help documentation generated after the software package is installed.
-Qffilepath: queries the software package generated by the file.
-Qipackagename: queries the summary of the software package.
2. installation:
Rpm-ipackagename Installation
Rpm-ivhpackagename: displays the installation progress
-- Nodeps ignores dependencies, but the installed software package may not be available.
3. Uninstall:
Rpm-ePACKAGENAME uninstall
-- Nodeps ignore dependency
4. Upgrade:
Rpm-U/path/to/rpm_file
-The old version of Uvh is not installed. You can directly install the new version, including installation and upgrade.
Rpm-F/path/to/rpm_file
-Only the original version can be upgraded Based on fvl.
-- Force update
The kernel can only be installed and cannot be upgraded
5. Verification:
Run rpm-Vfilename to check whether the software package and Installation File have been modified.
Signature: checks whether the public key check software is reliable and uses the public key encryption algorithm.
Verification Code; md5
Rpm-Kfilename check before installation
Run the rpm-V-pfilename command to check whether the software is reliable before installation.
/Etc/pki/rpm-gpg
Rpm -- importRPM-GPG-KEY-redhat-release import key
Re-import the RPM Database
Rpm -- rebuilddb Reconstruction
Rpm -- initdb is not created if it is already in use.
Composition of software:
1. Configuration File
2. Binary Program
3. Database Files
4. Help File
Installation path of the software package:
/(Default) used by the operating system itself
/Usr (default) used after the system is started
/Usr/local (default) default location for third-party software installation
/Usr/local/APP (specified)
/Opt/(specified)
Yum Implementation Mechanism
1. ftp ://
2. http ://
3. file :///
/Etc/yum. conf
/Etc/yum. repos. d/FILE. repo
Image address on the Internet
Mirrors.163.com
Mirrors.soho.com
Find the parent directory of repodate
YUM:
/Etc/yum. repos. d/FILE. repo
[Id]
Name = Description
Baseurl = 1 | 2 | 3
Gpgcheck = 0
Enabled = 0 | 1 disabled | start
Yum [oprions] [command] [package...]
Install
Update
Yumlist {all | installed | available} view the Software Package
Yumcheck-update: Check the software packages that can be upgraded
Yumremovefilename uninstall package
Yumcleanall clear Cache
Yumprovides | whatprovidesFILE
Yuminfo: query the summary of the software package = rpm-qi
Yumgrouplist
Install yumgroupinstall "xxxxx"
YumlocalinstallRPM-FILE Local installation of rpm package
-- Nogpgcheck does not check the signature information
Yumlocalupdate
Yumreinstall
Yumdowngrade downgrade
Include header file
The header files of all software packages are under/usr/include /.
Source code: c, c ++, Perl
Configure, Makefile. in ---> makefile
C, c ++ source code package installation steps:
./Configure -- prefix = Specify the location -- help view option <----- check the pre-compilation environment
Make <----- compile
Makeinstall <-----
Perl
Per1Makefile. PL
Make