Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

newbie: syntax problem using "alternatives" system like Debian update dependencies

8 views
Skip to first unread message

Mitchell Laks

unread,
Apr 10, 2002, 11:06:44 PM4/10/02
to
I am sure that a debian expert could solve my problem in 2 seconds. i
just don't understand some documentation.

I am having problems with understanding the "alternatives" sysem set
up in redhat.

i quote the man page from redhat:
"natives system. The alternatives system is a reimplementa­
tion of the Debian alternatives system. It was rewritten
primarily to remove the dependence on perl; it is intended
to be a drop in replacement for Debian's update-dependen­
cies script. This man page is a slightly modified version
of the man page from the Debian project."

My problem is:
Hi I am running redhat 7.2 and wanted to upgrade to kde3 and forgot to
uninstall LPRng. as a result when cups got installed, it was installed
under the control of 'alternatives"
so as not to mess with lpr and lp from LPRng. the cups versions are
/usr/bin/lpr.cups and /usr/bin/lp.cups and cancel.cups How to enable
cups by redirecting lpr and lp to lpr.cups using the 'alternatives"
program?

> Hi,
> I hope I can bother you with a question.
> i was trying to figure out how to enable cups in
> redhat 7.2 and after my install - i already have LPRng there and
> i find that there is
> now an alternatives directory with symlinks to lpr.cups
> and lp.cups how do i enable this. i heard a rumor this
> is done via the command alternatives but i can't
> figure out the syntax of it!!!
> i tried "alternatives --install print lpr"
> cause the directory
> /etc/alternatives is composed of symlinks
> of print-lpr to /usr/bin/lpr.cups
> so somehow i have to tell the system that print-lpr
> should be put in for lpr in commands.
> how to do that?
> also the directory /var/lib/alternatives has a single file
> called print that has the following in it:

auto
/usr/bin/lpr
print-lp
/usr/bin/lp
print-lpq
/usr/bin/lpq
print-lprm
/usr/bin/lprm
print-lpstat
/usr/bin/lpstat
print-cancel
/usr/bin/cancel
print-lpc
/usr/sbin/lpc
print-cancelman
/usr/share/man/man1/cancel.1.gz
print-lpman
/usr/share/man/man1/lp.1.gz
print-lpcman
/usr/share/man/man8/lpc.8.gz
print-lpqman
/usr/share/man/man1/lpq.1.gz
print-lprman
/usr/share/man/man1/lpr.1.gz
print-lprmman
/usr/share/man/man1/lprm.1.gz
print-lpstatman
/usr/share/man/man1/lpstat.1.gz

/usr/bin/lpr.cups
20 cups
/usr/bin/lp.cups
/usr/bin/lpq.cups
/usr/bin/lprm.cups
/usr/bin/lpstat.cups
/usr/bin/cancel.cups
/usr/sbin/lpc.cups
/usr/share/man/man1/cancel-cups.1.gz
/usr/share/man/man1/lp-cups.1.gz
/usr/share/man/man8/lpc-cups.8.gz
/usr/share/man/man1/lpq-cups.1.gz
/usr/share/man/man1/lpr-cups.1.gz
/usr/share/man/man1/lprm-cups.1.gz
/usr/share/man/man1/lpstat-cups.1.gz

0 new messages