Some RPM instances in centos

Source: Internet
Author: User
Rpm-IVH MySQL-server-5.6.10-1.el6.i686.rpm# Install MySQL
 
Rpm-IVH -- Test MySQL-server-5.6.10-1.el6.i686.rpm# Check and install MySQL

Resolution:-I is equivalent to -- install, that is, installation. The syntax structure is RPM {-I | -- install} [install-options] package_file;

-V displays the installation information;

-H: displays the installation progress.

Install-Options
-- Nodeps When the software is dependent on other software and cannot be installed, you can force Installation
-- Replacefiles During installation, if a file already exists, you can directly overwrite it
-- Replacepkgs If the software has been installed, you can use this option to install it again
-- Force Force installation. Existing files are overwritten, and installed software is reinstalled.
-- Test Test and install without actually installing the software, but instruct to check the installation process
-- Justdb Update only the RPM database. If the RPM database is damaged, use this option to regenerate the relevant information.
-- Nosignature Check for skipping Digital Signatures
-- Prefix newpath Install the software to the specified directory
-- Noscripts Prohibit self-execution of system commands during installation
... ...
 
Rpm-uvh MySQL-server-5.6.10-1.el6.i686.rpm# Upgrade: If MySQL has not been installed, it will be installed. If MySQL has been installed, it will be upgraded.
Rpm-fvl MySQL-server-5.6.10-1.el6.i686.rpm# Update. If MySQL has not been installed, ignore it. If MySQL has been installed, upgrade it.

Resolution:-u is equivalent to -- upgrade. The syntax structure is RPM {-u | -- upgrade} [install-options] package_file;

-F is equivalent to -- freshen. The syntax structure is RPM {-f | -- freshen} [install-options] package_file.

 
Rpm e MySQL-server-5.6.10-1.el6.i686.rpm# Uninstall

Resolution:-E is equivalent to -- Erase. The syntax structure is RPM {-E | -- Erase} [erase-options] package_name

 
Rpm-Qa | grep rpm# Query all installed software packages

 

Resolution:-Q is equivalent to -- Query, that is, query. The syntax structure is RPM {-q | -- Query} [select-options]...

 
Rpm-qf/etc/RPM# Query the file/etc/RPM to whichProgramPackage

 

Resolution:-F is equivalent to -- File

 
Rpm-qc rpm | HEAD# Query all RPM configuration files

 

Resolution:-C is equivalent to -- configfiles

 
Rpm-Qd RPM | tail# Query all RPM instructions

 

Parsing:-D is equivalent to -- docfiles

 
Rpm-Qi rpm# Querying basic RPM Information

 

Resolution:-I is equivalent to -- info

 
Rpm-ql rpm | HEAD# Query all rpm-Related Files

Resolution:-L is equivalent to -- list

 
Rpm-QR man# Query man's required packages

Resolution:-R is equivalent to -- requires

 
Rpm-QPR MySQL-server-5.6.10-1.el6.i686.rpm# Query the packages on which the MySQL installation package depends

Resolution:-P is equivalent to -- package. The syntax structure is rpm-QP [select-options] package_file.

 
Rpm-va# Show All modified documents

Resolution: L indicates that the link path has been changed, and C indicates the configuration file.

Column 1: whether the S-file size is changed; whether the M-file type or attribute (rwx) is changed; whether the 5-md5 verification code is changed; and whether the D-device primary and secondaryCodeWhether the file is changed, whether the L-link path is changed, whether the U-file user is changed, whether the G-file user group is changed, and whether the T-File Creation Time is changed; whether the file capacity is changed.

Column 2: C-configuration file, D-document file, G-ghost file, that is, this file is not included by any software; L-license file; r-self-report file

 
Rpm-VP MySQL-server-5.6.10-1.el6.i686.rpm | tail# List files that may have been modified in the MySQL installation package

 

 
Rpm-VF/etc/crontab# Check whether the file has been changed

 

 
Rpm -- import/etc/pki/rpm-GPG/RPM-GPG-KEY-CentOS-6# Import a key file

 

 rpm -- rebuilddb  # rebuilding an RPM database  
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.