On 10/18/12 00:24, Steve Christensen wrote:
I have had some questions on my IPS packages. The installation of
several packages - in /usr/local directories - goes fine. But when a
user does an uninstall on just one of the packages, the entire
/usr/local directory gets removed, not just the files in the packages.
How do I prevent this?
Apparently, the /usr/local directory existed before the install of any
of my packages.

To ensure the correct state of the system, all files a package delivers are removed when a package is removed, and all directories and links are removed when the last package to declare them is removed.

The pkg(5) team has discussed possible enhancements to this where package creators could declare the desired behaviour for removal. However, no implementation exists at this time.

The best alternative I can suggest at the moment is for the user to install a stub package that is never removed that delivers /usr/local. As long as that package remains installed, the directory will not be removed.

Cheers,
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to