Difference between source package and RPM package

a difference
Differences Before Installation: Conceptual Differences
The difference after installation: the installation location is different
 
Two RPM package installation location
is installed in the default location (as determined by the author of the software)


 
Example: The location where httpd is installed
[root@localhost ~]# rpm -ql httpd
Notice:
rpm installation can specify the installation location:
[root@localhost ~]# rpm --help | grep prefix
--prefix=<dir> Relocate package to <dir> if relocatable
During rpm installation, it is recommended not to specify the installation location. Otherwise, the management is inconvenient.
 
The influence of different installation positions
Services installed by RPM packages can be managed using the system service management command (service).
For example: the startup method of apache installed by RPM package is:
/etc/rc.d/init.d/httpd start
service httpd start
 
Four source package installation location
Installed in the specified location, usually: /usr/local/software name/
The source package does not have an uninstall command.
Services installed by source packages cannot be managed by the service management command because they are not installed in the default path. Therefore, only absolute paths can be used for service management.
例如:/usr/local/apache2/bin/apachectl start
 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326154794&siteId=291194637