how to find all files NOT part of the installed distro
I loaded a distro (which does not seem relevant) onto my laptop and used it for a while. Applications did whatever they do creating and saving files. I know that I have images and documents and videos and music and such on the laptop among other non-distro data files.
Is there a simple (straightforward) way to identify which files on disk are NOT part of the installed distro? I know how to use find. I know that find lets me locate files based on some date-time-stamp. I know, too, that I can use any selected file as a benchmark date-time instead of some specific command line string. For example: Code:
Find files whose modification date is before (or after) the date(s) associated with the file /path/foo.bar. Can I get that date from somewhere else like a file system details? Thanks in advance, ~~~ 0;-Dan |
Quote:
no guarantee that the packaged file don't have either pre- or even future dated files distributed. So I really don't believe there's a distro-agnostic way of doing it; the only "generic" way would be to install something like tripwire, AIDE, samhain and take a inventory of the box using those; then you can find what was changed/added at a later time quite easily. The only sensible way to go about this w/o the above mentioned tools is to generate a list of distro supplied files, and match that against your reality, e.g., in RPM based distros: Code:
rpm -ql $( rpm -qa ) | sort -u Cheers, Tink |
The time stamp won't work I'd guess.
I'd make a test install and diff the two. |
Quote:
Since I need to know this, the obvious thing to do is create that date line weeks ago when I did the install ... NOT! Now I need to discover how to answer these questions long after the fact. Does anyone know an easy way to answer the question: How many files have XYZ attribute(s)? For example
Thanks in advance, ~~~ 0;-Dan |
Quote:
|
@SaintDanBert: Why do you want to identify the non-distro files? What do you want to achieve? Are you wanting to preserve user data? How much storage space is used on the system? How much storage space do you have for backup?
|
Quote:
I can grab /home/* and /wrk/* and /root/* and various other places where I know that I've put things over the past year(s). I don't remember everything that I've done and so I'm looking for non-distro files and folders as reminders of things I might have done that I also need to grab. Now that you force me to think about things a bit more, when I say "non-distro" I'm really trying to indicate ... files that did not install when I spun the distro ISO and were not a result of update-manager activity ... I need to identify packages that I installed manually (blush) and I've forgotten were extra added later parts so that I can add them after the update and can grab their data before the update. Thanks for forcing me to think, ~~~ 8d;-Dan |
Quote:
Code:
find / -type f | while read file EDIT: with progress meter: Code:
function echo_err |
In Slackware, anything that isn't part of the install from CD or DVD usually has a suffix, examples:
htop-0.9-x86_64-1_SBo.tgz (SBo, from slackbuilds.org) vlc-1.1.9-x86_64-1alien.txz (alien = Alien Bob = Eric Hameleers) |
re: (BrianL) communication and equals
Never attempt a battle of wits with an unarmed opponent. Never play leap frog with a unicorn. (grin) Thanks for the tip, ~~~ 0;-Dan |
Can't resist posting this ....
"Never argue with an idiot. They'll drag you down to their level and beat you with experience" :) |
@ SaintDanBert and chrism01
I don't understand, what is all this about? |
Quote:
|
Quote:
or dpkg but your "solution" provides a nice specification*. Thanks, ~~~ 0;-Dan ____________________ * specification -- "Working code makes the best specification." Corolary to Brooks's Law, "Prepare to throw the first implementation away." |
Quote:
|
All times are GMT -5. The time now is 01:57 AM. |