What is the difference between yum installation and source code compilation installation under linux?

  linux, question

I want to know the difference between yum installation and source code compilation.

Then under normal circumstances, how will everyone install the software?

The problem I am facing now is to install MySQL, and yum’s next issue is 5.1.6

But mysql’s official website is already 5.6.

Why is the version different? ? ?

Is it necessary to compile and install with the latest version? ?

Is it necessary to use the latest version? ?

  1. For a specific version of most Linux distributions, such as Cent OS 6.x or Ubuntu 14.04, a version of the software package provided by the government will be fixed and rarely upgraded across major versions in order to be stable and avoid problems arising from user upgrades.

  2. Yum is a package manager, in addition to undertaking installation, it will also help you manage the association between packages and packages, as well as additional functions such as uninstall and search. It mainly installs binary packages with rpm behind it. Of course, it also has source code packages, which are less commonly used. You can also find new versions of software packages provided by third parties, but you need to add this source yourself.

  3. If you only pursue the latest version, the source code is indeed the fastest way to obtain the new version, but it is rather troublesome. the association needs your own management (of course you can install the association package through yum) . the advantage is that you can define your own compilation parameters to make some optimization adjustments, and you can also install the software into the directory you wish to install.

  4. If you want to experience a new version of the software package at the first time every time, consider Archlinux, which does not have a release number and always rolls to the latest version. the package manager is called Pacman the bean eater.