Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux RPM     - Python MySQL database connection (Database)

- Zookeeper Rights Management and Quota Management (Server)

- About ORA-02391 solution (Database)

- MySQL innodb_table_stats table does not exist solution (Database)

- Linux operating system security can not be ignored (Linux)

- Close common port to protect server security (Linux)

- RHEL7 unattended automatic installation DHCP + TFTP + SYSLINUX + TFTP + Kickstart (Linux)

- Lazarus for Raspbian installation (Linux)

- Linux --- process tracking (Linux)

- Python Django direct implementation of sql statement (Programming)

- How to configure FirewallD in RHEL / CentOS 7 and Fedora in (Linux)

- CentOS 6.5 configuration SSDB 1.8.0 (Server)

- Linux development environment to build and use the directory structure and file --Linux (Linux)

- Postgres-X2 deployment steps (Database)

- RocketMQ Message Queuing simple deployment (Linux)

- Java input and output common class Scanner (Programming)

- To configure parameter configuration and software installation and uninstallation under Linux (Linux)

- Without Visual Studio .NET Windows application development (Programming)

- ActiveMQ5.10.2 version configuration JMX (Linux)

- Linux how to prohibit the use of Ping command (Linux)

 
         
  Linux RPM
     
  Add Date : 2018-11-21      
         
       
         
  RPM is a package and installation tool for Internet download package, which is included in some Linux distribution version. Use rpm to install software tend to be more convenient than using the source installation.

Next, we install the rpm package, uninstalling, upgrading, querying, verifying, and to rebuild the database understanding rpm use.

1.rpm installation package

[Common Options]

-i install installation

-v Show Details

-vv show more detailed information

-h displays the installation progress using #

--test only test whether you can install, but not installed

--nodeps does not consider dependencies installed, the software may not work properly causing

--replacepkgs reinstall the package, such as the original configuration file exists, may not be covered

Common combination: rpm -ivh

[Example]

[Root @ localhost Packages] # rpm -ivh zsh-4.3.10-4.1.el6.x86_64.rpm

Preparing ... ########################################### [100% ]

1: zsh ########################################### [100%]


Uninstall 2.rpm package

[Common Options]

-e --nodeps uninstall program does not uninstall dependent packages may cause other software can not be used

[Example]

[Root @ localhost Packages] # rpm -e zsh


3.rpm upgrade package

[Common Options]

-U Software upgrading software exists, there is no software installation

-F Software upgrade software exists, does not exist, do not do anything

-v Show Details

-h displays the installation progress using #

[Example]

[Root @ localhost ~] # rpm -Uvh zsh-4.3.10-7.el6.x86_64.rpm

 warning: zsh-4.3.10-7.el6.x86_64.rpm: Header V3 RSA / SHA1 Signature, key ID c105b9de: NOKEY

 Preparing ... ########################################### [100% ]

 1: zsh ########################################### [100%]

[Root @ localhost ~] # rpm -e zsh # after unloading can be installed by -U

[Root @ localhost ~] # rpm -Uvh zsh-4.3.10-7.el6.x86_64.rpm

 warning: zsh-4.3.10-7.el6.x86_64.rpm: Header V3 RSA / SHA1 Signature, key ID c105b9de: NOKEY

Preparing ... ########################################### [100% ]

1: zsh ########################################### [100%]

[Root @ localhost ~] # rpm -e zsh # -F by not install after uninstalling

[Root @ localhost ~] # rpm -Fvh zsh-4.3.10-7.el6.x86_64.rpm

 warning: zsh-4.3.10-7.el6.x86_64.rpm: Header V3 RSA / SHA1 Signature, key ID c105b9de: NOKEY

Discover 4.rpm package

[Common Options]

-q PKG_NAME: a query whether the software has been installed

-qa: query list of all installed packages

-qi: Query package description -ql PKG_NAME: query list of the files generated by the package

-qc: Discover the specified package configuration files generated

-qd: query specifies the documentation generated package

-q --scripts: query specifies the generated document package

The script has four categories:

preinstall: script executed before installation

postinstall: After installing the script execution

preuninstall: script executed before unloading

postuninstall: script executed after uninstalling

-qf FILE: Discover a file which is generated by the package

# Using -qi, -qc, -ql, when -qd, added -p option to view information about the specified rpm package, not installed package information

[Example]

[Root @ localhost ~] # rpm -q zshzsh-4.3.10-7.el6.x86_64

[Root @ localhost ~] # rpm -qc zsh

/etc/skel/.zshrc

/ Etc / zlogin

/ Etc / zlogout

/ Etc / zprofile

/ Etc / zshenv

/ Etc / zshrc

[Root @ localhost ~] # rpm -qpc zsh-4.3.10-7.el6.x86_64.rpm

warning: zsh-4.3.10-7.el6.x86_64.rpm: Header V3 RSA / SHA1 Signature, key ID c105b9de: NOKEY

/etc/skel/.zshrc

/ Etc / zlogin

/ Etc / zlogout

/ Etc / zprofile

/ Etc / zshenv

/ Etc / zshrc


5.rpm package verification operation

[Common Options]

-V PKG_NAME: Profiles check whether the specified package changes

S size

M permissions, file type

5 MD5

D device number

L path

U-owner

G is a group

T modification time

P capacity

. Has not changed

[Example]

Run the following command # adding some annotation information in the specified file

[Root @ localhost ~] # rpm -V zsh

S.5 .... T. C /etc/skel/.zshrc # Description of the specified file size, MD5 modification time changed

Source of legitimacy and integrity check 6.rpm package

[Common Options]

--import import the public key file

-qa gpg-pubkey * Discover key file imported

-qi gpg-pubkey-NAME query the details of the specified key

-K PKG_FILE query specified package file check is successful, the installation process will automatically check

[Example]

[Root @ localhost ~] # rpm --import / test / RPM-GPG-KEY-RedHat-release


Reconstruction 7.rpm database

--initdb If the database file does not exist, a new presence exit

--rebuilddb direct overwrite the original database files
     
         
       
         
  More:      
 
- Create your own YUM repository (Linux)
- Linux, C programming language library file handling and preparation of Makefile (Programming)
- Java annotations entry automatically generates SQL statements (Programming)
- Nginx concerning the location and rewrite applications proxy_pass (Server)
- Ambari and Hadoop configuration, management and monitoring of the project Getting (Server)
- cat command uses the Linux redirection merge files (Linux)
- Free compiler install MySQL-5.6.14 (Database)
- Ubuntu 14.04 Boot Repair (Linux)
- Linux Network Programming - raw socket instance: MAC Address Scanner (Programming)
- Mac OS X 10.9 compiler OCI8 module (Programming)
- Hibernate in profile (Database)
- Getting the Linux shell expr use (Programming)
- Install Krita 2.8 on Ubuntu 13.10 / 12.04 / 12.10 (Linux)
- Spring declarative transaction management (Programming)
- Ubuntu installed Gimp 2.6.11 (stable version) with PPA (Linux)
- Elasticsearch Kibana installation notes (Linux)
- How to achieve the MySQL Oracle table associated with the two operations update (Database)
- Management DB2 logs (Database)
- Spring Data JPA @EnableJpaRepositories configuration in detail (Programming)
- OpenNMS compile under Linux (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.