Install the Linux application using the RPM package tool and the source package compilation

Source: Internet
Author: User
Tags log log


System commands: Generally in the/bin and/sbin directories, or for the shell internal instructions, complete the basic management of the system, such as IP Configuration tool

Applications: Typically in the/usr/bin and/usr/sbin directories, complete relatively independent other ancillary tasks, such as Web browsers


The composition of the Linux application

/usr/bin Ordinary executable program file, normal user can execute

/usr/sbin server programs, hypervisor files, only administrators can perform

/etc configuration file that creates subdirectories when more files are available

/var/log log files

/usr/share/doc Data for the reference document file of the application

/usr/share/man manual page for executing files and configuration files


Query for installed RPM software information

Command format: rpm-q[sub-option] [software name]

-Q: Query whether the package has been installed

-QA: View a list of all RPM packages installed on the system

-qi: View detailed information for the specified software

-QL: Query the list of directories and files installed by the specified package

-QC: Displays only the configuration files for the specified package installation

-QD: Displays only documentation files for the specified package installation

-QF: Query which RPM software the file or directory belongs to


Query for RPM package files that are not installed

Command format: rpm-qp[sub-option] RPM package file

-QPI: View detailed information for the specified software

-QPL: View the list of directories and files that the package prepares to install


Install, upgrade, and uninstall RPM software

Command format: RPM [Options] RPM package file

-I: Install a new RPM package

-U: Upgrade an RPM software, install it if it is not already installed

-F: Update an RPM software, if not installed, then discard the installation

-e uninstalling software with the specified name

--force: Force the installation of the specified RPM package

--nodeps: Ignore dependencies when installing, upgrading, or uninstalling software

-H: Displays the progress of the installation with the "#" sign

-V: Displays detailed information during installation

Rebuild and maintain RPM database

RPM--REBUILDDB or RPM--INITDB


Import Authentication Public Key

--import

Example: RPM--import/media/cdrom/rpm-gpg-key-redhat-release

Import the public key files from the CD directory into the RPM database



Installing software using source code

Basic procedures for compiling and installing

Step 1. Unpacking: Extract the source package, unpack it, release it to the specified directory, wait for compilation, and habitually release the package to the/usr/src/directory.

Command format: Tar zxf source Package-C Specify directory


Step 2. Configuration: Set the target folder for installation, select the function module to install, etc.

Example: CD/Source code directory

./configure--help View various configuration parameters

./configure--prefix= Installed target folder


Step 3. Compiling: Compiling the configuration file into an executable binary file

Execute make command


Step 4. Install: Copy a good compilation of binary files to the system and set the application environment

Execute the Make install command


This article is from the "Yang Shufan" blog, make sure to keep this source http://yangshufan.blog.51cto.com/13004230/1946450

Install the Linux application using the RPM package tool and the source package compilation

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.