LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you use update-alternatives --set? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-use-update-alternatives-set-597953/)

vwr0527 11-07-2007 11:39 PM

How do you use update-alternatives --set?
 
I keep getting the error that update-alternatives: Cannot find alternative `/usr/lib/usplash/dark-splash.so'.

whenever i run

sudo update-alternatives --set usplash-artwork.so /usr/lib/usplash/dark-splash.so

I can't find any help online that is simple enough for me to understand. I am simply changing the link to point to a different file, right (much easier to do in windows)?

Yes of course the file is sitting right there, and it's owned by root. Just for kicks I also ran sudo updatedb.

Appreciate any help. Please tolerate my dumbs.

ps. I know I could do this manually but I want to know why Linux is blatenly defying my commands and uttering these outrageous blasphemies.

vwr0527 11-07-2007 11:49 PM

Quote:

generic name
A name, like /usr/bin/editor, which refers, via the alternatives system, to one of a number of files of similar function.
symlink
Without any further qualification, this means a symbolic link in the alternatives directory: one which the system administrator is expected to adjust.
alternative
The name of a specific file in the filesystem, which may be made accessible via a generic name using the alternatives system.
alternatives directory
A directory, by default /etc/alternatives, containing the symlinks.
administrative directory
A directory, by default /var/lib/alternatives, containing alternatives' state information.
link group
A set of related symlinks, intended to be updated as a group.
master link
The link in a link group which determines how the other links in the group are configured.
slave link
A link in a link group which is controlled by the setting of the master link.
automatic mode
When a link group is in automatic mode, the alternatives system ensures that the links in the group point to the highest priority alternatives appropriate for the group.
manual mode
When a link group is in manual mode, the alternatives system will not make any changes to the system administrator's settings.

...

--set name path
The symbolic link and slaves for link group name set to those configured for path, and the link group is set to manual mode. This option is not in the original Debian implementation.
I'm still reading this. I might understand it tomorrow.
EDIT: If you need to create a custom link-group for each NEW individual usplash-custom-cool-theme.so, then what is update-usplash-theme FOR? Just to revert to the default theme??

EDIT: I'm in over my head. Just if you can explain this then that would be great. But I would also like to know what the update-usplash-theme script is and how to use that as well.


All times are GMT -5. The time now is 09:40 AM.