版本回滚

发布于 2024-08-06 22:32:02 字数 188 浏览 1 评论 0原文

我正在 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 技术交流群。

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

发布评论

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

评论(2

静谧 2024-08-13 22:32:02

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.

若无相欠,怎会相见 2024-08-13 22:32:02

你不需要发明任何东西。只需保留您安装的软件包即可。如果要返回,请卸载当前版本并再次安装以前的软件包。

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.

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