Differences between version 2 and predecessor to the previous major change of update-alternatives(8).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Thursday, September 25, 2003 3:36:25 pm | by JohnMcPherson | Revert |
Older page: | version 1 | Last edited on Tuesday, June 4, 2002 12:31:21 am | by perry | Revert |
@@ -410,5 +410,38 @@
ln(1), FHS, the Filesystem Hierarchy
Standard.
+----
+----
+!!Examples
+I manually installed and compiled a newer version of [wxWindows], and I wanted it to "play nice" with the older version I had installed.
+
+ $ ls -ld /usr/bin/wx-config
+ lrwxrwxrwx 1 root root 27 2002-07-14 22:32 /usr/bin/wx-config
+ -> /etc/alternatives/wx-config
+
+So the wx-config script is handled by the alternatives system.
+See what the alternative is pointing to:
+ $ /usr/sbin/update-alternatives --list wx-config
+ /usr/bin/wxbase-2.2-config
+or to see all the alternatives:
+ $ /usr/sbin/update-alternatives --display wx-config
+ wx-config - status is auto.
+ link currently points to /usr/bin/wxbase-2.2-config
+ /usr/bin/wxbase-2.2-config - priority 60
+ Current `best' version is /usr/bin/wxbase-2.2-config.
+
+So. Install a link to my wx-config from a later version. (Remember - Usage: update-alternatives --install <link> <name> <path> <priority>)
+
+ # update-alternatives --install /usr/bin/wx-config wx-config /usr/local/bin/wxgtk2u-2.4-config 70
+(I need a higher priority than 60 to be chosen of the wxbase-2.2 one from the debian package).
+
+Now to confirm that my one is chosen:
+ $ /usr/sbin/update-alternatives --display wx-config
+ wx-config - status is auto.
+ link currently points to /usr/local/bin/wxgtk2u-2.4-config
+ /usr/bin/wxbase-2.2-config - priority 60
+ /usr/local/bin/wxgtk2u-2.4-config - priority 70
+ Current `best' version is /usr/local/bin/wxgtk2u-2.4-config.
+
----