public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] equery depends =dev-lang/python-2.6.6-r2
@ 2011-09-02 15:34 James
  2011-09-02 15:59 ` [gentoo-user] " James
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: James @ 2011-09-02 15:34 UTC (permalink / raw
  To: gentoo-user

SO

It is time to remove 
dev-lang/python-2.6.6-r2

But, I do not believe the results of this
command, as python-2.7x has been installed 
on this system for some time. I have updated
many times with -D and rebuild @system recently.

Still many packages are listed as depending specifically
on dev-lang/python-2.6.6-r2.


Is there a better command/syntax to use to flush out
what is still dependent on an old/slotted version
of python. python-updater is periodically run on the
system, just in case anyone thinks that is the issue.


curiously,
James






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

* [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 15:34 [gentoo-user] equery depends =dev-lang/python-2.6.6-r2 James
@ 2011-09-02 15:59 ` James
  2011-09-02 16:09   ` Mark Knecht
  2011-09-03 10:55   ` Nikos Chantziaras
  2011-09-02 16:14 ` [gentoo-user] " Mark Knecht
  2011-09-03 13:15 ` Peter Humphrey
  2 siblings, 2 replies; 17+ messages in thread
From: James @ 2011-09-02 15:59 UTC (permalink / raw
  To: gentoo-user

James <wireless <at> tampabay.rr.com> writes:


> It is time to remove 
> dev-lang/python-2.6.6-r2

emerge --depclean -pv =dev-lang/python-2.6.6-r2

>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 dev-lang/python
    selected: 2.6.6-r2 
   protected: none 
     omitted: 2.7.1-r1 3.1.3-r1 

All selected packages: dev-lang/python-2.6.6-r2
Packages installed:   1289
Packages in world:    101
Packages in system:   45
Required packages:    1287
Number to remove:     1


CAN I TRUST this syntax to test for packages to remove?


James






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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 15:59 ` [gentoo-user] " James
@ 2011-09-02 16:09   ` Mark Knecht
  2011-09-02 16:25     ` James
  2011-09-02 19:06     ` Sebastian Beßler
  2011-09-03 10:55   ` Nikos Chantziaras
  1 sibling, 2 replies; 17+ messages in thread
From: Mark Knecht @ 2011-09-02 16:09 UTC (permalink / raw
  To: gentoo-user

On Fri, Sep 2, 2011 at 8:59 AM, James <wireless@tampabay.rr.com> wrote:
> James <wireless <at> tampabay.rr.com> writes:
>
>
>> It is time to remove
>> dev-lang/python-2.6.6-r2
>
> emerge --depclean -pv =dev-lang/python-2.6.6-r2
>
>>>> Calculating removal order...
>
>>>> These are the packages that would be unmerged:
>
>  dev-lang/python
>    selected: 2.6.6-r2
>   protected: none
>     omitted: 2.7.1-r1 3.1.3-r1
>
> All selected packages: dev-lang/python-2.6.6-r2
> Packages installed:   1289
> Packages in world:    101
> Packages in system:   45
> Required packages:    1287
> Number to remove:     1
>
>
> CAN I TRUST this syntax to test for packages to remove?
>
>
> James
>

I believe you can trust it, but why use --depclean instead of just -C?

Prior to doing anything please ensure that you have eselect python
setup correctly for a python-2.7 package that's on the machine.

HTH,
Mark



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

* Re: [gentoo-user] equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 15:34 [gentoo-user] equery depends =dev-lang/python-2.6.6-r2 James
  2011-09-02 15:59 ` [gentoo-user] " James
@ 2011-09-02 16:14 ` Mark Knecht
  2011-09-03 13:15 ` Peter Humphrey
  2 siblings, 0 replies; 17+ messages in thread
From: Mark Knecht @ 2011-09-02 16:14 UTC (permalink / raw
  To: gentoo-user

On Fri, Sep 2, 2011 at 8:34 AM, James <wireless@tampabay.rr.com> wrote:
<SNIP>
> Is there a better command/syntax to use to flush out
> what is still dependent on an old/slotted version
> of python. python-updater is periodically run on the
> system, just in case anyone thinks that is the issue.

Sorry, I should have addressed this last question. Try:

equery depends python-2.6.6-r2

and carefully go through the output posting back any addition info and
questions.

HTH,
Mark



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

* [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 16:09   ` Mark Knecht
@ 2011-09-02 16:25     ` James
  2011-09-02 19:06     ` Sebastian Beßler
  1 sibling, 0 replies; 17+ messages in thread
From: James @ 2011-09-02 16:25 UTC (permalink / raw
  To: gentoo-user

Mark Knecht <markknecht <at> gmail.com> writes:


> > emerge --depclean -pv =dev-lang/python-2.6.6-r2

> I believe you can trust it, but why use --depclean instead of just -C?

I found this syntax googling (hi Neil)...

Since the purpose is to remove pacakges, I guess depclean works the
best? Dunno really, just found it googling.

> Prior to doing anything please ensure that you have eselect python
> setup correctly for a python-2.7 package that's on the machine.

It has been set to 2.7 for a long time.






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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 16:09   ` Mark Knecht
  2011-09-02 16:25     ` James
@ 2011-09-02 19:06     ` Sebastian Beßler
  2011-09-02 19:17       ` Mark Knecht
  1 sibling, 1 reply; 17+ messages in thread
From: Sebastian Beßler @ 2011-09-02 19:06 UTC (permalink / raw
  To: gentoo-user

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

Am 02.09.2011 18:09, schrieb Mark Knecht:

> I believe you can trust it, but why use --depclean instead of just -C?

If you unmerge with -C you have to be sure that nothing needs it as a
dependency. Using --depclean helps because it checks that and only
unmerges if nothing needs it as a dependency anymore.

Greetings

Sebastian


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 19:06     ` Sebastian Beßler
@ 2011-09-02 19:17       ` Mark Knecht
  2011-09-02 19:32         ` Brennan Shacklett
  2011-09-03 10:13         ` Neil Bothwick
  0 siblings, 2 replies; 17+ messages in thread
From: Mark Knecht @ 2011-09-02 19:17 UTC (permalink / raw
  To: gentoo-user

On Fri, Sep 2, 2011 at 12:06 PM, Sebastian Beßler
<sebastian@darkmetatron.de> wrote:
> Am 02.09.2011 18:09, schrieb Mark Knecht:
>
>> I believe you can trust it, but why use --depclean instead of just -C?
>
> If you unmerge with -C you have to be sure that nothing needs it as a
> dependency. Using --depclean helps because it checks that and only
> unmerges if nothing needs it as a dependency anymore.
>
> Greetings
>
> Sebastian

Fair enough. Thanks. Presumably the use of --depclean doesn't work
until you're clear with emerge -DuN @world?

I've used this stuff so long I've not learned many of the newer tricks
I think. Good stuff.

Cheers,
Mark



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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 19:17       ` Mark Knecht
@ 2011-09-02 19:32         ` Brennan Shacklett
  2011-09-03 10:13         ` Neil Bothwick
  1 sibling, 0 replies; 17+ messages in thread
From: Brennan Shacklett @ 2011-09-02 19:32 UTC (permalink / raw
  To: gentoo-user

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

On Fri, Sep 2, 2011 at 12:17 PM, Mark Knecht <markknecht@gmail.com> wrote:

> On Fri, Sep 2, 2011 at 12:06 PM, Sebastian Beßler
> <sebastian@darkmetatron.de> wrote:
> > Am 02.09.2011 18:09, schrieb Mark Knecht:
> >
> >> I believe you can trust it, but why use --depclean instead of just -C?
> >
> > If you unmerge with -C you have to be sure that nothing needs it as a
> > dependency. Using --depclean helps because it checks that and only
> > unmerges if nothing needs it as a dependency anymore.
> >
> > Greetings
> >
> > Sebastian
>
> Fair enough. Thanks. Presumably the use of --depclean doesn't work
> until you're clear with emerge -DuN @world?
>
> I've used this stuff so long I've not learned many of the newer tricks
> I think. Good stuff.
>
> Cheers,
> Mark
>
>
It depends on the package you're trying to remove, but often in my
experience when using depclean on a single package it works fine without
updating world.
Also, -c is an alias for --depclean.

[-- Attachment #2: Type: text/html, Size: 1456 bytes --]

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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 19:17       ` Mark Knecht
  2011-09-02 19:32         ` Brennan Shacklett
@ 2011-09-03 10:13         ` Neil Bothwick
  2011-09-03 19:26           ` Mark Knecht
  1 sibling, 1 reply; 17+ messages in thread
From: Neil Bothwick @ 2011-09-03 10:13 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 2 Sep 2011 12:17:57 -0700, Mark Knecht wrote:

> >> I believe you can trust it, but why use --depclean instead of just
> >> -C?  
> >
> > If you unmerge with -C you have to be sure that nothing needs it as a
> > dependency. Using --depclean helps because it checks that and only
> > unmerges if nothing needs it as a dependency anymore.
> >
> > Greetings
> >
> > Sebastian  
> 
> Fair enough. Thanks. Presumably the use of --depclean doesn't work
> until you're clear with emerge -DuN @world?
> 
> I've used this stuff so long I've not learned many of the newer tricks
> I think. Good stuff.

I believe the -C output recommends using --depclean instead now.


-- 
Neil Bothwick

This chicken has no beak, said Tom impeccably.

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

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

* [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 15:59 ` [gentoo-user] " James
  2011-09-02 16:09   ` Mark Knecht
@ 2011-09-03 10:55   ` Nikos Chantziaras
  2011-09-03 13:20     ` Peter Humphrey
  1 sibling, 1 reply; 17+ messages in thread
From: Nikos Chantziaras @ 2011-09-03 10:55 UTC (permalink / raw
  To: gentoo-user

On 09/02/2011 06:59 PM, James wrote:
> James<wireless<at>  tampabay.rr.com>  writes:
>
>
>> It is time to remove
>> dev-lang/python-2.6.6-r2
>
> emerge --depclean -pv =dev-lang/python-2.6.6-r2
>[...]
> CAN I TRUST this syntax to test for packages to remove?

You can trust it because portage *is* the package manager, and the 
package manager always knows what the dependencies of packages are. 
Tools like equery can do analysis and stuff, but the final decision of 
what gets installed and what's needed is up to Portage.  So if you can't 
trust the package manager, you're screwed anyway :-)

However, "emerge -uDN world" must pass cleanly before you depclean 
something.




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

* Re: [gentoo-user] equery depends =dev-lang/python-2.6.6-r2
  2011-09-02 15:34 [gentoo-user] equery depends =dev-lang/python-2.6.6-r2 James
  2011-09-02 15:59 ` [gentoo-user] " James
  2011-09-02 16:14 ` [gentoo-user] " Mark Knecht
@ 2011-09-03 13:15 ` Peter Humphrey
  2 siblings, 0 replies; 17+ messages in thread
From: Peter Humphrey @ 2011-09-03 13:15 UTC (permalink / raw
  To: gentoo-user

On Friday 02 September 2011 16:34:59 James wrote:
> SO
> 
> It is time to remove
> dev-lang/python-2.6.6-r2
> 
> But, I do not believe the results of this
> command, as python-2.7x has been installed
> on this system for some time. I have updated
> many times with -D and rebuild @system recently.
> 
> Still many packages are listed as depending specifically
> on dev-lang/python-2.6.6-r2.

I assume you have run python-updater?

-- 
Rgds
Peter		Linux Counter 5290, 1994-04-23



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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-03 10:55   ` Nikos Chantziaras
@ 2011-09-03 13:20     ` Peter Humphrey
  2011-09-03 15:27       ` Nikos Chantziaras
  0 siblings, 1 reply; 17+ messages in thread
From: Peter Humphrey @ 2011-09-03 13:20 UTC (permalink / raw
  To: gentoo-user

On Saturday 03 September 2011 11:55:06 Nikos Chantziaras wrote:

> You can trust it because portage *is* the package manager, and the
> package manager always knows what the dependencies of packages are.
> Tools like equery can do analysis and stuff, but the final decision of
> what gets installed and what's needed is up to Portage.  So if you can't
> trust the package manager, you're screwed anyway :-)

Well I did trust it yesterday when it decided it ought to remove MySQL. What 
the hell, I thought: I can put it back easily enough.

So today when I started KMail it wouldn't. I had not only to remerge MySQL 
but to add mysql USE flag to qt-sql in package.use and remerge qt-sql as 
well.

-- 
Rgds
Peter		Linux Counter 5290, 1994-04-23



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

* [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-03 13:20     ` Peter Humphrey
@ 2011-09-03 15:27       ` Nikos Chantziaras
  2011-09-03 18:52         ` Peter Humphrey
  0 siblings, 1 reply; 17+ messages in thread
From: Nikos Chantziaras @ 2011-09-03 15:27 UTC (permalink / raw
  To: gentoo-user

On 09/03/2011 04:20 PM, Peter Humphrey wrote:
> On Saturday 03 September 2011 11:55:06 Nikos Chantziaras wrote:
>
>> You can trust it because portage *is* the package manager, and the
>> package manager always knows what the dependencies of packages are.
>> Tools like equery can do analysis and stuff, but the final decision of
>> what gets installed and what's needed is up to Portage.  So if you can't
>> trust the package manager, you're screwed anyway :-)
>
> Well I did trust it yesterday when it decided it ought to remove MySQL. What
> the hell, I thought: I can put it back easily enough.
>
> So today when I started KMail it wouldn't. I had not only to remerge MySQL
> but to add mysql USE flag to qt-sql in package.use and remerge qt-sql as
> well.

Which is 100% correct behavior.  Nothing in your system needed MySQL 
installed, and qt-sql was merged without the "mysql" USE flag.




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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-03 15:27       ` Nikos Chantziaras
@ 2011-09-03 18:52         ` Peter Humphrey
  2011-09-03 20:49           ` Nikos Chantziaras
  0 siblings, 1 reply; 17+ messages in thread
From: Peter Humphrey @ 2011-09-03 18:52 UTC (permalink / raw
  To: gentoo-user

On Saturday 03 September 2011 16:27:40 Nikos Chantziaras wrote:

> Which is 100% correct behavior.  Nothing in your system needed MySQL
> installed, and qt-sql was merged without the "mysql" USE flag.

Except that it hadn't happened before. The system had been sitting happily 
humming away, being updated daily, and then suddenly it realised that it had 
excess packages on its hands. I couldn't see anything to explain why it 
happened just yesterday, not a week or a fortnight ago.

-- 
Rgds
Peter		Linux Counter 5290, 1994-04-23



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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-03 10:13         ` Neil Bothwick
@ 2011-09-03 19:26           ` Mark Knecht
  0 siblings, 0 replies; 17+ messages in thread
From: Mark Knecht @ 2011-09-03 19:26 UTC (permalink / raw
  To: gentoo-user

On Sat, Sep 3, 2011 at 3:13 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Fri, 2 Sep 2011 12:17:57 -0700, Mark Knecht wrote:
>
>> >> I believe you can trust it, but why use --depclean instead of just
>> >> -C?
>> >
>> > If you unmerge with -C you have to be sure that nothing needs it as a
>> > dependency. Using --depclean helps because it checks that and only
>> > unmerges if nothing needs it as a dependency anymore.
>> >
>> > Greetings
>> >
>> > Sebastian
>>
>> Fair enough. Thanks. Presumably the use of --depclean doesn't work
>> until you're clear with emerge -DuN @world?
>>
>> I've used this stuff so long I've not learned many of the newer tricks
>> I think. Good stuff.
>
> I believe the -C output recommends using --depclean instead now.
>
>
> --
> Neil Bothwick

Hi Neil,
   Yeah, I think that's been true for awhile. However I'm fairly
selective about actually using --depclean when I can use -C, but
that's just me personally. In the case of the OP if I wanted to remove
exactly 1 package then personally I'd just use -C followed by emerge
-pvDuN @world or maybe revdep-rebuild -ip. But again, that's me.
--depclean is probably best for removing lots of things, and as I
think is clear from this thread, I didn't even know that --depclean
followed by a package name was even supported.

Cheers,
Mark



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

* [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-03 18:52         ` Peter Humphrey
@ 2011-09-03 20:49           ` Nikos Chantziaras
  2011-09-03 21:13             ` Alan McKinnon
  0 siblings, 1 reply; 17+ messages in thread
From: Nikos Chantziaras @ 2011-09-03 20:49 UTC (permalink / raw
  To: gentoo-user

On 09/03/2011 09:52 PM, Peter Humphrey wrote:
> On Saturday 03 September 2011 16:27:40 Nikos Chantziaras wrote:
>
>> Which is 100% correct behavior.  Nothing in your system needed MySQL
>> installed, and qt-sql was merged without the "mysql" USE flag.
>
> Except that it hadn't happened before. The system had been sitting happily
> humming away, being updated daily, and then suddenly it realised that it had
> excess packages on its hands. I couldn't see anything to explain why it
> happened just yesterday, not a week or a fortnight ago.

The warning was here.  You just missed it :-)  Recently, I did an 
"emerge -auDN world", and there was a USE flag change.  Namely "mysql" 
was removed from the default enabled flags of qt-sql, marked as "-mysql" 
in a yellow color.

Yeah, it's easy to miss.  But using Gentoo for quite a while now, I've 
learned to pay attention to the smallest detail in the output of emerge 
before entering "y" ;-)




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

* Re: [gentoo-user] Re: equery depends =dev-lang/python-2.6.6-r2
  2011-09-03 20:49           ` Nikos Chantziaras
@ 2011-09-03 21:13             ` Alan McKinnon
  0 siblings, 0 replies; 17+ messages in thread
From: Alan McKinnon @ 2011-09-03 21:13 UTC (permalink / raw
  To: gentoo-user; +Cc: realnc

On Sat, 03 Sep 2011 23:49:41 +0300
Nikos Chantziaras <realnc@arcor.de> wrote:

> On 09/03/2011 09:52 PM, Peter Humphrey wrote:
> > On Saturday 03 September 2011 16:27:40 Nikos Chantziaras wrote:
> >
> >> Which is 100% correct behavior.  Nothing in your system needed
> >> MySQL installed, and qt-sql was merged without the "mysql" USE
> >> flag.
> >
> > Except that it hadn't happened before. The system had been sitting
> > happily humming away, being updated daily, and then suddenly it
> > realised that it had excess packages on its hands. I couldn't see
> > anything to explain why it happened just yesterday, not a week or a
> > fortnight ago.
> 
> The warning was here.  You just missed it :-)  Recently, I did an 
> "emerge -auDN world", and there was a USE flag change.  Namely
> "mysql" was removed from the default enabled flags of qt-sql, marked
> as "-mysql" in a yellow color.
> 
> Yeah, it's easy to miss.  But using Gentoo for quite a while now,
> I've learned to pay attention to the smallest detail in the output of
> emerge before entering "y" ;-)

+1

I took to training my eyes to scan down emerge output (colourized)
looking for anything in green or yellow. Deal with those first, then
look at everything else.

Saved myself a lot of grief that way.

-- 
Alan McKinnnon
alan.mckinnon@gmail.com



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

end of thread, other threads:[~2011-09-03 21:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-02 15:34 [gentoo-user] equery depends =dev-lang/python-2.6.6-r2 James
2011-09-02 15:59 ` [gentoo-user] " James
2011-09-02 16:09   ` Mark Knecht
2011-09-02 16:25     ` James
2011-09-02 19:06     ` Sebastian Beßler
2011-09-02 19:17       ` Mark Knecht
2011-09-02 19:32         ` Brennan Shacklett
2011-09-03 10:13         ` Neil Bothwick
2011-09-03 19:26           ` Mark Knecht
2011-09-03 10:55   ` Nikos Chantziaras
2011-09-03 13:20     ` Peter Humphrey
2011-09-03 15:27       ` Nikos Chantziaras
2011-09-03 18:52         ` Peter Humphrey
2011-09-03 20:49           ` Nikos Chantziaras
2011-09-03 21:13             ` Alan McKinnon
2011-09-02 16:14 ` [gentoo-user] " Mark Knecht
2011-09-03 13:15 ` Peter Humphrey

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