如何在远程计算机上安装RPM文件?
我在S3存储桶中有一个RPM文件(该链接向公共开放)。 作为管道的一部分,我需要在远程计算机上安装此RPM文件。
GitLab管道将使用Runner(Machinea)(Alpine Linux容器)。 此机械将使用参数admin_server_ip,admin_server_user和admin_server_ssh_key(ssh pem文件的原始文本)传递。 使用这些参数,来自Machinea,我需要在Machineb(admin_server_ip)上安装RPM文件。
我尝试了,
echo $ADMIN_SERVER_SSH_KEY > sshkey.pem
echo "yum install -y rpmfilelink" | ssh -tt -i sshkey.pem $ADMIN_SERVER_USER@$ADMIN_SERVER_IP
但它只是卡在那里,因此在最后添加了0。 而且即使是错误,它也只是返回成功。
请建议远程命令在远程计算机上安装rpm文件
I have a rpm file in s3 bucket(the link is open to public).
This rpm file I need to install on a remote machine as part of pipeline.
The gitlab pipeline will be using a runner(machineA) (alpine linux container).
This machineA will be passed with parameters ADMIN_SERVER_IP ,ADMIN_SERVER_USER and ADMIN_SERVER_SSH_KEY(raw text of ssh pem file).
With these parameters, from machineA, I need to install the rpm file on machineB(ADMIN_SERVER_IP).
I tried as
echo $ADMIN_SERVER_SSH_KEY > sshkey.pem
echo "yum install -y rpmfilelink" | ssh -tt -i sshkey.pem $ADMIN_SERVER_USER@$ADMIN_SERVER_IP
but it just stuck there, so added exit 0 at the end.
And it simply returning success even for error.
Please suggest good command to remote install a rpm file on a remote machine
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论