Lynx vs. Firefox:
Debian (Sid) ja update-alternatives
@ 11:37
Sid käynnisti Lynxin aina tuon tuostakin linkkejä napsauttaessa. Jäljitin ongelman Debianin alternatives-järjestelmään, jonka käytön hahmottaminen vaati hieman opettelua. Tässä pikakurssi:
Each alternative has a priority associated with it. When a link group is in automatic mode, the alternatives pointed to by members of the group will be those which have the highest priority.
Man page of update-alternatives
annys.eines.info G
sidx:~# update-alternatives --display www-browser
www-browser - status is auto.
link currently points to /usr/bin/lynx
/usr/bin/w3m - priority 25
slave www-browser.1.gz: /usr/share/man/man1/w3m.1.gz
/usr/bin/lynx - priority 50
slave www-browser.1.gz: /usr/share/man/man1/lynx.1.gz
Current `best' version is /usr/bin/lynx.
www-browser - status is auto.
link currently points to /usr/bin/lynx
/usr/bin/w3m - priority 25
slave www-browser.1.gz: /usr/share/man/man1/w3m.1.gz
/usr/bin/lynx - priority 50
slave www-browser.1.gz: /usr/share/man/man1/lynx.1.gz
Current `best' version is /usr/bin/lynx.
sidx:~# update-alternatives --install www-browser \
www-browser /usr/bin/mozilla-firefox 75
sidx:~# update-alternatives --display www-browser
www-browser - status is auto.
link currently points to /usr/bin/mozilla-firefox
/usr/bin/w3m - priority 25
slave www-browser.1.gz: /usr/share/man/man1/w3m.1.gz
/usr/bin/lynx - priority 50
slave www-browser.1.gz: /usr/share/man/man1/lynx.1.gz
/usr/bin/mozilla-firefox - priority 75
Current `best' version is /usr/bin/mozilla-firefox.
www-browser /usr/bin/mozilla-firefox 75
sidx:~# update-alternatives --display www-browser
www-browser - status is auto.
link currently points to /usr/bin/mozilla-firefox
/usr/bin/w3m - priority 25
slave www-browser.1.gz: /usr/share/man/man1/w3m.1.gz
/usr/bin/lynx - priority 50
slave www-browser.1.gz: /usr/share/man/man1/lynx.1.gz
/usr/bin/mozilla-firefox - priority 75
Current `best' version is /usr/bin/mozilla-firefox.
Each alternative has a priority associated with it. When a link group is in automatic mode, the alternatives pointed to by members of the group will be those which have the highest priority.
Man page of update-alternatives
annys.eines.info G
Kommentit (0):
Kommentointi on suljettu.