按版本安装

1
2
3
4
5
6
7
8
9
yum list|grep filebeat

# 回显
filebeat.x86_64                         7.2.0-1                         @elastic
filebeat.i686                           7.2.1-1                         elastic
filebeat.x86_64                         7.2.1-1                         elastic

# 安装 指定版本7.2.0-1
yum install filebeat-7.2.0-1
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#search
yum search iostat

#search
yum list java*

# HTTP Error 404 - Not Found
yum clean all
rpm --rebuilddb
yum update

#check package installed
yum list installed xxx

# 列出所有已安装的软件包 
yum list installed

#升级所有包同时也升级软件和系统内核
yum -y update 

#只升级所有包,不升级软件和系统内核
yum -y upgrade 

#check installed package
rpm -qa|grep jdk

#安装
yum install httpd
yum -y install httpd

#local install
sudo yum localinstall influxdb-1.2.4.x86_64.rpm

#卸载
yum remove httpd
yum -y remove httpd


#yum mirror
/etc/yum.repos.d
#Yum更新中排除特定的包
yum update --exclude=kernel* --exclude=php*
https://www.howtoing.com/exclude-packages-from-yum-update

https://my.oschina.net/andyfeng/blog/601291

http://gzmaster.blog.51cto.com/299556/72278

http://www.cnblogs.com/kevingrace/p/6252659.html