[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: checking package integrity



> 
> On Thu, May 14, 1998 at 05:28:42PM -0300, Otavio Exel wrote:
> > hi all,
> > 
> > is there a way to check package intgrity in a given .deb file?
> > 
> > I'm using debian 1.3 (bo);
> > 
> > beers & TIA!
> > 
> > -- 
> > Otavio Exel /<\oo/>\ oexel@economatica.com.br
> 
> Perhaps this is not elegant, but it will give you a basic sanity check:
> 
> 	dpkg -c [package.deb]
> 
> If that spews the contents without errors, you should have fair
> confidence.

A bit more specific would be to unpack the package with ar, and check
the gzipped components:

------------------------------------------------------------------------
$ ls
binutils_2.9.1-0.1.deb
$ ar x binutils_2.9.1-0.1.deb
$ ls
binutils_2.9.1-0.1.deb  data.tar.gz
control.tar.gz          debian-binary
$ gunzip -tv *.gz
control.tar.gz:          OK
data.tar.gz:             OK
------------------------------------------------------------------------

If you have the Packages file, things get even better:  for each package
the MD5sum is given.  You can check this with md5sum <package>.deb.

HTH,
Eric Meijer

-- 
 E.L. Meijer (tgakem@chem.tue.nl)          | tel. office +31 40 2472189
 Eindhoven Univ. of Technology             | tel. lab.   +31 40 2475032
 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax    +31 40 2455054


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: