Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Some knowledge about rpm package and source code package

Shulou Source: shulou.com Published: 2022-06-01 05:10:48 10月03日 Update

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.

Tags: Query location command file dependency instruction source code tedious just way software upgrade source code different reason between author information premise suffix Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Shulou Technology OPPO Reno vpn