View previous topic :: View next topic |
Author |
Message |
henri Apprentice
Joined: 15 Nov 2002 Posts: 182 Location: Germany
|
Posted: Mon Mar 20, 2006 11:09 pm Post subject: Discussion: How about an emerge --automatic option? |
|
|
Hi folks,
when the kde-meta packages arrived, I thought, Yessss... this is for me and my laptop!
Because I use my machine as a development box, I update most libraries and some things like kde and my multimedia programs quite often.
Now I just wanted to re-emerge kde-artwork, but emerge told me, almost all installed kde-meta ebuilds would block this.
No problem, I know how to help myself, but let's gess, I would like to switch back to the pure kde package instead of kde-meta.
I would have to unmerge kde meta totally bevore I could re-emerge all the same packages as the pure kde package.
Wouldn't it be nice if we would have an --automatic option which would find out for meta-packeges which depending packages could stay and which will be needed to be unmerged to emerge the package we want? Of course, this will be an option which would also include a "force" behaviour, so it might be dangerous if the same command would not be run befor with the --prepend option.
So: This should only be an optional behaviour, so who uses it will know what he/she's doing...
But an intelligent behaviour of such an option could reduce the need to re-emerge already installed packages a lot!
Just think of the kde example!
On the other hand, imho, such an option would bring the portage system a big step towards the automation of system upgrades:
Let's say we are a company which sell some kind of computer with a special software setup based on Gentoo.
Or, let's say we are a company which resells Rack-Systems, all configured equaly?
Now we would like to give our customers a kind of firmware-update, the we could invoke a simple...
emerge -uD my-companys-update-preparations && emerge -uD --newuse world && emeerge -uD my-companies-config-updates
...where my-companys-update-preparations and my-companies-config-updates are own ebuilds where we invoke some setup-specific commands.
The last setup-specific ebuild could invoke one or two last revdep-rebuild s and the collect some data (maybe again with emerge -uDp --newuse world and revdep-rebuild -p) to log it down and/or send it by email or some other connection to my company's customers-update-service-control-department's secretary... nice
Unfortunately I don't have the time at the moment to spend some more time on this topic, but maybe someone will be inspired and has some need for the ideas and some spare time? - What do you think about such an option?
Many thanks for every reply,
yours Henri Schomäcker |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Mon Mar 20, 2006 11:33 pm Post subject: |
|
|
Moved from Portage & Programming to Gentoo Chat, not a support request. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
LinuxJoe n00b
Joined: 23 Aug 2005 Posts: 54 Location: Charlotte, NC
|
Posted: Tue Mar 21, 2006 9:54 pm Post subject: |
|
|
Couldnt you write a shells cript that does that for you?
I agree that it might be a good idea for meta ebuilds, but for customized ones i think just something like
Code: | #!/bin/sh
emerge soandso
emerge soandso2 |
might work nicely _________________ 3E Ghz Prescott + 1GB RAM + ATI 9700 Pro + Gentoo...
What else do you need? |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Tue Mar 21, 2006 9:58 pm Post subject: |
|
|
For the kde-meta package, what would make more sense is to detect what packages are installed via the meta package. Then portage would emerge the new package which is all built together, emerge it to the system, and unmerge the meta ones. So just like when it uninstalls an old package, except that the old package unmerge would be replaced with the unmerge of the meta packages.
Sorry if that was a bit confusing, but I couldn't think of how else to say it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|