To find the version of ncurses installed on linux system though shell command
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
the OP specified Ubuntu, so he got an Ubuntu specific answer.
Quote:
Originally Posted by dickey
But that's the package version, which may not be what was requested.
The package version includes the ncurses version.
Using tic or incocmp will only report about that particular version of ncurses that they are using (ie the ncurses version of ncurses-bin, or if you want distro non-specific ncurses version they are linked against) and not the versions of all ncurses packages installed.
> Using tic or incocmp will only report about that particular version of ncurses that they are using
> (ie the ncurses version of ncurses-bin, or if you want distro non-specific ncurses version they
> are linked against) and not the versions of all ncurses packages installed.
What do mean with "all ncurses packages installed"?
How can you install multiple ncurses version via your distro manager? For example at /usr/bin/tic
there may be only one tic, not more than one, so I am curious how you resolve this situation.
(Of course I know how to resolve it on non-FHS systems such as GoboLinux; and I am aware of
hacks such as gentoo's eselect, but I am still curious to hear how you resolve this on FHS
systems.)
tic will work very well since the cases where people on FHS use multiple versions of ncurses
will be very, very small. The ideal way would be to have a .pc file for ncurses distributed
by default. Querying the soname may also be useful - even in the event that there is more
than one version, the sonames will always have a higher number when released at a later time,
which can be used in scripts to check for their version.
I had the same problem as the threadstarter since I have a gem written in ruby that queries
lots of host-systems, a bit like the script used in linux from scratch. I thought about what
the best way would be but the tic-way suggested by dickey is highly superior, since it is
distribution-agnostic rather than debian-constrained as the comment before stated via
dpkg. Not everyone uses debian, bro.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.