Re: portversion vs. pkg_version

2006-12-24 Thread Sherry Zhang

Mr. Lee:

imho, portversion(uses the INDEX file to look up port versions) is
like the desktop search(searh an index file), and the pkg_version(
queries the port
versions directly) is like the find command(search the entire disk);)

use portversion instead, it's efficient cause it use port database.
however, it will take a long time using portsdb to update the database
file (the INDEX file) when you want to use portversion.

ps,i like your essays on GNU/Linux, LaTex, etc. and I gain a lot from them

Sherry Zhang
On 12/24/06, Edward G.J. Lee [EMAIL PROTECTED] wrote:

Hi all,

 What's the difference between `portversion' and `pkg_version -I'?

 Thanks.


   Edward
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portversion vs. pkg_version

2006-12-24 Thread RW
On Sun, 24 Dec 2006 13:42:39 +0800
Edward G.J. Lee [EMAIL PROTECTED] wrote:

 Hi all,
 
   What's the difference between `portversion' and `pkg_version -I'?
 


Probably not much. pkg_version is part of the base-system, portversion
is one of the portupgrade package tools. Since portversion was created,
pkg_version has I think acquired some new features blurring the
distinction.

Personally, I don't like to get version information from the INDEX
file, I'd rather get an accurate answer, than a fast one. Another
reason I don't like portversion is that it's forever asking me to run
pkgdb. Aside from being a pain, it makes portversion unsuitable for use
in scripts.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portversion vs. pkg_version

2006-12-24 Thread Edward G.J. Lee
Thanks, Sherry,

On Sun, Dec 24, 2006, Sherry Zhang wrote:
 Mr. Lee:

 imho, portversion(uses the INDEX file to look up port versions) is
 like the desktop search(searh an index file), and the pkg_version(
 queries the port
 versions directly) is like the find command(search the entire disk);)

  But pkg_version -I use INDEX file too.

 use portversion instead, it's efficient cause it use port database.
 however, it will take a long time using portsdb to update the database
 file (the INDEX file) when you want to use portversion.

  If I run `pkg_version -v -I -L=', will fast then `portversion -v -L='.

 ps,i like your essays on GNU/Linux, LaTex, etc. and I gain a lot from them

  Thanks, I hope you like it.:)


Edward
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portversion vs. pkg_version

2006-12-24 Thread Edward G.J. Lee
On Sun, Dec 24, 2006, RW wrote:
 Personally, I don't like to get version information from the INDEX
 file, I'd rather get an accurate answer, than a fast one. Another
 reason I don't like portversion is that it's forever asking me to run
 pkgdb. Aside from being a pain, it makes portversion unsuitable for use
 in scripts.

  You are right. INDEX file will not allways up to date.


Edward
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portversion vs. pkg_version

2006-12-24 Thread ajm
On Sun, Dec 24, 2006 at 11:21:54PM +0800, Edward G.J. Lee wrote:
 On Sun, Dec 24, 2006, RW wrote:
  Personally, I don't like to get version information from the INDEX
  file, I'd rather get an accurate answer, than a fast one. Another
  reason I don't like portversion is that it's forever asking me to run
  pkgdb. Aside from being a pain, it makes portversion unsuitable for use
  in scripts.
 
   You are right. INDEX file will not allways up to date.
 
 
   Edward

I have used both pkg_version and portversion.  I perfer pkg_version.
I use it in the following way:

portsnap fetch  portsnap update
pkg_version -voIL'='

portsnap creates an index file faster than pkgdb...if you use it often.
I like to portsnap once a week.

otherwise use the pkg_verison without the 'I'

-- 
Alexander
FreeBSD 6.0-RELEASE i386
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


portversion vs. pkg_version

2006-12-23 Thread Edward G.J. Lee
Hi all,

  What's the difference between `portversion' and `pkg_version -I'?

  Thanks.


Edward
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]