Introduction to linux yum and rpm

RPM concept

A packaging and installation tool for Internet download packages, which is included in some Linux distributions. It generates files with a .RPM extension. RPM is
the abbreviation of RedHat Package Manager (RedHat package management tool), similar to Windows setup.exe. Although the name of this file format is
marked with the RedHat logo, the concept is universal.
Linux distributions are used (suse, redhat, centos, etc.), which can be regarded as a recognized industry standard

RPM commonly used instructions

command meaning
rpm -qa Query all installed rmp packages
rpm -qi Package name: Query whether the package is installed
rpm -ql Package name: Query the files in the package
rpm -qf File absolute path: query the software package to which the file belongs
rpm -e Package name uninstall software

Case studyInsert picture description here

Query whether the software package is installed rpm -q nc

Insert picture description here

Query package information rpm -qi nc

Insert picture description here

Show rpm detailed information

Insert picture description here

rpm -e uninstall package

Insert picture description here

Install the rpm package

rpm -ivh rpm package full path name

i=install 安装
v=verbose 提示
h=hash 进度条

Currently offline installation either rpm package or tar.gz package~

yum introduction

yum -y install the name of the package you want to download (-y don’t prompt whether to install)
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43674360/article/details/111314892
Recommended