![]() ![]() Moreover, with one call to update-alternatives we can add as many slave links as we want. First, we need to provide the generic link, then the generic name – editor.1.gz, and finally the location of the actual file. Red Hat Enterprise Linux uses alternatives to ensure that only one Java Development Kit is set as the system default at one time. Let’s notice the syntax similar to that of install. The alternatives utility serves for managing different software packages that provide the same functionality. slave /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/micro.1.gz Micro: /usr/bin/micro /usr/share/man/man1/micro.1.gzįinally, we need to reinstall micro and add the lacking manual link with slave: $ sudo update-alternatives -install /usr/bin/editor editor /usr/bin/micro 100 \ Thus, let’s check what micro offers with whereis: $ whereis micro Ls: cannot access '/usr/share/man/man1/editor.1.gz': No such file or directory Unfortunately, it doesn’t exist: $ ls /usr/share/man/man1/editor.1.gz So we can find a slave manual link /usr/share/man/man1/editor.1.gz. Slave editor.1.gz is /usr/share/man/man1/editor.1.gz First, let’s check the editor‘s links: $ sudo update-alternatives -display editor update-alternatives -query java /bin/grep Link cut -f 2 -d ' ' which you could then use as input for the -install call. So we need to add a slave link to the micro‘s links group.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |