Installation package of linux software package: Source code: binary format: & nbsp 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
-Q PACKAGE_NAME: Check whether the software package is installed.
-Qa: View all installed software packages
-The packages listed in ql packagename generate the files for installation.
-Qc packagename: view the software configuration file
-Qd packagename: displays the help documentation generated after the software package is installed.
-Qf filepath: The package generated by which the file is queried.
-Qi packagename: query the summary of the software package.
2. installation:
Rpm-I packagename installation
Rpm-ivh packagename displays the installation progress
-- Nodeps ignores dependencies, but the installed software package may not be available.
3. uninstall:
Rpm-e PACKAGENAME 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-V filename 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-K filename check before installation
Run the rpm-V-p filename command to check whether the software is reliable before installation.
/Etc/pki/rpm-gpg
Rpm -- import RPM-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
Yum list {all | installed | available} view the software package
Yum check-update check the software packages that can be upgraded
Yum remove filename uninstall package
Yum clean all clear cache
Yum provides | whatprovides FILE query which software package is installed in a FILE = rpm-qf
Yum info: query the summary of the software package = rpm-qi
Yum grouplist
Install yum groupinstall "xxx xx"
Yum localinstall RPM-FILE local installation rpm Package
-- Nogpgcheck does not check the signature information
Yum localupdate
Yum reinstall
Yum 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
Make install <-----
Perl
Per1 Makefile. PL
Make