The difference between Linux "source code package" and "Binary package" __linux

Source: Internet
Author: User

Http://blog.chinaunix.net/uid-26602509-id-3076870.html


Source code and binary packages are two forms of software packages. The binary package contains a program that has been compiled and can be run immediately. All you need to do is download and pack (install) them and use them immediately. The source code package contains the original program code, you need to compile on your computer before you can run the program, so the time to install from the source code will be relatively long.

Source code is the code written by the program member, binary code is the password of the machine running. Source code has to be compile to become binary code.

There are two types of rpm: binary rpm and source rpm.
The former is a good binary, and installation is available.
The latter is not yet a good source, need rebuild to install.

The RPM format is very well differentiated, the binary format package name is very long, with version number, adapt to the platform, adapt to the type of hardware, and so on, and the source code format is only a version of the TAR package.
Mysql-5.0.45.tar.gz is the source package like this mysql-5.0.45-linux-x86_64-glibc23.tar.gz is binary package

If you use the compression tool you will understand that the compression package is not necessarily software, it may be a lot of backup pictures, but also may be packaged in common materials, to distinguish what it is the best way is to look at the file list in the package, using the command tar ZTVF *. or tar YTVF *.bz2.

Source code package files often contain a variety of source code files, header file *.h, C code source file *.c, C + + code source file *.cc/*.cpp, and so on, and binary package files will have executable files (and software with the same name is often the main execution file), The flag is the directory where the path contains the name bin (with only a few exceptions)

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.