On Wed, Jan 02, 2002 at 11:36:27AM -0600, Siders, Keith wrote:
> This isn't mips-specific, so maybe belongs on another list, but I figured
> someone here could probably answer just as quickly. I need to track versions
> of all files in the system (embedded, flash-based, no disk media), but
> cannot find a structure member where a version number can be stored in a
> file header. Most linux command line apps generally have a -version command
> line option, but is not viable for our application. Have I missed something?
> Is there a standard Linux method/practice for version number tracking and
> retrieval that is separate from CVS and the -version command switch, or do I
> have to use something proprietary? Or should I just try to use the file
> creation timestamp?
Usually this is the reason for a distribution which stores some kind
of metadata in some flavour of package database:
(flo@paradigm)~# dpkg -l gcc binutils
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
ii gcc 2.95.4-9 The GNU C compiler.
ii binutils 126.96.36.199.12.3 The GNU assembler, linker and binary utiliti
Florian Lohoff firstname.lastname@example.org +49-5201-669912
Nine nineth on september the 9th Welcome to the new billenium
Description: PGP signature