The distinction between binary packages and source code packages under Linux

Source: Internet
Author: User

Mainly available in three formats MySQL package: RPM format, binary format, source format: (Tar package, GZ compression)

RPM Format: libjpeg-devel-6b-33.x86_64.rpm #rpm格式很好区分,

Binary package: mysql-3.23.58-pc-linux-i686.tar.gz #二进制格式的包名字很长, version number, adaptation platform, suitable hardware type, etc., format:mysql-< version >-<os>- tar.gz

SOURCE package: php-5.2.14.tar.gz #而源码格式仅仅就是一个版本号的tar包. #cj installation differences: Unzip,./config, make, make, install

Source code is the code that the programmer writes,
Binary code is the code that the machine runs.
Source code must pass compile to become binary code.

There are two kinds of rpm: binary rpm and source rpm.
The former is well-programmed binary, and the installation is available.
The latter is not yet well-prepared source, need to rebuild after the installation

Source code mode and binary package are two forms of package. The binary package contains a program that has been compiled and can be run immediately. You only need to download and package (install) them later, you can use them immediately. The source code package contains the program's original program code, it needs to be compiled on your computer before you can run the program, so the time to install from the source code will be longer.

There is a command called file under Linux, because Linux does not judge the type of files by the suffix name. So in general, when it is unclear what type of document is, use the file command to judge.
File php-5.2.14.tar.gz
Php-5.2.14.tar.gz:gzip compressed data, was "Php-5.2.14.tar", from Unix, last modified:wed Jul 22:32:34, max com Pression
This php-5.2.14.tar.gz is obviously a gzip compressed package, such files are generally used with the tar zxvf command to unpack and then go to configure the installation, usually the installation method is called source code compilation installation.

File libjpeg-devel-6b-33.x86_64.rpm
libjpeg-devel-6b-33.x86_64.rpm:rpm V3 bin i386 libjpeg-devel-6b-33
This libjpeg-devel-6b-33.x86_64.rpm file is an RPM format package for the standard Redhat series release. Similar RPM packages can be installed in Rhel, CentOS, SUSE, and Oraclelinux in general. The standard installation method is RPM-IVH.

Basically, the Red Hat series Linux release installs the software in both ways. There are often mentioned Yum, in fact, by Yum automatically determine the dependence of the RPM package, and then all need to install the n rpm Unified download installation, in fact, the principle and the installation of RPM there is no essential difference.

commonly downloaded source packages on the official website are: tar.gz tar.bz2 end of the
compiled is generally at the end of the. RPM
The file extension under Linux has no real meaning
do it just to make it easier for you to see what type of package
then take the way to install and configure
Of course, sometimes it is not possible to see what type of package
because the filename can be arbitrarily modified
You can use the file command to see the type of package.

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.