[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help installing an "alternative"



Ron Johnson <ron.l.johnson@cox.net> writes:

># update-alternatives --install x-www-browser firefox \
>                                        /usr/local/firefox/firefox 3
>update-alternatives: error: alternative link is not absolute as it 
>should be: x-www-browser

>What am I doing wrong?

The easiest way to see how this stuff works is to look at a postinst
script that already does it. Pick an existing alternative and look at
/var/lib/dpkg/info/$PACKAGE.postinst.

I think you want this:

# update-alternatives --install x-www-browser /usr/bin/x-www-browser \
	/usr/local/firefox/firefox 3

That sets up /usr/local/firefox/firefox as an alternative for
/usr/sbin/x-www-browser .


Reply to: