PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > How to verify installed files?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

How to verify installed files?

Réponse
 
LinkBack Outils de la discussion
Vieux 07/09/2007, 11h40   #1
Erik Persson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to verify installed files?

Hello,

I'm trying to figure out how to verify the files installed from a
package by apt-get, ie I have installed a package A and want to verify
that the files installed from the package are correct at some later
time. Thus some process could have changed some of the files after I
installed them, so the checking that is done at install time is *not*
what I'm looking for.

A related question. If I want to check that a package (in the archive -
/var/cache/apt/archives) is correct compared to the same package located
on a repository. How do I do this in the simplest way. I assume that
md5sum is correct.

Thanks in advanced,

Erik.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 07/09/2007, 12h20   #2
David
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to verify installed files?

>
> I'm trying to figure out how to verify the files installed from a
> package by apt-get, ie I have installed a package A and want to verify
> that the files installed from the package are correct at some later
> time. Thus some process could have changed some of the files after I
> installed them, so the checking that is done at install time is *not*
> what I'm looking for.


debsums

>
> A related question. If I want to check that a package (in the archive -
> /var/cache/apt/archives) is correct compared to the same package located
> on a repository. How do I do this in the simplest way. I assume that
> md5sum is correct.
>


The simplest way is to download the deb file, then run md5sum against
both the debs and compare the output.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 07/09/2007, 12h40   #3
Juha Tuuna
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to verify installed files?

On Friday, 7. September 2007 14:17, David wrote:
> debsums

This is a nice piece of software. Thank you for the tip!

--
-=[JT]=-

"And what will you do when you grow up to be as big as me?"
asked the father of his little son.
"Diet."

PGP Public key
http://users.utu.fi/jukatu/juha_tuuna_utu.asc


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 07/09/2007, 12h40   #4
Juha Tuuna
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to verify installed files?

On Friday, 7. September 2007 13:32, Erik Persson wrote:
> Hello,
>
> I'm trying to figure out how to verify the files installed from a
> package by apt-get, ie I have installed a package A and want to verify
> that the files installed from the package are correct at some later
> time. Thus some process could have changed some of the files after I
> installed them, so the checking that is done at install time is *not*
> what I'm looking for.

extract control from the deb-package (into working directory):
% dpkg-deb -e package.deb
You'll get a dir/file named 'DEBIAN/md5sums' which contains (you guessed
right!) the md5sums of the files in the package.
You can compare the md5sums agains your current files
% cd /
% md5sum -c /path/to/the/DEBIAN/md5sums

> A related question. If I want to check that a package (in the archive -
> /var/cache/apt/archives) is correct compared to the same package located
> on a repository. How do I do this in the simplest way. I assume that
> md5sum is correct.
>
> Thanks in advanced,
>
> Erik.

I don't know if this is the easiest but it works for me:
% md5sum package.deb
% apt-cache show package | grep -i md5sum
The apt-cache show will list many entries if you have multiple versions
available for installation (like stable/testing/unstable)

--
-=[JT]=-

Alimony and bribes will engage a large share of your wealth.

PGP Public key
http://users.utu.fi/jukatu/juha_tuuna_utu.asc


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h10.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11472 seconds with 12 queries