On Tue, 23 Aug 2005, Manga Padmaja wrote:
Hi,
When i uninstall rpm , it uninstalls rpm package and also deletes the
directory (%prefix value) where rpm was installed. Is there any option i
can configure, so that only rpm is uninstalled but directory created
during install remains .
Spec file contains:
%files
%defattr(755, root, root)
%dir %{_prefix}
^^^^^^^^^^^^^^
You're telling rpm the packages owns that directory, thus it'll get
removed when the rpm is uninstalled. Leave it out and rpm won't remove the
dir on uninstall but generally speaking packages should own all the
directories they create.
- Panu -
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list