View previous topic :: View next topic |
Author |
Message |
Bengio Apprentice
Joined: 20 Feb 2003 Posts: 186 Location: Italy - Pisa
|
Posted: Tue Feb 08, 2005 8:02 am Post subject: [Conf] check files corrotti sul sistema [RISOLTO] |
|
|
Probabilemnte sarà capitato a molti, anche avendo un gruppo di continuità, di resettare tramite bottoncino sul case.
Io non ho un UPS e dopo un improvvisa mancanza di corrente, ho avuto vari problemi con alcuni eseguibili e librerie, che cmq ho risolto manualmente.
Vado al punto:
mi domandavo se esiste un modo per controllare i file installati sul sistema e confrontarli con i dati memorizzati in /var/db/pkg, per verificarne appunto la consistenza (non so, lunghezza file, data modifica, file associati mancanti, hash ecc...)
Grazie,
Bengio _________________ Registered as User #305777 with the Linux Counter.
Last edited by Bengio on Tue Feb 08, 2005 9:06 am; edited 1 time in total |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Tue Feb 08, 2005 8:59 am Post subject: |
|
|
Credo che quello che cerchi sia:
Code: |
gutter@giskard ~ $ qpkg -help
qpkg is GenToolKit's "query package" tool, using it, you can
find packages owning files on your filesystem, check the integrity
of installed packages, and do other queries against installed or
uninstalled packages.
[CUT]
Information Selection:
-l, --list List package content
-i, --info Get package description and home page.
-ct, --check-time
-tc, --time-check Verify package files timestamps
-cm, --check-md5
-mc, --md5-check Verify package files md5
-c, --check Verify mtimes and md5.
-q, --query-deps display all installed packages
depending on selected packages
|
Lo trovi in:
Code: | * app-portage/gentoolkit
Available versions: 0.2.0_pre8 0.2.0_pre8-r1 ~0.2.0_pre9 ~0.2.0_pre10 ~0.2.0_pre10-r1 ~0.2.0_rc1 ~0.2.0_rc1-r1 0.2.0
Installed: 0.2.0
Homepage: http://www.gentoo.org/proj/en/portage/tools/index.xml
Description: Collection of administration scripts for Gentoo
|
_________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
Bengio Apprentice
Joined: 20 Feb 2003 Posts: 186 Location: Italy - Pisa
|
Posted: Tue Feb 08, 2005 9:04 am Post subject: |
|
|
oh, grazie mille gutter!!
Bengio _________________ Registered as User #305777 with the Linux Counter. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30966 Location: here
|
Posted: Tue Feb 08, 2005 9:07 am Post subject: |
|
|
qpkg e' deprecato prova a vedere il comando equery sempre dello stesso pacchetto _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Bengio Apprentice
Joined: 20 Feb 2003 Posts: 186 Location: Italy - Pisa
|
Posted: Tue Feb 08, 2005 9:37 am Post subject: |
|
|
ah, ok.
grazie anche a te fedeli
Bengio _________________ Registered as User #305777 with the Linux Counter. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30966 Location: here
|
Posted: Tue Feb 08, 2005 9:47 am Post subject: |
|
|
Prova anche a cercare nel forum italiano checkintegrity (mi pare) era uno script scritto da xchris forse fa al caso tuo _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Feb 08, 2005 9:53 am Post subject: |
|
|
checkintegrity controlla tutto il sistema per file mancanti. (anche se in realta' da qualche falso positivo)
md5check controllo l'md5 di ogni file appartenente al pacchetto specificato.
Se accoppi md5check con uno scriptino semplice puoi controllare tutto il sistema
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
Bengio Apprentice
Joined: 20 Feb 2003 Posts: 186 Location: Italy - Pisa
|
Posted: Tue Feb 08, 2005 10:07 am Post subject: |
|
|
e si, lo scriptino è utile. BRAVO XCHRIS.
ed ho visto che ci sono anche altri buoni tools sulla tua pagina!
Grazie a tutti,
Bengio _________________ Registered as User #305777 with the Linux Counter. |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Feb 08, 2005 12:35 pm Post subject: |
|
|
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
|