使用 RPM 更新安装程序
我的应用程序有一个 RPM 包,安装路径是 /company/application/version。
我发现这很困难,因为它是一个 UNIX 平台并且没有注册表概念。
我需要澄清一些事情:
- 如何检查以前安装的版本号?
每次我安装不同版本的应用程序时,都会安装所有应用程序(即,由于安装目录结构,2.5 和 2.6 都被视为 2 个不同的软件。)
- 当旧版本已经安装时,如何停止新版本?
I have an RPM package for my application and the path of the installation is /company/application/version.
I am finding this difficult as it is a unix platform and there is no registry concept.
I need few things to be clarified:
- How can i check the previous installed version number?
Every time I install my different version application all gets installed (i.e 2.5 and 2.6 both are considered as 2 different softwares because of the installation directory structure.)
- How can I stop the newer version when old is already installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有看到规格文件,这只是在黑暗中拍摄,但我猜您可能在规格文件中缺少“版本”标签。请参阅http://www.rpm.org/max-rpm/ s1-rpm-inside-tags.html。一般来说,最大 RPM 是一个很好的资源。
Without seeing the spec file, this is just shooting in the dark, but I would guess you are probably missing the 'Version' tag in your spec file. See http://www.rpm.org/max-rpm/s1-rpm-inside-tags.html. In general, Maximum RPM is a good resource.