public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] automatically updated certain packages
@ 2010-09-12 21:13 Enrico Weigelt
  2010-09-12 23:28 ` Alan McKinnon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Enrico Weigelt @ 2010-09-12 21:13 UTC (permalink / raw
  To: gentoo-user


Hi folks,


I've got a tricky task for automatic update script, which requires
some portage magic ...

The script has a list of packages which should be updated
completely automatically, but *only* if they're pulled in as 
dependency (beginning from world), and others not in that list
should *not* be updated.

Is there any easy way to do it ?


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------



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

* Re: [gentoo-user] automatically updated certain packages
  2010-09-12 21:13 [gentoo-user] automatically updated certain packages Enrico Weigelt
@ 2010-09-12 23:28 ` Alan McKinnon
  2010-09-12 23:51 ` Neil Bothwick
  2010-09-13 15:40 ` Stroller
  2 siblings, 0 replies; 4+ messages in thread
From: Alan McKinnon @ 2010-09-12 23:28 UTC (permalink / raw
  To: gentoo-user

Apparently, though unproven, at 23:13 on Sunday 12 September 2010, Enrico 
Weigelt did opine thusly:

> Hi folks,
> 
> 
> I've got a tricky task for automatic update script, which requires
> some portage magic ...
> 
> The script has a list of packages which should be updated
> completely automatically, but *only* if they're pulled in as
> dependency (beginning from world), and others not in that list
> should *not* be updated.
> 
> Is there any easy way to do it ?

man emerge shows a way for the specific case if you are updating world:

--deselect

It basically removes items in the build list that are in world. However if you 
are running

emerge app1 app2 app3

then the man page implies it won't do what you want.

I don't know when this feature arrived. I run v2.2 and there's been a lot of 
update activity in portage this last week


-- 
alan dot mckinnon at gmail dot com



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

* Re: [gentoo-user] automatically updated certain packages
  2010-09-12 21:13 [gentoo-user] automatically updated certain packages Enrico Weigelt
  2010-09-12 23:28 ` Alan McKinnon
@ 2010-09-12 23:51 ` Neil Bothwick
  2010-09-13 15:40 ` Stroller
  2 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2010-09-12 23:51 UTC (permalink / raw
  To: gentoo-user

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

On Sun, 12 Sep 2010 23:13:28 +0200, Enrico Weigelt wrote:

> The script has a list of packages which should be updated
> completely automatically, but *only* if they're pulled in as 
> dependency (beginning from world), and others not in that list
> should *not* be updated.

Would piping emerge -pu world through sed/grep/awk and parsing the output 
do what you want?


-- 
Neil Bothwick

Biology is the only science in which multiplication means the same thing
as division.

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

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

* Re: [gentoo-user] automatically updated certain packages
  2010-09-12 21:13 [gentoo-user] automatically updated certain packages Enrico Weigelt
  2010-09-12 23:28 ` Alan McKinnon
  2010-09-12 23:51 ` Neil Bothwick
@ 2010-09-13 15:40 ` Stroller
  2 siblings, 0 replies; 4+ messages in thread
From: Stroller @ 2010-09-13 15:40 UTC (permalink / raw
  To: gentoo-user


On 12 Sep 2010, at 22:13, Enrico Weigelt wrote:
> ...
> I've got a tricky task for automatic update script, which requires
> some portage magic ...
>
> The script has a list of packages which should be updated
> completely automatically, but *only* if they're pulled in as
> dependency (beginning from world), and others not in that list
> should *not* be updated.

If I'm understanding you correctly then you might find `eix -Iu --only- 
names` to find a list of packages which are installed on the system,  
but not up to date. You can use `equery d category/atom` to see if the  
package has any dependencies.

Stroller.




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

end of thread, other threads:[~2010-09-13 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-12 21:13 [gentoo-user] automatically updated certain packages Enrico Weigelt
2010-09-12 23:28 ` Alan McKinnon
2010-09-12 23:51 ` Neil Bothwick
2010-09-13 15:40 ` Stroller

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