1. RPM
1. Management of rpm packages
1.1 Introduction
Linux Internet download package, similar to Windows setup.exe
1.2rpm simple query of installed rpm
rpm -qa | grep xxx
Do you currently have Firefox installed on Linux?
rpm -qa | grep fox
1.3rpm package format
An rpm package name: firefox-45.0.1-1.el6.centos.x86_64.rpm
Name:firefox
Version number: 45.0.1-1
Applicable operating system: el6.centos.x86_64
Represents the 64-bit system of centos6.x
If it is i686 or i386, it means 32-bit system, and noarch means universal.
1.4rpm package query instructions
①Query all rpm packages rpm -qa | more
② Check whether the xxx software is installed rpm -qa | grep xxx or rpm -q xx
③Query software package information rpm -qi firefox
④Query the location of the software rpm -ql firefox
⑤ Check which software the file belongs to rpm -qf /etc/passwd
1.5rpm package removal
rpm -e package name
①Delete firefox software
rpm -e firefox
②Forced deletion
rpm -e -nodeps firefox
1.6rpm package installation
① Grammar
rpm -ivh Full path to the RPM package
②Parameters
i=install install
v=verbose prompt
h=hash progress bar
③Install firefox browser
Find the installation package in /media/CentOS_6.8_Final/Packages and copy it to /opt
cp firefox-45.0.1-1.el6.centos.x86_64.rpm /opt/
install software
rpm -ivh /opt/firefox-45.0.1-1.el6.centos.x86_64.rpm
2. yum
1.yum introduction
Yum can download and install RPM packages from a designated server online , automatically handle dependencies, and install all software packages at once.
2.yum basic instructions
① Check whether the yum server has installed software
yum list | grep xxx
②Install the specified yum package
yum install xxx
3.Install firefox
① Check whether the yum server has firefox software
yum list | grep firefox
②Installation
yum install firefox