- 添加软件源(以jenkins说明)
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
如果已经导入过jenkins对应的key,会有失败的信息提示。
- 软件安装
yum install jenkins
- 软件查找
rpm -qa | grep jenkins
- 查看软件安装位置
rmp -ql jenkins