From: "Samir Faci" <samir.list@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Gentoo Machine Cleanup
Date: Tue, 17 Jul 2007 10:51:06 -0500 [thread overview]
Message-ID: <1e6142750707170851p6c54c021h379de4567cb0ff1e@mail.gmail.com> (raw)
In-Reply-To: <469C613F.5030002@silvanoc.com>
[-- Attachment #1: Type: text/plain, Size: 4095 bytes --]
I'm actually trying a slightly different approach that's almost equivalent
to doing a fresh install.
If I don't bork this up, I'll write a lil wiki on how to do this.
1. create a loopback file system. dd if=/dev/zero of=baseimage bs=1k
count=5242880 (5 gig image)
2. partition the baseimage
3. do your typical gentoo install on the baseimage file
4. sync data from baseimage fs, to / omitting /dev /proc /sys /home making
sure this is all backed up
5. rerun grub to make sure everything is proper
6. reboot and pray.
so, if I'm right, that should give me a clean fresh install. I'll take a
backup of my /etc directory and I need to remember to backup mysql db, but I
believe that should work fine. I would do this off a liveCD if I had
physical access to the machine.
It seems like the cleanest solution. if I run emerge -uDN (etc) world it
just keeps pulling X and other crap I removed, and since 80% of what's on
the machine it unneeded, a fresh start wouldn't hurt.
if anyone is interested, I'll post an update on how my install went once
it's back up.
--
Samir
On 7/17/07, Abraham Marín Pérez <tecnic5@silvanoc.com> wrote:
>
> Mark Knecht escribió:
> > On 7/16/07, Samir Faci <samir.list@gmail.com> wrote:
> >> Hi all,
> >>
> >> So, I have a gentoo install that's slowly evolved over the past 3
> >> years
> >> or so years. It's now so cluttered with packages, it's becoming
> >> ridiculous,
> >> especially for a headless server. What I'd like to do is be able to
> >> remove
> >> all KDE/Gnome/X/gtk/qt/...etc out of the machine and not have it
> >> break the
> >> machine completely.
> >>
> >> Any suggestion on how to do go about this? At this stage, I'd like the
> >> server to have the basic system build, LAMP, and Postfix.
> >>
> >> If I start removing packages, then revdep complains about
> >> dependencies and
> >> ends pulling back the packages I had removed, same thing with world. I
> >> globally removed all the X related flags I can think of.
> >>
> >> Also, in the process of switching to a hardened profile, which is one
> >> reason
> >> why I wanted to clean up the install.
> >>
> >> Thanks again,
> >>
> >> Any help would be appreciated.
> >>
> >> --
> >> Samir
> >>
> >
> > Hi Samir,
> > You'll probably get some answers more detailed than mine but
> > fundamentally it goes something like this:
> >
> > 1) First do and emerge -DuN world and make sure everything is up to
> date.
> >
> > 2) By hand then emerge -C everything (for instance) with gnome or kde
> > in the package name.
> >
> > 3) Next do an emerge --depclean and let portage remove packages that
> > were needed for gnome or kde but not required now
> >
> > 4) Do a revdep-rebuild and see what it wants to pull in. If it's
> > trying to pull in something you don't think is necessary then do an
> > emerge -pe --tree and look at why it's getting pulled in. Either
> > remove what's causing it to get rebuilt or let it get pulled back in.
> >
> > At this point it's lather and repeat if necessary.
> >
> > I've done this a couple of times. It' works but be careful that you
> > don't reboot during the process as something might be gone that's
> > still necessary.
> >
> > Hope this helps,
> > Mark
> I'd proceed similar to this, but changing order:
>
> 1) Edit /var/lib/portage/world and unlist every unwanted package.
>
> 2) Edit /etc/make.conf and explicitly unset every use tag related to
> packages you don't want in your system.
>
> 3) run emerge --update --deep --newuse --ask world
>
> 4) run emerge --depclean --ask
>
> 5) run revdep-rebuild
>
> If you update your system before removing unwanted packages from world
> file you'll waste time updating packages that will be uninstalled
> afterwards (and big packages, must be said). This way you'll update only
> what you'll keep.
>
> Needless to say, it's always a good idea to back-up your system before
> proceeding.
>
> HTH,
> Abraham
>
> --
> --
> gentoo-user@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 5080 bytes --]
next prev parent reply other threads:[~2007-07-17 15:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-16 23:18 [gentoo-user] Gentoo Machine Cleanup Samir Faci
2007-07-16 23:29 ` Mark Knecht
2007-07-16 23:45 ` Albert Hopkins
2007-07-17 6:27 ` Abraham Marín Pérez
2007-07-17 15:51 ` Samir Faci [this message]
2007-07-17 16:03 ` Neil Bothwick
2007-07-17 16:27 ` Alan McKinnon
2007-07-17 0:31 ` Neil Bothwick
2007-07-17 4:40 ` Canek Peláez
2007-07-17 16:43 ` Dirk Heinrichs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e6142750707170851p6c54c021h379de4567cb0ff1e@mail.gmail.com \
--to=samir.list@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox