Michal Pryc wrote:
Hello,
I am looking at the bug:
http://defect.opensolaris.org/bz/show_bug.cgi?id=7036
GUI to offer option to uninstall packages before publisher removal
"If the authority contains installed packages, the api should raise
exception. One the exception is raised the gui should ask user to
uninstall packages first and proceed with authority removal."
The question which I have is weather we should allow user to remove
repository which contains installed packages or not?
I assume you're asking about removing the publisher, not the repository.
I know that few people were complaining that they broke their system by
running command:
pfexec pkg unset-authority opensolaris.org
That means that opensolaris.org wasn't their preferred publisher. The
system won't let you remove the preferred publisher.
There were also several bugs here that I'm fixing in the changes for
bugs 6856 and 7456 that should prevent removing a publisher from causing
so much grief.
If we will ask user to remove packages before doing that I believe the
operation will be safe. User will still have option to point to another
repository using the same prefix.
You are correct that for the GUI, if you prompt to remove all of the
packages (don't forget it will have to be recursive so that all their
dependents won't prevent removal), that you could then safely remove the
publisher.
Danek brought up a good point that you may want to remove publishers who
are defunct (no longer offering packages), but keep the installed
software. Admittedly, you could just disable the publisher, but that
still leaves all of its repository and related transport information
hanging around.
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss