The difference between source package and RPM package of Linux package management

Conceptual difference

                       源码包

Advantages :
1) open source, if there is sufficient capacity, you can modify the source code
2) are free to choose to install the required function
3) software is compiled and installed, it is more suited to their system, more stable, more efficient
4) easy to uninstall
shortcomings :
1) There are many installation steps, especially when installing a large software collection (such as LAMP environment), it is easy to 2) Spelling errors
3) Long compilation time
4) Because it is a compilation installation, the error is difficult to solve

                         RPM包(二进制包)

Advantages
1) The package management system is simple, and package installation, upgrade, query and uninstallation can be achieved with just a few commands
2) Faster installation speed
Disadvantages
1) Source code can no longer be seen after compilation
2) Function selection is not as good as source code package flexible

Difference in installation location

The RPM package is installed in the default location. The
Insert picture description heresource package is usually the specified installation location.
We are generally used to / usr / local / filename installation
Emphasis: / usr is the Linux system resource directory
/ local is local, which is the location where the system prepares for us to install the software

The impact of different installation locations

The service installed by the RPM package can be managed using system management commands.
For example: the apache startup method installed by the RPM package

/usr/local/apache2//bin/apachectl start

#systemctl start httpd.service #启动

#systemctl stop httpd.service #停止

#systemctl restart httpd.service #重启

Since the source package is not installed to the specified location, it cannot be started with a service command, and can only be started with an absolute path

You can use the netstat -ntlp command to see if your own software package is started.
Insert picture description here

Published 16 original articles · praised 3 · visits 427

Guess you like

Origin blog.csdn.net/qq_23321269/article/details/104543726