From: Michael Mol <mikemol@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] emerge --update behavior
Date: Mon, 2 Jan 2012 12:06:07 -0500 [thread overview]
Message-ID: <CA+czFiD2xYsPyCnFci_X0abCpq+22R9czfzg4VsP-_C8F-k8sA@mail.gmail.com> (raw)
In-Reply-To: <4F01DC67.7070305@orlitzky.com>
On Mon, Jan 2, 2012 at 11:33 AM, Michael Orlitzky <michael@orlitzky.com> wrote:
> On 01/02/2012 11:16 AM, Michael Mol wrote:
>>>
>>>
>>> Fine for your home PC, doesn't cut it on servers. I have the following in
>>> one of my world files:
>>>
>>> dev-php/PEAR-Mail
>>> dev-php/PEAR-Mail_Mime
>>> dev-php/PEAR-PEAR
>>> dev-php/PEAR-Structures_Graph
>>>
>>> which of those do I want? At least one of them was installed to support a
>>> customer's custom PHP application. Maybe all of them were and they all
>>> belong in world. No one knows, this server is older than the current
>>> --update behavior.
>>>
>>> So which ones can I remove?
>>>
>>> Solutions involving time travel and/or losing customers will be
>>> disqualified.
>>
>>
>> Make a backup copy of your world file.
>>
>> 1a. Remove those four lines.
>> 2a. emerge -p --depclean
>> 3a. Did any of those show up in the to-be-removed set? Add them back.
>>
>> Alternately:
>> 1b. emerge -pev --tree --with-bdeps=y @world
>> 2b Find those packages in the output. The tree form of the display
>> will help you see if anything is depending on them.
>> 3b. If anything is depending on them, you should be able to safely
>> remove them from your world file. I'd follow up with the 1a, 2a, 3a
>> solution to be sure.
>>
>
> Sorry, but these won't work.
>
> Let's say that dev-php/PEAR-Mail_Mime has a dependency on dev-php/PEAR-Mail,
> but I have a customer who needs dev-php/PEAR-Mail for a contact form.
>
> Following your process, I would remove dev-php/PEAR-Mail from my world file.
> If I ever remove dev-php/PEAR-Mail_Mime, depclean will remove PEAR-Mail and
> break the guy's site.
That's the purpose of the "emerge -p" step. Presumably, you would see
that there's a package in the list that you're not comfortable with
removing, you'd decide you didn't want it removed, and you'd add it
back to your world set.
If you're not comfortable removing *any* package that's in your world
set, then, no, there's no way to tell the difference. From this point
forward, your best bet is to modify EMERGE_DEFAULT_OPTS to reflect the
safest practice for your environment. And start keeping a list of
packages installed to meet customers' requests. Portage apparently
supports your desired workflow, but it needs to be set up for it.
As to recovering from your current scenario...there might be some way
to watch your apache processes to identify which files get used over a
three-month span, from that list derive a list of which packages were
used, and from *that* list, derive a list of which packages weren't
used. (Or make an ebuild explicitly identifying the utilized
dependencies, and let depclean handle the rest)
--
:wq
next prev parent reply other threads:[~2012-01-02 17:08 UTC|newest]
Thread overview: 108+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-01 21:50 [gentoo-user] emerge --update behavior Michael Orlitzky
2012-01-01 22:06 ` Michael Mol
2012-01-01 22:13 ` Michael Orlitzky
2012-01-01 22:31 ` Dale
2012-01-01 22:40 ` Mark Knecht
2012-01-01 22:49 ` Dale
2012-01-01 22:54 ` Claudio Roberto França Pereira
2012-01-01 23:06 ` Dale
2012-01-01 23:07 ` Michael Orlitzky
2012-01-01 23:07 ` Michael Orlitzky
2012-01-01 23:22 ` Mark Knecht
2012-01-02 15:35 ` Tanstaafl
2012-01-02 15:47 ` Michael Orlitzky
2012-01-02 15:53 ` Michael Mol
2012-01-02 16:01 ` Mark Knecht
2012-01-02 16:09 ` Michael Orlitzky
2012-01-02 16:16 ` Michael Mol
2012-01-02 16:20 ` Michael Mol
2012-01-02 23:33 ` Alan McKinnon
2012-01-03 0:01 ` Michael Mol
2012-01-02 16:33 ` Michael Orlitzky
2012-01-02 17:06 ` Michael Mol [this message]
2012-01-02 17:39 ` Michael Orlitzky
2012-01-02 17:45 ` Michael Mol
2012-01-02 17:55 ` Michael Orlitzky
2012-01-02 18:07 ` Michael Mol
2012-01-02 18:20 ` Michael Orlitzky
2012-01-02 20:50 ` Neil Bothwick
2012-01-02 21:08 ` Michael Orlitzky
2012-01-02 21:25 ` Neil Bothwick
2012-01-02 21:33 ` Michael Orlitzky
2012-01-02 22:41 ` Neil Bothwick
2012-01-02 23:11 ` Michael Orlitzky
2012-01-02 23:29 ` Alan McKinnon
2012-01-02 23:48 ` Michael Orlitzky
2012-01-03 7:46 ` Alan McKinnon
2012-01-03 19:48 ` Walter Dnes
2012-01-03 0:01 ` Neil Bothwick
2012-01-02 23:25 ` Alan McKinnon
2012-01-02 23:49 ` Michael Orlitzky
2012-01-03 0:04 ` Neil Bothwick
2012-01-03 0:22 ` Dale
2012-01-03 2:00 ` Michael Orlitzky
2012-01-03 13:00 ` Mick
2012-01-03 2:00 ` Michael Orlitzky
2012-01-03 11:09 ` Neil Bothwick
2012-01-02 17:47 ` Mark Knecht
2012-01-02 17:55 ` Michael Mol
2012-01-02 17:58 ` Michael Orlitzky
2012-01-03 14:05 ` Hinnerk van Bruinehsen
2012-01-03 14:47 ` Alan McKinnon
2012-01-03 14:51 ` Hinnerk van Bruinehsen
2012-01-03 14:54 ` (Was) " Michael Mol
2012-01-03 14:55 ` Michael Mol
2012-01-03 16:00 ` Mick
2012-01-03 16:18 ` Michael Mol
2012-01-03 17:39 ` Mick
2012-01-03 17:43 ` Michael Mol
2012-01-03 17:52 ` Hinnerk van Bruinehsen
2012-01-03 18:12 ` Mick
2012-01-03 18:21 ` Michael Mol
2012-01-03 17:25 ` Michael Mol
2012-01-02 21:11 ` Alan McKinnon
2012-01-02 21:18 ` Michael Orlitzky
2012-01-02 21:28 ` Neil Bothwick
2012-01-02 21:37 ` Michael Orlitzky
2012-01-02 21:34 ` Michael Mol
2012-01-02 21:48 ` Michael Orlitzky
2012-01-02 21:58 ` Michael Mol
2012-01-02 22:13 ` Michael Orlitzky
2012-01-02 22:45 ` Michael Mol
2012-01-02 23:12 ` Alan McKinnon
2012-01-02 21:20 ` Neil Bothwick
2012-01-02 16:22 ` Mark Knecht
2012-01-02 16:33 ` Michael Orlitzky
2012-01-02 16:59 ` Neil Bothwick
2012-01-02 17:04 ` Neil Bothwick
2012-01-02 16:57 ` Neil Bothwick
2012-01-02 17:29 ` Mark Knecht
2012-01-02 17:47 ` Michael Orlitzky
2012-01-02 20:48 ` Neil Bothwick
2012-01-03 11:49 ` Tanstaafl
2012-01-03 12:04 ` Neil Bothwick
2012-01-04 11:57 ` Pandu Poluan
2012-01-02 18:14 ` Graham Murray
2012-01-02 0:09 ` Neil Bothwick
2012-01-02 0:24 ` Michael Orlitzky
2012-01-02 9:19 ` Neil Bothwick
2012-01-02 10:06 ` Alan McKinnon
2012-01-02 10:18 ` Mick
2012-01-02 13:46 ` Michael Orlitzky
2012-01-02 15:31 ` Tanstaafl
2012-01-02 15:47 ` Michael Orlitzky
2012-01-02 15:47 ` Michael Mol
2012-01-01 22:12 ` Dale
2012-01-02 9:58 ` Alan McKinnon
2012-01-02 10:19 ` Dale
2012-01-02 10:56 ` Alan McKinnon
2012-01-02 11:06 ` Dale
2012-01-02 13:36 ` Neil Bothwick
2012-01-02 13:50 ` Michael Orlitzky
2012-01-02 14:02 ` Neil Bothwick
2012-01-02 14:50 ` Michael Mol
2012-01-02 15:05 ` Alan McKinnon
2012-01-02 15:26 ` Michael Orlitzky
2012-01-02 16:25 ` Frank Steinmetzger
2012-01-02 16:34 ` Michael Orlitzky
2012-01-02 18:38 ` Dale
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=CA+czFiD2xYsPyCnFci_X0abCpq+22R9czfzg4VsP-_C8F-k8sA@mail.gmail.com \
--to=mikemol@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