Installation 关于使用rpm-U升级已安装软件包的问题

Installation 关于使用rpm-U升级已安装软件包的问题,installation,package,upgrade,rpm,Installation,Package,Upgrade,Rpm,第一次安装包example.rpm后,使用rpm-Uvh./example.rpm。我错误地删除了一些示例的配置文件。第二次,我使用rpm-Uvh./example.rpm。它说这个软件包已经安装好了。所以它仍然缺少我删除的配置文件。 如何更改命令以使其安装配置文件 --replacepkgs reinstall if the package is already present 据 rpm --help 实际上,我删除了example.rpm安装的所

第一次安装包example.rpm后,使用
rpm-Uvh./example.rpm
。我错误地删除了一些示例的配置文件。第二次,我使用rpm-Uvh./example.rpm。它说这个软件包已经安装好了。所以它仍然缺少我删除的配置文件。 如何更改命令以使其安装配置文件

 --replacepkgs                    reinstall if the package is already present

rpm --help

实际上,我删除了example.rpm安装的所有文件。然后我使用命令再次安装它。它说“软件包已经安装”。也许可以通过在命令中添加--force或先删除已安装的软件包,然后使用命令再次安装来解决:)