1 Source Code Form
1 The vast majority of open source software is directly published in the form of source code
2 source code is usually packaged into a tar.gz archive zip file
3 The source code of the program needs to be compiled into binary form before it can be run using
4 The basic compilation process of the source code is:
1./configure Check the compilation environment, related library files and configuration parameters and generate Makefiel
2 make compiles the source code to generate the executable file
3 Make install installs the generated executable file to the current computer
5 source code in the form of software is more cumbersome to use, but the compatibility and control of the better
6 open source software usually uses a lot of other open source software function, so open source software will have a lot of dependencies
2 RPM
1 The disadvantages of the source code form: complex operation, long compilation time, more prone to errors
2 Advantages of the form of source code: Applicable to all systems, can be customized
3 to facilitate the development of RPM (Redhat Package Manager), early in order to give "Red hat" use
4 RPM simplifies installation management of open source software by compiling the source code into executable files based on a specific platform operating system and saving dependencies
The 5 RPM design objectives are as follows
Easy to use
Publish (. rpm) using a single package format file
Can be upgraded
Tracking software Dependencies
Basic information Query
Software verification function
Multi-platform Support
Common naming conventions for 6 RPM software packages
Like linuxcast-1.2.0-30.ei6.i686.rpm.
The form is name-version. System. 32/64 bits. rpm
installation command for 7 rpm
Installation software: Rpm-i software.rpm//Generally we are using-IVH as a parameter
Uninstall software: RPM-E software
Upgrade form installation: Rpm-u software-new software.rpm
RPM supports installation of software via HTTP,FTP protocol
RPM-IVH http.../software.rpm
8 We usually add two parameters V and h after I install
V is to display the relevant information, H is to show the progress bar
9 rpm Common Query commands
RPM-QA list all installed RPM software
RPM-QF filename query Specifies which RPM package the file belongs to
Rpm-qi PackageName Query Package information
RPM-QL packagename query Specifies the files that the package contains
RPM-QIP software.rpm Query rpm file information
Rpm-qilp software.rpm query rpm file contains files
RPM Software Verification Command:
1 Verify RPM Files Rpm-k software.rpm
2 Verifying the installed software rpm-v softname
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/