VectorLinux
October 31, 2014, 04:26:20 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Versions  (Read 1236 times)
varaahan
Member
*
Posts: 52


« on: June 09, 2008, 07: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.
Logged
lagagnon
Global Moderator
Vectorian
*****
Posts: 1922



WWW
« Reply #1 on: June 09, 2008, 07:32:19 am »

As root in a terminal:

slapt-get --installed | grep nameofpackage
Logged

"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #2 on: June 09, 2008, 07:38:16 am »

Quote
For eg: I don't remember the version of VL I am running now.
cat /etc/vector-version
Logged
varaahan
Member
*
Posts: 52


« Reply #3 on: June 09, 2008, 07:43:04 am »

Thanks for your blazingly fast vector like replies.

What abt distro-independent command?
« Last Edit: June 10, 2008, 07:07:56 am by varaahan » Logged
caitlyn
Packager
Vectorian
****
Posts: 2876


WWW
« Reply #4 on: June 12, 2008, 09: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.
Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

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


« Reply #5 on: June 13, 2008, 04: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.
Logged
The Headacher
Louder than you
Global Moderator
Vectorian
*****
Posts: 1552


I like the bass to go BOOM!


WWW
« Reply #6 on: June 17, 2008, 11:33:08 am »

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:
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:
pkg-config --list-all
or if you want them sorted alphabetically,
Code:
pkg-config --list-all | sort
Logged

Most music on my soundcloud page was arranged in programs running on VL.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!