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

Some knowledge about rpm package and source code package

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

The location of the files local to the rpm package is:

/ mnt/cdrom/Packages

The disadvantages of rpm package installation are: strong dependencies, tedious installation, and sometimes errors due to dependencies between some installation files.

The following lists the rpm package command management and provides some instructions:

Installation instructions for the rpm package:

Rpm-ivh full package name

Execute this command on the premise that the installation package is available locally, and there will be a dependency prompt after installation. Just install it according to the dependency.

Rpm package naming convention: httpd-manual-2.2.9.el5.i386.rpm

Httpd / / is the software name

2.2.9 / is the version number

I386 / / is the architecture

Rpm / / is the rpm package suffix

Rpm package query:

Rpm-Q package name for package query

-qa a does all package queries for all

-qi httpd i queries httpd related package information for information

-ql httpd queries the location of installed packages

-qlp queries where uninstalled rpm packages will be placed

Rpm-qf a file name to query the rpm package to which the file belongs

Note: the rpm package is installed in the default location where the author of the rpm package is written

Rpm package check:

The command rpm-V can show whether it has been changed by someone else.

Rpm upgrade and uninstall:

Rpm-Uvh package name upgrade instruction

Rpm-e package name uninstall instruction

Note: rpm provides the uninstall command because its installation files are scattered, and it is tedious to delete it manually. You can delete the rpm package with the corresponding instructions.

The difference between the source package installation and the rpm package:

Conceptual difference: one can see the source code, the other can't, and the rpm package installs faster.

Installation location is different: rpm package installation is the default path, while source code installation needs to specify a location, usually / usr/local/ software name

Startup service: rpm can be started using service httpd start, and the other is / usr/local/apache2/bin/apachectl start of course the most basic startup of rpm installation is / etc/rc.d/init.d/httpd start

Delete method: the rpm package only needs to execute the uninstall command, while the source code installation only needs to delete the directory.

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

Network Security

Wechat

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

12
Report