Answer the question
In order to leave comments, you need to log in
How to find out what were the changes after installing the linux program?
Hello, please tell me if there is any software or the ability to check what has been changed, installed, edited, which configs have been corrected after installing some program?
For example, I want to install a deb package and see where it climbed after installation, what files I changed and where I wrote what
Answer the question
In order to leave comments, you need to log in
The deb package itself contains the script and the installation config.
I made myself a simple script (not very selenium in bash scripting):
find $1 -mmin $2 \
-not -path "/dev/*" \
-not -path "/sys/*" \
-not -path "/proc/*" \
-not -path "/home/sergey/.cache/*" \
-not -path "/run/*" \
-not -path "/media/*" \
-not -path "/home/sergey/.config/google-chrome/*" \
2>/dev/null
You make two backups (for example, snapshots) - before the changes and after the changes, then you compare them using the usual diff. To reduce headaches, you update the OS in backups by making a simple chroot into each one in turn.
You can find out the package name from the file name using apt-file or vice versa dpkg -L package_name
All other options are not reliable and incomplete, as they use text logs that do not contain all the information and can be tweaked / cleaned. For example /var/log/apt/history.log contains information about packages being installed
You can take tree. tree -a > 1 then tree -a > 2 and then diff see the difference. Everything is ingenious and simple.
dpkg -L util-linux
equery f util-linux
rpm -ql util-linux
These commands (depending on the distribution) list files belonging to the specified package (util-linux in the example).
There is an inotify mechanism in Linux for tracking changes in files and a bunch of utilities. I can't give you specifics, you have to google.
Google it linux file monitoring process audit
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question