* [gentoo-user] Confused with the --oneshot option of portage.
@ 2006-05-24 7:16 Jonathan Chocron
2006-05-24 7:55 ` Richard Fish
2006-06-30 22:44 ` Boyd Stephen Smith Jr.
0 siblings, 2 replies; 10+ messages in thread
From: Jonathan Chocron @ 2006-05-24 7:16 UTC (permalink / raw
To: gentoo-user
Hello !
I am getting a bit confused with the --oneshot option of portage (as the title
says).
I need to do a little bit of portage history before asking a my question,
sorry. If the following is wrong, please correct me !
Once upon a time, in the happy land of portage, there was a file named world.
This file knew of all the packages that inhabited a planet called gentoo
system.
Then, this file was cruelly deleted by the gods known as gentoo devs. It was
not cruel or anything, it was just that the file had served its purposed and
was now to be regenerated every time someone invoked "emerge -Dup world".
The world of the packages became two-tiered : some of them, the noble packages
were present in world, some of them, the working class, known as
the "libraries" did not have that privilege. The terrible truth was that they
slowed portage down, and, as they were servants to the noble package would
find their way in an "emerge -Dup world" anyway by the mechanism of
dependency.
Ok, I am sorry about the above, I've only slept 2 hours.
So, here are my questions : With world being autogenerated
- If I emerge a library, like xvid with "emerge xvid", it will end up in
world. How do I revert that ? Do I have to emerge -C xvid and then
emerge --oneshot xvid ?
- If I emerge -Dup world, will the listed packages alkl end-up in world ?
- If I first emerge a package, for example kmail, with emerge kmail, and
later, during an upgrade phase, do an emerge --oneshot kmail, will kmail be
removed from world ?
Thanks to those who had the patience to read this. And more thanks to those
who will answer !
Regards,
-- Jonathan.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Confused with the --oneshot option of portage.
2006-05-24 7:16 [gentoo-user] Confused with the --oneshot option of portage Jonathan Chocron
@ 2006-05-24 7:55 ` Richard Fish
2006-05-24 15:27 ` Jonathan Chocron
2006-06-30 22:44 ` Boyd Stephen Smith Jr.
1 sibling, 1 reply; 10+ messages in thread
From: Richard Fish @ 2006-05-24 7:55 UTC (permalink / raw
To: gentoo-user
On 5/24/06, Jonathan Chocron <jonathan.chocron@free.fr> wrote:
> So, here are my questions : With world being autogenerated
Not sure I would call it 'autogenerated'. It is more accurate to call
it the list of packages that you have merged without the --oneshot
option.
> - If I emerge a library, like xvid with "emerge xvid", it will end up in
> world. How do I revert that ? Do I have to emerge -C xvid and then
> emerge --oneshot xvid ?
That is one way. You could quicken this with "quickpkg xvid; emerge
-C xvid ; emerge --oneshot --usepkgonly xvid". Or just edit
/var/lib/portage/world by hand to remove xvid.
> - If I emerge -Dup world, will the listed packages alkl end-up in world ?
No. Only the packages you specifically merge without --oneshot end up
in world. Dependancies of world or system packages that show up when
you add -D/--deep are not added to world...
> - If I first emerge a package, for example kmail, with emerge kmail, and
> later, during an upgrade phase, do an emerge --oneshot kmail, will kmail be
> removed from world ?
No. Only unmerging the package, or ediiting the world file, will
remove it from world.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Confused with the --oneshot option of portage.
2006-05-24 7:55 ` Richard Fish
@ 2006-05-24 15:27 ` Jonathan Chocron
0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Chocron @ 2006-05-24 15:27 UTC (permalink / raw
To: gentoo-user
Le Mercredi 24 Mai 2006 09:55, Richard Fish a écrit :
> On 5/24/06, Jonathan Chocron <jonathan.chocron@free.fr> wrote:
> > So, here are my questions : With world being autogenerated
>
> Not sure I would call it 'autogenerated'. It is more accurate to call
> it the list of packages that you have merged without the --oneshot
> option.
>
> > - If I emerge a library, like xvid with "emerge xvid", it will end up in
> > world. How do I revert that ? Do I have to emerge -C xvid and then
> > emerge --oneshot xvid ?
>
> That is one way. You could quicken this with "quickpkg xvid; emerge
> -C xvid ; emerge --oneshot --usepkgonly xvid". Or just edit
> /var/lib/portage/world by hand to remove xvid.
>
> > - If I emerge -Dup world, will the listed packages alkl end-up in world ?
>
> No. Only the packages you specifically merge without --oneshot end up
> in world. Dependancies of world or system packages that show up when
> you add -D/--deep are not added to world...
>
> > - If I first emerge a package, for example kmail, with emerge kmail, and
> > later, during an upgrade phase, do an emerge --oneshot kmail, will kmail
> > be removed from world ?
>
> No. Only unmerging the package, or ediiting the world file, will
> remove it from world.
>
> -Richard
Thanks, that shed some light !
-- Jonathan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Confused with the --oneshot option of portage.
2006-05-24 7:16 [gentoo-user] Confused with the --oneshot option of portage Jonathan Chocron
2006-05-24 7:55 ` Richard Fish
@ 2006-06-30 22:44 ` Boyd Stephen Smith Jr.
2006-07-01 8:25 ` [gentoo-user] " Remy Blank
1 sibling, 1 reply; 10+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-06-30 22:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2424 bytes --]
On Wednesday 24 May 2006 02:16, Jonathan Chocron <jonathan.chocron@free.fr>
wrote about '[gentoo-user] Confused with the --oneshot option of
portage.':
> I need to do a little bit of portage history before asking a my
> question, sorry. If the following is wrong, please correct me !
>
> Once upon a time, in the happy land of portage, there was a file named
> world. This file knew of all the packages that inhabited a planet called
> gentoo system.
As long as I've been using gentoo (not long, since 2004) this file has
always only listed packages you explicitly installed, not any of their
dependencies. Although, some misguided users accused it on containing all
their packages.
> Then, this file was cruelly deleted by the gods known as gentoo devs. It
> was not cruel or anything, it was just that the file had served its
> purposed and was now to be regenerated every time someone invoked
> "emerge -Dup world".
*I* still have this file. It did *MOVE* at some point but it current
incarnation is at /var/lib/portage/world. I've edited the file manually a
number of times followed by a emerge -A --depclean to clean up my system.
The file that changed from existing to being auto-calculated was the "edb
cache" IIRC. From what I understand, these isn't a way to auto-calculate
world from what's stored in /var/db/pkg and /var/lib/portage (other than
world and world.backup).
> So, here are my questions : With world being autogenerated
World isn't auto-generated.
> - If I emerge a library, like xvid with "emerge xvid", it will end up in
> world. How do I revert that ? Do I have to emerge -C xvid and then
> emerge --oneshot xvid ?
Edit /var/lib/portage/world.
> - If I emerge -Dup world, will the listed packages alkl end-up in world
> ?
Nope, because they weren't listed on the command-line. Just like when you
emerge kde-meta you only get one package added to world not 300.
> - If I first emerge a package, for example kmail, with emerge kmail, and
> later, during an upgrade phase, do an emerge --oneshot kmail, will kmail
> be removed from world ?
That's one for the portage devs, but I don't /think/ so.
--
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: Confused with the --oneshot option of portage.
2006-06-30 22:44 ` Boyd Stephen Smith Jr.
@ 2006-07-01 8:25 ` Remy Blank
2006-07-01 22:40 ` Neil Bothwick
0 siblings, 1 reply; 10+ messages in thread
From: Remy Blank @ 2006-07-01 8:25 UTC (permalink / raw
To: gentoo-user
Boyd Stephen Smith Jr. wrote:
> On Wednesday 24 May 2006 02:16, Jonathan Chocron <jonathan.chocron@free.fr>
>> - If I first emerge a package, for example kmail, with emerge kmail, and
>> later, during an upgrade phase, do an emerge --oneshot kmail, will kmail
>> be removed from world ?
>
> That's one for the portage devs, but I don't /think/ so.
I'm not a dev, but I'm sure that it will *not* be removed from world. I
always use --oneshot for updates.
-- Remy
Remove underscore and suffix in reply address for a timely response.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Confused with the --oneshot option of portage.
2006-07-01 8:25 ` [gentoo-user] " Remy Blank
@ 2006-07-01 22:40 ` Neil Bothwick
2006-07-02 3:17 ` Daniel Iliev
2006-07-02 7:26 ` Alan McKinnon
0 siblings, 2 replies; 10+ messages in thread
From: Neil Bothwick @ 2006-07-01 22:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
On Sat, 01 Jul 2006 10:25:23 +0200, Remy Blank wrote:
> >> - If I first emerge a package, for example kmail, with emerge kmail,
> >> and later, during an upgrade phase, do an emerge --oneshot kmail,
> >> will kmail be removed from world ?
> >
> > That's one for the portage devs, but I don't /think/ so.
>
> I'm not a dev, but I'm sure that it will *not* be removed from world. I
> always use --oneshot for updates.
That's correct. If you use --oneshot, world is not touched at all,
nothing is added or removed.
There isn't, AFAIK, a portage option to remove a package from world,
although adding is easy with emerge -n.
--
Neil Bothwick
WinErr 01B: Illegal error - You are not allowed to get this error.
Next time you will get a penalty for that.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Confused with the --oneshot option of portage.
2006-07-01 22:40 ` Neil Bothwick
@ 2006-07-02 3:17 ` Daniel Iliev
2006-07-02 15:44 ` Neil Bothwick
2006-07-02 7:26 ` Alan McKinnon
1 sibling, 1 reply; 10+ messages in thread
From: Daniel Iliev @ 2006-07-02 3:17 UTC (permalink / raw
To: gentoo-user
On Sun, Юли 2, 2006 1:40 am, Neil Bothwick wrote:
> On Sat, 01 Jul 2006 10:25:23 +0200, Remy Blank wrote:
>
>> >> - If I first emerge a package, for example kmail, with emerge kmail,
>> >> and later, during an upgrade phase, do an emerge --oneshot kmail,
>> >> will kmail be removed from world ?
>> >
>> > That's one for the portage devs, but I don't /think/ so.
>>
>> I'm not a dev, but I'm sure that it will *not* be removed from world. I
>> always use --oneshot for updates.
>
> That's correct. If you use --oneshot, world is not touched at all,
> nothing is added or removed.
>
> There isn't, AFAIK, a portage option to remove a package from world,
> although adding is easy with emerge -n.
>
>
> --
> Neil Bothwick
>
> WinErr 01B: Illegal error - You are not allowed to get this error.
> Next time you will get a penalty for that.
>
I hope this will help.
1) It apears there is a way to pull packages out of the world set. :)
>From 'man emerge', section "FILES":
=============
/var/lib/portage/world
Contains a list of all user-specified packages. You can safely edit
this file, adding packages that you want to be considered in world
set updates and removing those that you do not want to be
considered.
=============
2) I'm not sure what happens when using
"emerge --oneshot already-isntalled/package-higher-version"
but it is easy to check this out by looking in /var/lib/portage/world before and
after emerge finishes it's job.
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Confused with the --oneshot option of portage.
2006-07-02 3:17 ` Daniel Iliev
@ 2006-07-02 15:44 ` Neil Bothwick
0 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2006-07-02 15:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]
On Sun, 2 Jul 2006 06:17:03 +0300 (EEST), Daniel Iliev wrote:
> > That's correct. If you use --oneshot, world is not touched at all,
> > nothing is added or removed.
> >
> > There isn't, AFAIK, a portage option to remove a package from world,
> > although adding is easy with emerge -n.
> I hope this will help.
>
> 1) It apears there is a way to pull packages out of the world set. :)
>
> From 'man emerge', section "FILES":
>
> =============
> /var/lib/portage/world
> Contains a list of all user-specified packages. You can
> safely edit this file, adding packages that you want to be considered
> in world set updates and removing those that you do not
> want to be considered.
> =============
That's already been covered, I was referring to a portage option, a
complement to -n.
> 2) I'm not sure what happens when using
>
> "emerge --oneshot already-isntalled/package-higher-version"
Read what you quoted :)
--
Neil Bothwick
And God said "Let there be light" and there was light.
There was still nothing, but you could see it better.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Confused with the --oneshot option of portage.
2006-07-01 22:40 ` Neil Bothwick
2006-07-02 3:17 ` Daniel Iliev
@ 2006-07-02 7:26 ` Alan McKinnon
[not found] ` <20060721105038.GA4971@nibiru.local>
1 sibling, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2006-07-02 7:26 UTC (permalink / raw
To: gentoo-user
On Sat, 2006-07-01 at 23:40 +0100, Neil Bothwick wrote:
> There isn't, AFAIK, a portage option to remove a package from world,
> although adding is easy with emerge -n.
>
That has to be done manually by removing the appropriate line
from /var/lib/portage/world. The package will then still be installed,
but will not be updated with emerge -u world
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-07-21 15:21 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24 7:16 [gentoo-user] Confused with the --oneshot option of portage Jonathan Chocron
2006-05-24 7:55 ` Richard Fish
2006-05-24 15:27 ` Jonathan Chocron
2006-06-30 22:44 ` Boyd Stephen Smith Jr.
2006-07-01 8:25 ` [gentoo-user] " Remy Blank
2006-07-01 22:40 ` Neil Bothwick
2006-07-02 3:17 ` Daniel Iliev
2006-07-02 15:44 ` Neil Bothwick
2006-07-02 7:26 ` Alan McKinnon
[not found] ` <20060721105038.GA4971@nibiru.local>
2006-07-21 15:10 ` Bo Ørsted Andresen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox