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

How to customize the rpm package

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

In this issue, the editor will bring you about how to customize the rpm package. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Customize the rpm package

Build an intranet yum (yum is a script written in python) warehouse and install the system in batches through kickstart, which is a necessary skill for Internet enterprise operation and maintenance automation and the cornerstone of automatic operation and maintenance.

Interview questions

Xiao Wang of the basic Operation and maintenance Department delivered me 100 servers, and I want to install the system in these 100 servers, including 10 NFS storage, 20 MySQL servers, 40 Redis servers, 20 Nginx+PHP servers, and 10 reverse proxy servers. Do you have any plans for rapid deployment and optimization? How long will it take to get it done?

Solution

1.tar packaging: first source code compilation, installation, packaging, batch distribution, unpacking

Batch deployment of 2.saltstack, puppet, ansible

3. Customize rpm package, build yum repository, yum installation

4.openstack virtual machine images and docker container distribution.

Four ways to install software

1. Compile and install

Advantages

Enable the function on demand

Customizable (customized installation directory and software features), no network is required in one case, and software version can be selected.

Shortcoming

You need to find and experiment with the appropriate compilation parameters

When upgrading a software version, it should be noted that some parameters have been cancelled

It takes too long to compile MySQL, PHP and other software.

Slow, complex, need to find compilation parameters, find dependency trouble, pure compilation dependency is more complex

2. Yum installation

Advantages

Fully automated installation

Simple and convenient

You don't have to worry about dependence anymore.

Shortcoming

Poor autonomy

When the network is not good, the download speed is slow.

There is no way to customize, the function and storage location of the software have been fixed, and it is not easy to change.

3. Binary installation

Advantages: simple and fast

Disadvantages: can not be customized, large package capacity

4. Customize the rpm package

Process: compile software according to requirements = > part rpm package = > build intranet yum warehouse = > yum installation

Advantages: combine the advantages of compiler installation and yum installation

Disadvantages: the versatility of the rpm package is poor, and it can only be applied to the company's environment. The first step is complicated compilation and installation, cannot be changed again after packaging, and most people will not customize the rpm package.

Introduction to RPM

The English full name is Red Hat Package Manager, that is, Red Hat package manager.

Almost all Linux distributions use this form of package to manage installing, updating, and uninstalling software.

The rpm command has five basic functions (but does not include creating software packages): install, uninstall, upgrade, query, and verify

Rpm -? #

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: 0

*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