如何编写 .spec 文件来检查 Fedora 10 中的 JRE 版本

发布于 2024-08-11 23:51:38 字数 209 浏览 2 评论 0原文

我使用的是 Fedora 10 Linux。我已经为我的软件创建了一个 RPM,它运行良好。但我想要以下功能 “如果我安装 RPM,它将检查 JRE 1.5 或更高版本在该系统中是否可用(如果可用),然后安装 RPM,否则我想显示下载 JRE 的 URL。

需要在 .spec 文件中写入任何内容

是否 我可以实现这种类型的功能吗

? 苏尼尔·库马尔·萨胡

I am using fedora 10 linux. I have created an RPM for my software it works fine. But I want the follwing feature
"If I install RPM it will check whether JRE 1.5 or greater is availble in that system if available then install the RPM otherwise I want to show the URL to download the JRE.

Is there anything that I have to write in my .spec file

How can I achieve this type of functionality.

Thanks
Sunil Kumar Sahoo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2024-08-18 23:51:38

我插入以下行来检查您的规范文件中是否有 jre 1.5 或更高版本
要求:jre >= 1.5

I insert the following line to check for jre 1.5 or greater in your spec file
Requires:jre >= 1.5

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文