如何使用rpm删除一些多余的文件夹
我使用的是 Fedora 10,我为我的软件创建了一个 rpm 文件。它从安装的目录中删除所有文件。如果我使用 yum remove 命令或 rpm -e 命令。但安装后我的应用程序会自动在主目录中创建一些额外的文件夹。如果我卸载应用程序,则主目录中的文件不会被删除。所以我必须做什么。我的规范文件中有什么需要写的吗?
I am using Fedora 10, I have created an rpm file for my software. It removes all the files from the installed directory. If i use yum remove command or rpm -e command. but after installation my application automatically creates some extra folders in home directory. If I uninstall my application then file from home directories do not get removed. So what I have to do. Is there anything that I have to write in my spec file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在 rpm 内创建卸载后脚本。
请参阅:最大 RPM:将 Red Hat 软件包管理器发挥到极限
You need to create a post-uninstall script inside your rpm.
See: Maximum RPM: Taking the Red Hat Package Manager to the Limit