<div dir="ltr"><div dir="ltr">Hi Charles,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 31 May 2020 at 18:45, Charles IRONS <<a href="mailto:irons.charles@gmail.com">irons.charles@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr">I have used Ubuntu since 2005 and often wondered why packages do not have a counter that is increased when it is used actively.<div><br></div><div>That way each of us could discover which of the many thousands we really need.</div></div></blockquote></div><div class="gmail_quote"><br></div><div class="gmail_quote">Well, many filesystems (all?) track when a file is accessed and you can use the stat command to find that info out for one or more files.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Here is an example from my computer:-</div><div class="gmail_quote">$ stat snap-man.txt<br>  File: snap-man.txt<br>  Size: 32913      Blocks: 72         IO Block: 4096   regular file<br>Device: 805h/2053d       Inode: 10511107    Links: 1<br>Access: (0644/-rw-r--r--)  Uid: ( 1000/     ian)   Gid: ( 1000/     ian)<br>Access: 2020-04-12 19:18:04.714531723 +0100<br>Modify: 2019-10-17 21:27:36.043240284 +0100<br>Change: 2019-10-17 21:27:36.043240284 +0100<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">So, as you can see, some of the data is there already.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Then there is the dpkg command to tell you which package a file is from....</div><div class="gmail_quote">$ dpkg -S /bin/ls<br>coreutils: /bin/ls<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">So, I suppose a program could be written to go through all files linked to all packages and work out which packages haven't been used at all.</div><div class="gmail_quote"><br></div><div class="gmail_quote">But that wouldn't be foolproof. Consider doing the same thing in an office - a fire extinguisher could be considered unused but you would still want it available for use.</div><div class="gmail_quote"><br></div><div class="gmail_quote">I am not sure if my idea is viable....</div><div class="gmail_quote"><br></div><div class="gmail_quote">HTH,</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Ian<br></div><div class="gmail_quote"><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>-- ACCU - Professionalism in programming - <a href="http://www.accu.org" target="_blank">http://www.accu.org</a><br></div>-- My writing - <a href="https://sites.google.com/site/ianbruntlett/" target="_blank">https://sites.google.com/site/ianbruntlett/</a><br><div>-- Free Software page - <a href="https://sites.google.com/site/ianbruntlett/home/free-software" target="_blank">https://sites.google.com/site/ianbruntlett/home/free-software</a><br></div><br> </div></div></div></div></div></div></div></div>