Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System State Comparison
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jun 24, 2017 6:13 pm    Post subject: System State Comparison Reply with quote

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
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 547
Location: NRW, Germany

PostPosted: Sun Jun 25, 2017 9:25 am    Post subject: Reply with quote

'equery check' might help you
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Jun 25, 2017 11:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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