On Tue, Sep 22, 1998 at 10:03:50PM -0300, Javier Sturman wrote:
> Hello, good evening!
> 
> I'm using RedHat 5 and I want to upgrade to ncurses 4.
> Which is the best (problemless?) way to do it?
> I was looking into rpm man to list all programs that need (actual)
> ncurses, but I didn't realize how to do it.

I have a little script that may get in the ballpark:

--- tryit.sh ---
for CAP in $(rpm -q --provides ncurses)
do
  rpm -q --whatrequires $CAP
done
--- end ----

$CAP will have the "capabilities" that ncurses provides.
The loop then asks which of the installed packages require
this capability.  On my system, the output is as follows:

- These packages require ncurses -
isdn4k-utils-2.1b1-6
LPRng-3.2.3-2
dialog-0.6-6
gpm-1.13-1
info-3.11-1
less-332-1
vim-4.5-2
playmidi-2.3-4
psmisc-16-1
screen-3.7.4-1
statserial-1.1-4
netkit-ftp-0.10-5
statnet-2.1-1
ispell-3.1.20-1
ddd-2.1.1-1
vim-X11-4.5-2
xemacs-base-19.16-4
lisa-3.0-16
util-linux-2.7.1-2
ncurses-4.1-2
isdn4k-utils-2.1b1-6
netkit-ntalk-0.10-4
netkit-telnet-0.12-1
procps-1.2.7-1
mutt-0.93.1-2
postgresql-6.1.1-4
postgresql-clients-6.1.1-4
XFree86-xterm-3.3.2-1
XFree86-programs-3.3.2-1
ncftp-2.4.2-1
gcal-2.10-2
- end -

stderr also has
- begin -
no package requires libmenu.so.4
no package requires libform.so.4
- end-

Caveats:  You may need to use the -a argument with -q; there may be
an easier way to do this; YMMV.

Hope this helps.

Kurt

Reply via email to