Author Topic: Versions  (Read 2325 times)

varaahan

  • Member
  • *
  • Posts: 52
Versions
« on: June 09, 2008, 08:30:46 am »
Often I find one has to check a particular version of software is installed or not.
How to find this ?
For eg: I don't remember the version of VL I am running now.

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: Versions
« Reply #1 on: June 09, 2008, 08:32:19 am »
As root in a terminal:

slapt-get --installed | grep nameofpackage
"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Versions
« Reply #2 on: June 09, 2008, 08:38:16 am »
Quote
For eg: I don't remember the version of VL I am running now.
cat /etc/vector-version

varaahan

  • Member
  • *
  • Posts: 52
Re: Versions
« Reply #3 on: June 09, 2008, 08:43:04 am »
Thanks for your blazingly fast vector like replies.

What abt distro-independent command?
« Last Edit: June 10, 2008, 08:07:56 am by varaahan »

caitlyn

  • Packager
  • Vectorian
  • ****
  • Posts: 2921
    • The Linux Works
Re: Versions
« Reply #4 on: June 12, 2008, 10:26:14 pm »
Well, there is no distro independent command to give you the distro version.  You can get detailed information about the kernel you are running with:

uname -a

If you just want the kernel version number it's

uname -r

The slapt-get command above is not distro dependent.  It works perfectly well on any system using Slackware or Tukaani packages on which slapt-get is installed.  There is no command that will work on all distros since package management systems vary.  For example, on a system using rpm (Red Hat) package management system you could get the same result by typing:

rpm -qa | grep <packagename>

It's similar, as you can see.  If you're on a Red Hat Enterprise Linux system the command to get the version number is:

cat /etc/redhat-release

That's also similar but obviously distro dependent.
eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
VL64 7.1

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1

varaahan

  • Member
  • *
  • Posts: 52
Re: Versions
« Reply #5 on: June 13, 2008, 05:31:45 pm »
Some years back when I was reading about Mandrake, I read about a command which will display the version while booting the console. I forgot it . In fact one can change the items that appear on the console login with that command. My bad memory has betrayed me and I am unable to recollect that command.

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1559
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: Versions
« Reply #6 on: June 17, 2008, 12:33:08 pm »
Quote
There is no command that will work on all distros since package management systems vary. 
For software that supports pkg-config, you can probably use something like this on most distro's: 
Code: [Select]
pkg-config --modversion gtk+-2.0
2.10.14
Tricky thing is that you have to know what software comes with pkg-config files (the files in /usr/lib/pkgconfig). You can get a list of those with
Code: [Select]
pkg-config --list-allor if you want them sorted alphabetically,
Code: [Select]
pkg-config --list-all | sort
Most music on my soundcloud page was arranged in programs running on VL.