Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Conf] check files corrotti sul sistema [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Bengio
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 186
Location: Italy - Pisa

PostPosted: Tue Feb 08, 2005 8:02 am    Post subject: [Conf] check files corrotti sul sistema [RISOLTO] Reply with quote

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
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Feb 08, 2005 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Bengio
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 186
Location: Italy - Pisa

PostPosted: Tue Feb 08, 2005 9:04 am    Post subject: Reply with quote

oh, grazie mille gutter!!

Bengio
_________________
Registered as User #305777 with the Linux Counter.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Tue Feb 08, 2005 9:07 am    Post subject: Reply with quote

qpkg e' deprecato prova a vedere il comando equery sempre dello stesso pacchetto
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Bengio
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 186
Location: Italy - Pisa

PostPosted: Tue Feb 08, 2005 9:37 am    Post subject: Reply with quote

ah, ok.
grazie anche a te fedeli

Bengio
_________________
Registered as User #305777 with the Linux Counter.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Tue Feb 08, 2005 9:47 am    Post subject: Reply with quote

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
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Feb 08, 2005 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Bengio
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 186
Location: Italy - Pisa

PostPosted: Tue Feb 08, 2005 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Feb 08, 2005 12:35 pm    Post subject: Reply with quote

:)

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum