Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Comparison between yum installation and source installation

2025-04-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Chatting with friends who are doing operation and maintenance, we talked about which is good for yum installation or source code installation. I really didn't expect that there would be quite a big difference on this issue. Some people think that installation without source code is not a good operation and maintenance, not a good system administrator. This hat is a little too big. Here I want to say my opinion, often read my blog, perhaps know, early I wrote about the server article, basically source installation, and later basically installed with yum, unless yum source inside there is no, I will source installation. In my opinion, yum installation and source code installation, basically no difference, or ultimately generate the system required files, what is the difference?

Yum installation and source code installation, different ways

1. Yum installation is to download the rpm package from yum source to local area and install this rpm package. This rpm package is a binary package compiled and installed by someone else. This is more of an update than an installation.

2, source code installation, download is the source code package, to compile and install, the compilation process, you can set parameters.

Second, yum installation and source code installation, advantages and disadvantages analysis 1, yum installation advantages and disadvantages

The advantages of yum installation are very clear for operation and maintenance. It is convenient and fast to install things, especially without considering package dependencies.

Yum installation shortcomings, installation process, human intervention, can not be on-demand, installation. Install whatever is in the source, and the installed version is relatively low.

2. Advantages and disadvantages of source code installation

The advantages of source installation, compilation and installation process, you can set parameters, according to the needs, installation, and installation version, you can choose your own, flexibility is relatively large.

Source installation shortcomings, due to installation packages too new or other problems, resulting in dependent packages do not exist, or the version is too low. At this time, we must solve the dependency problem of the package. There are packages in the linux system. One depends on one. It may install a small thing. We must solve the dependency problem of a bunch of packages. We spend a lot of time solving the dependency problem of the package. Source installed more, dare not upgrade the system, upgrade the system, may lead to manual installation of things before, can not be used.

Many people who do operation and maintenance think that the performance of source code installation is better than that of yum installation. According to the parameters, the installation is definitely better than a lot of yum installation. I can only say that he does not understand configuration. They don't know what they're packing. In my opinion, the same version of yum installation and source code installation is exactly the same.

Take apache for example, this thing, very common, one of the most widely used tools for web, source code installation,./ When configuring, you can add many parameters to achieve customization. Yum installation can also be installed, yum installed a lot of apache modules, some modules are not used, waste system resources and affect performance for no reason. But we can configure httpd.conf ah, do not require modules, we can not LoadModule ah, by modifying the configuration file, can achieve the same effect as the root source installation. Do not rule out a small number of software, after installation, can not configure the situation, that is to say, installation time is how many things, that is, how many things, no configuration file can be configured.

I think, for those who just contact linux, source installation is necessary, so you can know what you are doing, installation process, will certainly encounter a lot of problems, encountered problems, solve problems. That's how they grow. Don't always use yum installation, if yum installation a little problem, dumbfounded, do not know how to solve, so very cup.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 248

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report