On 02/28/10 03:22 PM, Shawn Walker wrote:
On 02/28/10 03:01 PM, casper....@sun.com wrote:
...
E.g., I have broken "python" and now I need to copy the data from
the server. Where is it?
If python wasn't broken, you'd use "pkg fix" to fix it. If python was
unavailable, you'd go to the BUI for the repository, and search for
"/usr/bin/python" under advanced search. That would list the action
(along with its hash and target path) that matched the delivered file.
You could then use the hash to retrieve the compressed source file and
restore it. The BUI could change of course to simplify this a little
bit, but you get the idea.
If you were off-line and couldn't use the BUI to search, you could grep
through the package manifests in /var/pkg/pkg for "usr/bin/python" and
do the same thing.
And before I forget, you could also boot from a LiveCD that matched the
build you were running and:
* mount the target boot environment somewhere
* execute "pkg -R /mntpoint fix"
...which would use the download cache if present, and if the content
needed was missing from the download cache, it would retrieve it if
possible.
Cheers,
--
Shawn Walker
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org