版本回滚
我正在 Linux 中做一个概念,我想为 Linux 中安装的应用程序进行版本回滚。是否可以??
例如,我有一个名为 X 的应用程序,版本为 1.1 我得到更新。它将其更改为版本1.2 我注意到应用程序中的所有软件包都将被修改。 然后我保存它们并应用更改。 现在由于一些问题我想切换回版本 1.1 如果我撤消更改并制定整个解决方案,回滚会完成吗?
I am doing a concept in linux in which i want to do version rollback for an app installed in linux. Is it possible??
For eg I have an application named X with version 1.1
I get an update. It changes it to version 1.2
I note what all the packages in the app going to be modified.
Then i save them and apply the changes.
Now after sometime due to some problems I want to switch back to version 1.1
If i undo the changes and make the entire solution will the rollback be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Unix 中最简单且常见的方法是将它们安装在单独的目录中,
例如“/usr/bin/MyApp.1.2.3”和“/usr/bin/MyApp.1.2.4”,然后创建一个指向要使用“/usr/bin/Myapp”的链接。
更改版本只需移动链接即可。
The easiest and common way in Unix is to install them in separate directories,
eg "/usr/bin/MyApp.1.2.3" and "/usr/bin/MyApp.1.2.4" then create a link to the one to use "/usr/bin/Myapp".
Changing versions is then just a matter of moving the link.
你不需要发明任何东西。只需保留您安装的软件包即可。如果要返回,请卸载当前版本并再次安装以前的软件包。
You don't need to invent anything. Just keep the packages you install around. If you want to go back, uninstall the current version and install the previous package again.