RPM software package management

Source: Internet
Author: User

Before managing RPM software packages, let's talk about source code management.

Source code management has the following features:

1. The vast majority of open-source software is published in the form of source code

2.The source code is usually packaged into an archive compressed file of tar.gz.

3. The source code can be run only after being compiled into binary.

Source code compilation process

1-./configure check related configuration environment and related library files and configuration parameters to form makefile

2-make: Compile the source code to form a binary file.

3-make install: load the generated binary file into the computer

It is difficult to manage source code, but it is more controllable.

Because open-source software does not repeat the development wheel, the dependency between software makes it troublesome to install software.

Disadvantage: The operation is complicated. It is very easy to make errors when compilation of troublesome software takes a long time.

Advantages: easy to control and adaptable

So in order to simplify the operation during software installation, RPM (redhat Packet Manager... Red Hat appears)

RPM simplifies the installation and management of open-source software by compiling source code based on a specific platform system into executable files and saving dependencies.

Each platform has a specific rpm file. RPM cannot solve the cross-platform issue of an rpm file. Therefore, when downloading an rpm package, you must check which platform it applies.

RPM naming rules

Software name-version number. applicable system. rpm

RPM basic commands

Rpm-I software. rpm install software

Rpm-e software Uninstall software

Rpm-U software-new.rpm upgrade software (this is the rpm update package downloaded online, do not want to uninstall the original, directly upgrade, this command)

RPM also supports download and installation in the form of http and ftp

Rpm-I http://hehe.com/hehe.rpm

You can add the following parameters to the rpm command:

-V: displays the corresponding information.

-H: display progress bar

RPM query

Rpm-qa lists all installed rpm software on the machine (q should be the meaning of the query)

Rpm-qi softwarename allows you to view software information)

Rpm-qf directory can be used to view the software on which a path is installed (file)

Rpm-qip softwarename. rpm queries information about an uninstalled software package)

Run the rpm-ql softwarename command to query a list of files contained in the installed software)

RPM also has its inconveniences. The idea of open-source development without repeating the development wheel makes it necessary to manually solve the dependency between software when installing an open-source software, before installing many software, you must install one or more software in advance. You can use YUM to solve this problem manually. (For more information about YUM software management, see ).

That's all!

Zookeeper

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.