1.下载rpm包
```
https://pkg.jenkins.io/redhat-stable/
```
2.安装
```
rpm -ivh jenkins-x.xxx.xx-xx.noarch.rpm
```
3.启动
```
service jenkins start
```
4.卸载
```
rpm -e jenkins
```
5.彻底删除残留文件
```
find / -iname jenkins | xargs -n 1000 rm -rf
```
---
查看默认安装目录:
```
rpm -ql jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/cache/jenkins
/var/lib/jenkins
/var/log/jenkins
```
---
参考:
> https://blog.csdn.net/lijing742180/article/details/81127409