View previous topic :: View next topic |
Author |
Message |
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Sat Jun 24, 2017 6:13 pm Post subject: System State Comparison |
|
|
i have changed so many config files that i've lost track of what or where, and i'd be severely distressed if i had to config my gentoo from scratch all over again without those. i see something in freebsd that i think i'd find quite useful in gentoo. do you know of anything similar?
http://freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html wrote: | 23.2.4. System State Comparison
The state of the installed FreeBSD version against a known good copy can be tested using freebsd-update IDS. This command evaluates the current version of system utilities, libraries, and configuration files...
To begin the comparison, specify the output file to save the results to:
Code: | # freebsd-update IDS >> outfile.ids |
The system will now be inspected and a lengthy listing of files ... will be sent to the specified output file.
The entries in the listing are extremely long, but the output format may be easily parsed. For instance, to obtain a list of all files which differ from those in the release, issue the following command:
Code: | # cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
/etc/motd
/etc/passwd
/etc/pf.conf |
This sample output has been truncated as many more files exist. |
Last edited by josephg on Sun Jun 25, 2017 11:30 am; edited 1 time in total |
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Sun Jun 25, 2017 9:25 am Post subject: |
|
|
'equery check' might help you |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Sun Jun 25, 2017 11:37 am Post subject: |
|
|
Dr.Willy wrote: | 'equery check' might help you |
Code: | $ equery check polipo
* Checking net-proxy/polipo-1.1.1-r4 ...
!!! /etc/polipo/config has incorrect MD5sum
156 out of 157 files passed |
what am i to make out of that? i wonder if it means one file has changed? i know that i have changed one file (/etc/polipo/config) which is really what i'm interested in.. just the filename(s).
if i didn't know which file(name) changed, i don't really want to manually trawl through 157 files.. and this is a small package. |
|
Back to top |
|
|
|