public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] What causes a package to be brought in during a big emerge?
@ 2009-09-26  1:05 Andrew Lowe
  2009-09-26  1:08 ` Volker Armin Hemmann
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Andrew Lowe @ 2009-09-26  1:05 UTC (permalink / raw
  To: gentoo-user

Hi all,
	I've done an:

"emerge --pretend -NuD world"

and whilst reviewing the output, it lists an old package that I played 
around with in the past but now no longer need. In turn I do:

"emerge -C oldPackageNoLongerNeeded"

the package is removed and I in turn do another

"emerge --pretend -NuD world"

but "oldPackageNoLongerNeeded" is still there, although emerge tells me 
its now gone from "U" to "N" ie Update to New. I've fired up "ufed" and 
removed what I thought would be the appropriate USE tag, run the emerge 
again and it's still there. I've tried:

"equery depends oldPackageNoLongerNeeded"

and it lists nothing as needing "oldPackageNoLongerNeeded"

I've looked through the emerge help and nothing springs to mind as 
telling me why "oldPackageNoLongerNeeded" is being brought in.

	So after that rambling intro, is there a package/utility that will tell 
me, when in this situation, what package needs 
"oldPackageNoLongerNeeded" and why it is being brought into my emerge.

	Thanks for any help,
		Andrew

p.s. Tried Google on this and just couldn't seem to get the right 
keywords o find anything.....



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

* Re: [gentoo-user] What causes a package to be brought in during a big emerge?
  2009-09-26  1:05 [gentoo-user] What causes a package to be brought in during a big emerge? Andrew Lowe
@ 2009-09-26  1:08 ` Volker Armin Hemmann
  2009-09-26  2:08   ` Andrew Lowe
  2009-09-26  2:36 ` [gentoo-user] " Nikos Chantziaras
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Volker Armin Hemmann @ 2009-09-26  1:08 UTC (permalink / raw
  To: gentoo-user

On Samstag 26 September 2009, Andrew Lowe wrote:
> Hi all,
> 	I've done an:
> 
> "emerge --pretend -NuD world"
> 
> and whilst reviewing the output, it lists an old package that I played
> around with in the past but now no longer need. In turn I do:
> 
> "emerge -C oldPackageNoLongerNeeded"
> 
> the package is removed and I in turn do another
> 
> "emerge --pretend -NuD world"
> 
> but "oldPackageNoLongerNeeded" is still there, although emerge tells me
> its now gone from "U" to "N" ie Update to New. I've fired up "ufed" and
> removed what I thought would be the appropriate USE tag, run the emerge
> again and it's still there. I've tried:
> 
> "equery depends oldPackageNoLongerNeeded"
> 
> and it lists nothing as needing "oldPackageNoLongerNeeded"
> 
> I've looked through the emerge help and nothing springs to mind as
> telling me why "oldPackageNoLongerNeeded" is being brought in.
> 
> 	So after that rambling intro, is there a package/utility that will tell
> me, when in this situation, what package needs
> "oldPackageNoLongerNeeded" and why it is being brought into my emerge.
> 
> 	Thanks for any help,
> 		Andrew
> 
> p.s. Tried Google on this and just couldn't seem to get the right
> keywords o find anything.....
> 

maybe it is still left in world file.



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

* Re: [gentoo-user] What causes a package to be brought in during a big emerge?
  2009-09-26  1:08 ` Volker Armin Hemmann
@ 2009-09-26  2:08   ` Andrew Lowe
  0 siblings, 0 replies; 12+ messages in thread
From: Andrew Lowe @ 2009-09-26  2:08 UTC (permalink / raw
  To: gentoo-user

On 26/09/2009 9:08 AM, Volker Armin Hemmann wrote:
> On Samstag 26 September 2009, Andrew Lowe wrote:
>> Hi all,
>> 	I've done an:
>>
>> "emerge --pretend -NuD world"
[snip]
...
...
[snip]
>> p.s. Tried Google on this and just couldn't seem to get the right
>> keywords o find anything.....
>>
>
> maybe it is still left in world file.
>

Volker,
	I'll look into that. On a slightly tangential note, I've been using 
Gentoo for about 6 - 7 years, but not very well. My somewhat limited 
knowledge of portage comes from about 2004 and is probably way out of 
date. Besides the doco listed on the Gentoo Documentation Resources of 
the web site, "Gentoo Handbook" and the doco under the "Gentoo System 
Documentation" heading, anything else you would suggest to get up to date?

	Regards,
		Andrew



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

* [gentoo-user]  Re: What causes a package to be brought in during a big emerge?
  2009-09-26  1:05 [gentoo-user] What causes a package to be brought in during a big emerge? Andrew Lowe
  2009-09-26  1:08 ` Volker Armin Hemmann
@ 2009-09-26  2:36 ` Nikos Chantziaras
  2009-09-26  8:32   ` Neil Bothwick
  2009-09-26 13:35   ` beolach
  2009-09-26  2:52 ` [gentoo-user] " Dale
  2009-09-27 21:07 ` Alex Schuster
  3 siblings, 2 replies; 12+ messages in thread
From: Nikos Chantziaras @ 2009-09-26  2:36 UTC (permalink / raw
  To: gentoo-user

On 09/26/2009 04:05 AM, Andrew Lowe wrote:
> Hi all,
> I've done an:
>
> "emerge --pretend -NuD world"
>
> and whilst reviewing the output, it lists an old package that I played
> around with in the past but now no longer need. In turn I do:
>
> "emerge -C oldPackageNoLongerNeeded"
>
> the package is removed and I in turn do another
>
> "emerge --pretend -NuD world"
>
> but "oldPackageNoLongerNeeded" is still there, although emerge tells me
> its now gone from "U" to "N" ie Update to New. I've fired up "ufed" and
> removed what I thought would be the appropriate USE tag, run the emerge
> again and it's still there. I've tried:
>
> "equery depends oldPackageNoLongerNeeded"
>
> and it lists nothing as needing "oldPackageNoLongerNeeded"

"equery depends" won't list anything unless the package is question is 
installed.


> I've looked through the emerge help and nothing springs to mind as
> telling me why "oldPackageNoLongerNeeded" is being brought in.
>
> So after that rambling intro, is there a package/utility that will tell
> me, when in this situation, what package needs
> "oldPackageNoLongerNeeded" and why it is being brought into my emerge.

Yes, the package that will tell you is "emerge" itself.  Use its "-t" 
option to get a dep-graph of why something is getting emerged.  Also, 
you can use its "-v" option if you want to see if the package comes from 
some overlay.

Furthermore, *after* "emerge -C oldPackageNoLongerNeeded", do:

   grep oldPackageNoLongerNeeded /var/lib/portage/world

to see if it's still listed in the world file.  If yes, remove all 
traces of it (you can simply edit this world file with a text editor, 
it's safe, but of course you might still want to make a backup of it.)




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

* Re: [gentoo-user] What causes a package to be brought in during a big emerge?
  2009-09-26  1:05 [gentoo-user] What causes a package to be brought in during a big emerge? Andrew Lowe
  2009-09-26  1:08 ` Volker Armin Hemmann
  2009-09-26  2:36 ` [gentoo-user] " Nikos Chantziaras
@ 2009-09-26  2:52 ` Dale
  2009-09-27 21:07 ` Alex Schuster
  3 siblings, 0 replies; 12+ messages in thread
From: Dale @ 2009-09-26  2:52 UTC (permalink / raw
  To: gentoo-user

Andrew Lowe wrote:
> Hi all,
>     I've done an:
>
> "emerge --pretend -NuD world"
>
> and whilst reviewing the output, it lists an old package that I played
> around with in the past but now no longer need. In turn I do:
>
> "emerge -C oldPackageNoLongerNeeded"
>
> the package is removed and I in turn do another
>
> "emerge --pretend -NuD world"
>
> but "oldPackageNoLongerNeeded" is still there, although emerge tells
> me its now gone from "U" to "N" ie Update to New. I've fired up "ufed"
> and removed what I thought would be the appropriate USE tag, run the
> emerge again and it's still there. I've tried:
>
> "equery depends oldPackageNoLongerNeeded"
>
> and it lists nothing as needing "oldPackageNoLongerNeeded"
>
> I've looked through the emerge help and nothing springs to mind as
> telling me why "oldPackageNoLongerNeeded" is being brought in.
>
>     So after that rambling intro, is there a package/utility that will
> tell me, when in this situation, what package needs
> "oldPackageNoLongerNeeded" and why it is being brought into my emerge.
>
>     Thanks for any help,
>         Andrew
>
> p.s. Tried Google on this and just couldn't seem to get the right
> keywords o find anything.....
>
>

Check into the -t option.  That should tell you what pulls it in even
tho it is not installed.  Just add the -t to the option you already have.

Dale

:-)  :-) 



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

* Re: [gentoo-user]  Re: What causes a package to be brought in during a big emerge?
  2009-09-26  2:36 ` [gentoo-user] " Nikos Chantziaras
@ 2009-09-26  8:32   ` Neil Bothwick
  2009-09-26 13:22     ` Volker Armin Hemmann
  2009-09-26 13:35   ` beolach
  1 sibling, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2009-09-26  8:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

On Sat, 26 Sep 2009 05:36:45 +0300, Nikos Chantziaras wrote:

> Furthermore, *after* "emerge -C oldPackageNoLongerNeeded", do:
> 
>    grep oldPackageNoLongerNeeded /var/lib/portage/world
> 
> to see if it's still listed in the world file.  If yes, remove all 
> traces of it (you can simply edit this world file with a text editor, 
> it's safe, but of course you might still want to make a backup of it.)

emerge -C should remove it from the world file. If it does not, something
is broken that requires more than editing world.

You can also check this with emaint -c world.


-- 
Neil Bothwick

This universe is sold by mass, not by volume.
Some expansion may have occurred during shipment

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user]  Re: What causes a package to be brought in during a big emerge?
  2009-09-26  8:32   ` Neil Bothwick
@ 2009-09-26 13:22     ` Volker Armin Hemmann
  2009-09-26 20:55       ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Volker Armin Hemmann @ 2009-09-26 13:22 UTC (permalink / raw
  To: gentoo-user

On Samstag 26 September 2009, Neil Bothwick wrote:
> On Sat, 26 Sep 2009 05:36:45 +0300, Nikos Chantziaras wrote:
> > Furthermore, *after* "emerge -C oldPackageNoLongerNeeded", do:
> >
> >    grep oldPackageNoLongerNeeded /var/lib/portage/world
> >
> > to see if it's still listed in the world file.  If yes, remove all
> > traces of it (you can simply edit this world file with a text editor,
> > it's safe, but of course you might still want to make a backup of it.)
> 
> emerge -C should remove it from the world file. If it does not, something
> is broken that requires more than editing world.
> 
> You can also check this with emaint -c world.
> 

well sometimes an app appears more than once in world  and after an removal 
instances remain - yes, it should not happen.



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

* Re: [gentoo-user]  Re: What causes a package to be brought in during a big emerge?
  2009-09-26  2:36 ` [gentoo-user] " Nikos Chantziaras
  2009-09-26  8:32   ` Neil Bothwick
@ 2009-09-26 13:35   ` beolach
  1 sibling, 0 replies; 12+ messages in thread
From: beolach @ 2009-09-26 13:35 UTC (permalink / raw
  To: gentoo-user

Quoting Nikos Chantziaras <realnc@arcor.de>:
> On 09/26/2009 04:05 AM, Andrew Lowe wrote:
<snip>
>> I've tried:
>>
>> "equery depends oldPackageNoLongerNeeded"
>>
>> and it lists nothing as needing "oldPackageNoLongerNeeded"
>
> "equery depends" won't list anything unless the package is question is
> installed.

Try "equery depends -a oldPackageNoLongerNeeded".  That should search all
available packages in the portage tree, including uninstalled ones.


Conway S. Smith



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

* Re: [gentoo-user]  Re: What causes a package to be brought in during a big emerge?
  2009-09-26 13:22     ` Volker Armin Hemmann
@ 2009-09-26 20:55       ` Neil Bothwick
  2009-09-26 21:01         ` Volker Armin Hemmann
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2009-09-26 20:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

On Sat, 26 Sep 2009 15:22:30 +0200, Volker Armin Hemmann wrote:

> > emerge -C should remove it from the world file. If it does not,
> > something is broken that requires more than editing world.
> > 
> > You can also check this with emaint -c world.
> >   
> 
> well sometimes an app appears more than once in world  and after an
> removal instances remain - yes, it should not happen.

If that because the world file was hand edited, or you you mean one entry
for cat/pkg and one for cat/pkg-ver? 

emaint should still find and fix it.


-- 
Neil Bothwick

If everything is coming your way then you're in the wrong lane.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user]  Re: What causes a package to be brought in during a big emerge?
  2009-09-26 20:55       ` Neil Bothwick
@ 2009-09-26 21:01         ` Volker Armin Hemmann
  2009-09-26 21:34           ` Dale
  0 siblings, 1 reply; 12+ messages in thread
From: Volker Armin Hemmann @ 2009-09-26 21:01 UTC (permalink / raw
  To: gentoo-user

On Samstag 26 September 2009, Neil Bothwick wrote:
> On Sat, 26 Sep 2009 15:22:30 +0200, Volker Armin Hemmann wrote:
> > > emerge -C should remove it from the world file. If it does not,
> > > something is broken that requires more than editing world.
> > >
> > > You can also check this with emaint -c world.
> >
> > well sometimes an app appears more than once in world  and after an
> > removal instances remain - yes, it should not happen.
> 
> If that because the world file was hand edited, or you you mean one entry
> for cat/pkg and one for cat/pkg-ver?
> 
> emaint should still find and fix it.
> 

the second. And then cat/pkg-ver (cat/pkg:slot) stayed around after an unmerge 
and forced stuff back in.

emaint should find it, but in my experience it failes once in a while.



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

* Re: [gentoo-user]  Re: What causes a package to be brought in during a big emerge?
  2009-09-26 21:01         ` Volker Armin Hemmann
@ 2009-09-26 21:34           ` Dale
  0 siblings, 0 replies; 12+ messages in thread
From: Dale @ 2009-09-26 21:34 UTC (permalink / raw
  To: gentoo-user

Volker Armin Hemmann wrote:
> On Samstag 26 September 2009, Neil Bothwick wrote:
>   
>> On Sat, 26 Sep 2009 15:22:30 +0200, Volker Armin Hemmann wrote:
>>     
>>>> emerge -C should remove it from the world file. If it does not,
>>>> something is broken that requires more than editing world.
>>>>
>>>> You can also check this with emaint -c world.
>>>>         
>>> well sometimes an app appears more than once in world  and after an
>>> removal instances remain - yes, it should not happen.
>>>       
>> If that because the world file was hand edited, or you you mean one entry
>> for cat/pkg and one for cat/pkg-ver?
>>
>> emaint should still find and fix it.
>>
>>     
>
> the second. And then cat/pkg-ver (cat/pkg:slot) stayed around after an unmerge 
> and forced stuff back in.
>
> emaint should find it, but in my experience it failes once in a while.
>
>
>   

Since the world file is in alphabetical order, it should be easy enough
to find tho.  They should be right there together.

Would it be possible that emerge just removes the first match it sees in
the world file when it unmerges a package?  Could this be a "minor" bug?

Dale

:-) :-) 



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

* Re: [gentoo-user] What causes a package to be brought in during a big emerge?
  2009-09-26  1:05 [gentoo-user] What causes a package to be brought in during a big emerge? Andrew Lowe
                   ` (2 preceding siblings ...)
  2009-09-26  2:52 ` [gentoo-user] " Dale
@ 2009-09-27 21:07 ` Alex Schuster
  3 siblings, 0 replies; 12+ messages in thread
From: Alex Schuster @ 2009-09-27 21:07 UTC (permalink / raw
  To: gentoo-user

Andrew Lowe writes:

> 	So after that rambling intro, is there a package/utility that will tell
> me, when in this situation, what package needs
> "oldPackageNoLongerNeeded" and why it is being brought into my emerge.

Try these:

- add -t to your emerge -pNuD world command
- emerge --depcean -pv oldPackageNoLongerNeeded
- grep oldPackageNoLongerNeeded /var/lib/portage/world

	Wonko



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

end of thread, other threads:[~2009-09-27 21:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-26  1:05 [gentoo-user] What causes a package to be brought in during a big emerge? Andrew Lowe
2009-09-26  1:08 ` Volker Armin Hemmann
2009-09-26  2:08   ` Andrew Lowe
2009-09-26  2:36 ` [gentoo-user] " Nikos Chantziaras
2009-09-26  8:32   ` Neil Bothwick
2009-09-26 13:22     ` Volker Armin Hemmann
2009-09-26 20:55       ` Neil Bothwick
2009-09-26 21:01         ` Volker Armin Hemmann
2009-09-26 21:34           ` Dale
2009-09-26 13:35   ` beolach
2009-09-26  2:52 ` [gentoo-user] " Dale
2009-09-27 21:07 ` Alex Schuster

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