public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  A Gentoo Enema
@ 2005-12-17  5:24 Tom Eastman
  2005-12-17  5:45 ` [gentoo-user] " Tom Eastman
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Tom Eastman @ 2005-12-17  5:24 UTC (permalink / raw
  To: gentoo-user

Hey all,

Sorry about any imagery conjured up by the subject line... I've been
running the same gentoo system on my computer for several years now...
keeping it relativey updated, but over time there's always cruft that
builds up, stuff that gets left behind during upgrades, or re-installs.
   Packages that don't change version for a long time, and don't get
recompiled with the latest compiler, etc etc and so on and so forth.

So what I want to do is give my computer a complete clean-out.  What I
really CAN'T be bothered doing is a complete format and re-install!

One idea I've had is to delete almost every entry in my 'world' file,
and then do an 'emerge depclean'.  That would be pretty cool, empty out
a huge amount of stuff, and then start re-installing at my leisure.

But what that *wouldn't* do is delete all the files in random places
that aren't owned by any particular package.  This would be a good thing
to do when spring cleaning, as it were.

Is there a tool that will allow me to find *all* files that aren't owned
by any package, so that I can then decide what to do with them?
Obviously skipping directories such as /home/.  Then I can delete
everything that doesn't look critical, hopefully without losing my stuff
in places like /boot or /etc either :-)

Then I think I would do an emerge -e system, and then start re-adding
applications I wanted.

What do you think?  Does anyone have any ideas about good ways of
'refreshing' my gentoo system?  All suggestions appreciated :-)

Thanks!

	Tom

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: [gentoo-user]  Re: A Gentoo Enema
@ 2005-12-23  4:42 Beau E. Cox
  2005-12-23  7:25 ` Neil Bothwick
  0 siblings, 1 reply; 26+ messages in thread
From: Beau E. Cox @ 2005-12-23  4:42 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

Hi reader -
  
At 2005-12-22, 11:37:35 you wrote:
>Neil Bothwick <neil@digimed.co.uk> writes:
>
>> On Fri, 23 Dec 2005 00:22:24 +0930, Iain Buchanan wrote:
>>
>>> > find /var/db/pkg -name '*.ebuild' !
>>> > -newer /var/db/pkg/sys-devel/gcc-3.4.4-r1/gcc-3.4.*
>>> > 
>>> > to find all packages compiled before your last compiler update.
>>> 
>>> There's also app-portage/genlop, quite nice for doing various things:
>>
>> genlop is really nice, I use it all the time, but I don't think it has an
>> option to find all packages installed after a particular package. It
>> would be a nice variation on the --date option.
>
>Isn't the output in chrono order?
>

This is exactly why I wrote 'echanges' perl script:

I have a small perl script, 'echanges', that determines the latest
timestamp for installed packages; I find it very helpful to determine
what my daily cron of 'emerge -uD world' has done. I will post it
here if there is any interest;

The manual page follows:

NAME
    echanges - display the timestamp for installed Gentoo packages.

SYNOPSIS
      echanges [options]
 
      options:
        --help     | -?    this page ( ddduuuuhhhh ).
        --man              complete man page.
        --since=dt | -s dt packages since dt[yesterday,<nbr>{h|d|w|y}]
                           [DEFAULT: all].
        --time     | -t    sort descending by timestamp [DEFAULT].
        --reverse  | -r    reverse the sort order.
        --progress | -p    print progress to STDERR.
 
      examples:
        # display timestamps for all installed packages in descending
        # order by timestamp:
          $ echanges 
 
        # display timestamps for packages installed/updated since yesterday
        # in ascending order by timestamp with a progress hint:
          $ echanges --since=yesterday --time --reverse --progress
 
        # display timestamps for packages installed/updated since two days ago
        # in descending order by package name:
          $ echanges -rns 2d
 
        # to see the complete manual:
          $ echanges --man

DESCRIPTION
    echanges tracks the latest Gentoo package installs/updates. I find it
    very helpful in knowing when I should restart my user sessions ( after a
    kde update ), compile the kernel and reboot ( after new kernel sources
    ), and when to run *etc-update*, among other uses.

    Internally, this perl script issues equerys ( *equery* in *gentoolkit*
    ). First a list of all installed packages is obtained with:

      equery -C list

    Next, for each package installed, the following equery is issued:

      equery -C files --timestamp --filter=obj <package-name>

    This list is processed to get the timestamp of the most recent file and
    associate that timestamp with the package.

    Finally, the list of packages with timestamps is filtered according to
    the options passed ( see "OPTIONS" below ) and displayed.

OPTIONS
    --since=time -or- -s time
        Only display packages since 'time', where time can be one of:

        yesterday
                24 hours ago.

        <number>h
                'number' hours ago.

        <number>d
                'number' days ago.

        <number>w
                'number' weeks ago.

        <number>m
                'number' months ( 30 days ) ago.

        <number>y
                'number' years ago.

        DEFAULT:
                All packages selected.

    --time -or- -t
        Sorts in descending order by timestamp [DEFAULT].

    --name -or- -n
        Sorts in ascending order by package name.

    --reverse -or- -r
        Reverses the sort selected.

    --progress | -p
        Print progress ( currently processing package ) to STDERR.
        *echanges* can take a long time on slower systems with many packages
        installed; use --progress if you need assurance that all is well.

REQUIRES
    Gentoo Linux with the *gentoolkit* installed:

      emerge gentoolkit

SEE ALSO
    Gentoo documentation and *equery* documentation in the *gentoolkit*.

AUTHOR
    Beau E. Cox, <beaucox@hawaii.rr.com>

COPYRIGHT AND LICENSE
    Copyright (C) 2005-2006 by Beau E. Cox

    This script is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself, either Perl version 5.8.7 or, at
    your option, any later version of Perl 5 you may have available.

			
Aloha => Beau;
beaucox@hawaii.rr.com
2005-12-22


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2005-12-23 18:54 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-17  5:24 [gentoo-user] A Gentoo Enema Tom Eastman
2005-12-17  5:45 ` [gentoo-user] " Tom Eastman
2005-12-17 10:04   ` Neil Bothwick
2005-12-22 14:52     ` Iain Buchanan
2005-12-22 19:32       ` Neil Bothwick
2005-12-22 21:37         ` reader
2005-12-22 22:59           ` Neil Bothwick
2005-12-23  0:32             ` reader
2005-12-23  7:47               ` Neil Bothwick
2005-12-23 15:15                 ` reader
2005-12-23 17:06                   ` Neil Bothwick
2005-12-23 18:09                     ` reader
2005-12-23 18:38                       ` Neil Bothwick
2005-12-23 15:17                 ` reader
2005-12-23 17:04                   ` Neil Bothwick
2005-12-17  6:02 ` [gentoo-user] " Steven Ringwald
2005-12-17  6:45 ` Willie Wong
2005-12-17  7:23 ` Richard Fish
2005-12-17  9:49 ` Neil Bothwick
2005-12-17 12:29 ` [gentoo-user] " reader
2005-12-17 20:00   ` Tom Eastman
2005-12-18 11:23   ` Neil Bothwick
2005-12-18 13:46     ` Michael Crute
2005-12-18 20:58     ` reader
  -- strict thread matches above, loose matches on Subject: below --
2005-12-23  4:42 Beau E. Cox
2005-12-23  7:25 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox