[csw-devel] SF.net SVN: gar:[14650] csw/mgar/pkg/alternatives/trunk/README.user

theferret at users.sourceforge.net theferret at users.sourceforge.net
Wed May 25 21:16:02 CEST 2011


Revision: 14650
          http://gar.svn.sourceforge.net/gar/?rev=14650&view=rev
Author:   theferret
Date:     2011-05-25 19:16:02 +0000 (Wed, 25 May 2011)

Log Message:
-----------
alternatives: add user facing doc file

Added Paths:
-----------
    csw/mgar/pkg/alternatives/trunk/README.user

Added: csw/mgar/pkg/alternatives/trunk/README.user
===================================================================
--- csw/mgar/pkg/alternatives/trunk/README.user	                        (rev 0)
+++ csw/mgar/pkg/alternatives/trunk/README.user	2011-05-25 19:16:02 UTC (rev 14650)
@@ -0,0 +1,44 @@
+This is a short documentation file for the OpenCSW targetted implementation of
+linux style "alternatives", aka "update-alternatives" in debian.
+
+USER LEVEL DOCS
+
+  alternatives --display shortname
+  # will display any currently installed symlink for "shortname"
+  # will display any installed packages that provide "shortname".
+  # will display current decision mode for --install, for "shortname"
+  #    (either "auto", or [?? something else]
+  
+
+  alternatives --config shortname
+  # will display any installed packages that provide "shortname".
+  # will prompt user for their preferred choice of package to use,
+     or to stick/revert to auto mode.
+
+  alternatives --auto shortname
+  # sets shortname to be auto-chosen. Will adjust symlinks now, if appropriate
+
+  alternatives --set shortname /provided/path
+  # sets shortname to be the implementation provided by /provided/path,
+  #  IF PRESENT.
+  # Basically, sets that one to be artificially "highest priority", then
+  # configure the link now.
+  # If the manual setting is invalid, it will be ignored
+
+  alternatives --install /full/path/name shortname /path/xx priority [...]
+  # notifies the alternatives handler, and says,
+  # "hey, here's an implementation. If its highest priority right now,
+  #   use it!"
+  # Unlike redhat, we dont actually "register" anything.
+
+  alternatives --remove shortname /full/path/name
+  # basically, a hint to reconfigure shortname "as appropriate",
+  # while ignoring anything matching /full/path/name as a valid alternative
+
+  alternatives --list
+  # Gives a short list of programs "known" to alternatives, on this machine.
+
+  alternatives --relink-missing
+  # if you are in a situation where symlinks have not been created,
+  # call this, and it will create any missing ones as appropriate
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list