RPM Software Installation

Source: Internet
Author: User

Software Introduction

1. Typical applications typically consist of the following parts

1) Ordinary executable program files, generally stored in the/usr/bin directory, ordinary users can execute

2) Server program, management program files. Typically saved in the/usr/sbin directory, only administrators can perform

3) configuration file. Generally stored in the/etc directory, the configuration file will be created when the corresponding subdirectory

4) log file. Typically saved in the/var/log directory

5) data such as reference documentation for the application. Typically saved in the/usr/share/doc directory

6) The Man manual page that executes the file and the configuration file. Typically saved in the/usr/share/man directory

2. Common package Types

1). RPM Package:

Extend the name to. rpm. Can only be installed in the RPM Smart Linux operating system, the dependency is strong. To install with the RPM command

2). Deb Package:

Extend the name to. Deb. Linux system installation only using the dpkg mechanism, to be installed with the dpkg command

3). Source Code Package

Compressed packages typically in. tar.gz or. tar.bz2 format generally Linux systems can be installed, using flexible

RPM Package Management tool

1. The RPM package in the disc is usually stored in the Server directory (Server,s is uppercase)

2.RPM Package Type (man rpm can be queried)

Divided into three major categories

1). Check and verify the RPM package information

2). Install, upgrade, uninstall RPM packages

3). Maintain integrated management operations such as RPM database information

3. Format: RPM [parameter] [package name]

4. Query RPM Package Information

--rpm-q [software name] software is installed, can be multiple

--rpm-qa | More View all installed software, pipe number paging view

--RPM-QF [file name] Query the file enter that software

--RPM-QL [Package name] query where installed software is installed

--rpm-qi [Package name] Query the installed software details info

--RPM-QC [software name] querying the configuration file for installed software

--RPM-QD [software name] View a document installation location where the software is installed

--RPM-QR [software name] View packages and files for installed software

--RPM-QP [software name] Displays the software that is not installed

-QPI [RPM software full name]

-QPL [rpm software full name ]

Note: To see if the package is not installed, it must be in the same directory as the RPM package. such as/mnt/cdrom/server or/package

5.RPM Package Installation and upgrade

Rpm-i [sub-parameters] [Full package name]

Rpm-u [sub-parameter] [FULL package name] If the software is not installed This command will be installed automatically

-H Displays installation progress in # when installing or upgrading

-V Displays details about the installation

Note: When installing multiple packages, you can use the wildcard character * system will automatically decide to install that package first

Note: The-IVH option is generally used during installation, as long as you replace I with U when upgrading the package

Note: Be sure to indicate the path where the package is installed

Example: rpm-ivh/media/cdrom/server/lynx-2.8.5-28.1.e15_2.1.i386.rpm

6.RPM Uninstalling Software

-rpm-e[parameters] [RPM package name]

Note: Uninstalling the software is not required for the full package name. When installing and uninstalling a package, you can use--nodeps to ignore dependencies because of dependencies that fail, and avoid ignoring dependencies in the real world
--nodeps does not check for dependencies

7. Other commands, package installation, uninstallation, upgrades there will be similarities in the parameters

Rpm-f [package name] Check the upgrade package and discard the installation without this package

--force Mandatory installation Touch a package

8. Rebuild the RPM database when the RPM database is damaged and the system cannot be repaired automatically.

RPM--REBUILDDB or

RPM--INITDB

9. Import the authentication public key

RPM--import/media/cdrom/rpm-gpg-key-redhat-release (public key name)


This article is from the "start from 0" blog, please be sure to keep this source http://0kaishi.blog.51cto.com/9457500/1679088

RPM Software Installation

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.