Detailed explanation of Linux rpm and yum commands and usage

Detailed explanation of Linux rpm and yum commands and usage

RPM package management

A packaging and installation tool for Internet download packages. It generates files with the .RPM extension.

RPM is the abbreviation of RedHat Package Manager, which is similar to setup.exe in Windows.

Simple query command for rpm package

rpm –qa # 查詢已安裝的rpm 列表

The basic format of rpm package name

An rpm package name: firefox-45.0.1-1.el6.centos.x86_64.rpm

firefox:name
45.0.1-1: Version number
el6.centos.x86_64:centos6.X---64 bit

RPM other instructions

rpm -q package name # Check if it is installed rpm -qi package name # Check package information rpm -ql package name # Check the installation location of files in the package rpm -qf file (such as: /etc/passwd) # Check which rpm package a file belongs to

Uninstall rpm package

rpm -e 包名

Package dependency issues:

If other packages depend on the package you want to uninstall, an error message will be generated when uninstalling it.

rpm -e --nodeps 包名# 強制刪除

Install rpm package

rpm -ivh RPM package full path name

i:install
v:verbose prompt
h:hash progress bar

yum

Yum is a shell front-end package manager. Based on RPM package management, it can automatically download and install RPM packages from the specified server, automatically handle dependency relationships, and install all dependent software packages at once. The premise of using yum is that you can connect to the Internet. Type pip in python

Basic instructions

yum list|grep xx # Check whether there are packages that need to be installed on the yum server
yum install xxx # download and install

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • A detailed introduction to the three installation methods of rpm, yum and source code under Linux
  • How to check whether a certain software has been installed by yum/rpm/dpkg in Linux
  • Summary of RPM package installation, query and uninstallation commands in Linux and detailed explanation of yum command
  • RPM packaging process under Linux
  • RPM installation command in Linux command
  • Install mysql5.7.17 using RPM under Linux
  • Detailed explanation of how to install software tar.gz, rpm, deb under Linux

<<:  React's method of realizing secondary linkage

>>:  A brief discussion on using Cartesian product principle to query multiple tables in MySQL

Recommend

A brief discussion on MySQL temporary tables and derived tables

About derived tables When the main query contains...

How to implement image mapping with CSS

1. Introduction Image maps allow you to designate...

The hottest trends in web design UI in 2013 The most popular UI designs

Time flies, and in just six days, 2013 will becom...

An example of implementing a simple finger click animation with CSS3 Animation

This article mainly introduces an example of impl...

Detailed explanation of mandatory and implicit conversion of types in JavaScript

Table of contents 1. Implicit conversion Conversi...

Detailed View of Hidden Columns in MySQL

Table of contents 1. Primary key exists 2. No pri...

MySQL 8.0.13 installation and configuration tutorial under CentOS7.3

1. Basic Environment 1. Operating system: CentOS ...

Analysis of MySQL Aborted connection warning log

Preface: Sometimes, the session connected to MySQ...

Overview of time configuration under Linux system

1. Time types are divided into: 1. Network time (...

Detailed discussion of the character order of mysql order by in (recommended)

//MySQL statement SELECT * FROM `MyTable` WHERE `...

How to use Vue to implement CSS transitions and animations

Table of contents 1. The difference between trans...

Detailed example of how to implement transaction commit and rollback in mysql

Recently, we need to perform a scheduled migratio...

Talk about important subdirectory issues in Linux system

/etc/fstab Automatically mount partitions/disks, ...

The role of MySQL 8's new feature window functions

New features in MySQL 8.0 include: Full out-of-th...

Methods and steps for deploying multiple war packages in Tomcat

1 Background JDK1.8-u181 and Tomcat8.5.53 were in...