Re: Debian vs Red Hat??? I need info.
- To: Josip Rodin <joy@cibalia.gkvk.hr>
- Cc: Ethan Benson <erbenson@alaska.net>, debian-user@lists.debian.org, debian-isp@lists.debian.org, debian-dpkg@lists.debian.org
- Subject: Re: Debian vs Red Hat??? I need info.
- From: Craig Sanders <cas@taz.net.au>
- Date: Mon, 22 May 2000 11:31:34 +1000
- Message-id: <[🔎] 20000522113134.E32406@taz.net.au>
- Mail-followup-to: Craig Sanders <cas@taz.net.au>, Josip Rodin <joy@cibalia.gkvk.hr>, Ethan Benson <erbenson@alaska.net>, debian-user@lists.debian.org, debian-isp@lists.debian.org, debian-dpkg@lists.debian.org
- In-reply-to: <[🔎] 20000521113838.B15450@cibalia.gkvk.hr>; from joy@cibalia.gkvk.hr on Sun, May 21, 2000 at 11:38:18AM +0200
- References: <[🔎] 20000517024340Z362829-4977+2784@mail2.one.net> <[🔎] 20000517145533.E508@mors.wiggy.net> <[🔎] 39230592.1F64B6FC@newdream.net> <[🔎] 200005181216.OAA32136@maison.fr> <[🔎] 39254D1D.2A43F938@mindspring.com> <[🔎] 20000520190700.B2605@mors.wiggy.net> <[🔎] 20000520193759.H7243@plato.local.lan> <[🔎] 20000521113838.B15450@cibalia.gkvk.hr>
On Sun, May 21, 2000 at 11:38:18AM +0200, Josip Rodin wrote:
> On Sat, May 20, 2000 at 07:37:59PM -0800, Ethan Benson wrote:
> > > Apt uses a mixed approach: it uses the same textfiles as dpkg but
> > > uses a binary cache to also get the advantages of a binary database.
> >
> > it does? where?
>
> See /var/cache/apt/*.bin files.
>
> An example why is that good is the speed of `apt-cache show foo'
> compared to non-speed of `dpkg -p foo'. (of course, there are faster
> things to browse the textual database, they just aren't in dpkg
> itself)
dlocate and grep-dctrl for example.
interestingly, 'apt-cache show' is even faster than dlocate (which makes
use of grep-dctrl to do the search).
$ time apt-cache show dpkg >/dev/null
real 0m0.235s
user 0m0.210s
sys 0m0.030s
$ time dlocate -s dpkg>/dev/null
real 0m0.407s
user 0m0.380s
sys 0m0.010s
$ time dpkg -s dpkg>/dev/null
real 0m1.517s
user 0m1.410s
sys 0m0.100s
craig
--
craig sanders
Reply to: