Re: how to tell what packages are unused on a debian server?
- From: Chris Davies <chris-usenet@xxxxxxxxxxxx>
- Date: Sat, 30 Oct 2010 08:48:52 +0100
Andrew McGlashan <andrew.mcglashan@xxxxxxxxxxxxxxxxxxxxx> wrote:
Okay, I tried the change and let it finish the report.
I found all "in use", except for php5, but there is a bunch of php5
stuff that is in use.
Arrgghh. You're now making me /think/ about the script, rather than it
being a throwaway suggestion(!) Upon further investigation, the atime
for a symbolic link is (inevitably) updated when it's deferenced, so
you need to skip those, too.
The find statement thus becomes
find $(readlink -f "$F") -atime -180
On my laptop it's tricky for me to test this as I mount everything
noatime. On a couple of servers I've got, though, the results feel
approximately correct.
If you're finding that everything is "in use" then at this stage it's
probable that you've made a filesystem backup with tar or cpio, which
obviously reads every single file, unfortunately making atime useless.
Good luck!
Chris
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/48vsp7xnra.ln2@xxxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: how to tell what packages are unused on a debian server?
- From: Andrew McGlashan
- Re: how to tell what packages are unused on a debian server?
- References:
- how to tell what packages are unused on a debian server?
- From: Robert P. J. Day
- Re: how to tell what packages are unused on a debian server?
- From: Camaleón
- Re: how to tell what packages are unused on a debian server?
- From: Robert P. J. Day
- Re: how to tell what packages are unused on a debian server?
- From: Chris Davies
- Re: how to tell what packages are unused on a debian server?
- From: Andrew McGlashan
- Re: how to tell what packages are unused on a debian server?
- From: Chris Davies
- Re: how to tell what packages are unused on a debian server?
- From: Andrew McGlashan
- how to tell what packages are unused on a debian server?
- Prev by Date: Re: sid: 'git command' works but not 'git-command'
- Next by Date: Re: how to tell what packages are unused on a debian server?
- Previous by thread: Re: how to tell what packages are unused on a debian server?
- Next by thread: Re: how to tell what packages are unused on a debian server?
- Index(es):
Relevant Pages
|