* Re: [gentoo-user] --oneshot and --update
2011-05-16 6:35 [gentoo-user] --oneshot and --update Pandu Poluan
@ 2011-05-16 7:14 ` Alan McKinnon
2011-05-16 7:21 ` [gentoo-user] " Nikos Chantziaras
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Alan McKinnon @ 2011-05-16 7:14 UTC (permalink / raw
To: gentoo-user
Apparently, though unproven, at 08:35 on Monday 16 May 2011, Pandu Poluan did
opine thusly:
> Hello list!
>
> I am trying to get the 'Zen' of emerge. Please CMIIW on the following
> points:
>
> * emerge --oneshot package will install package but does not record it in
> @world
Yes
> * To update a oneshot-ed package, I must either do it explicitly
> (emerge --update package), or use --deep against world (emerge
> --update --deep @world)
Yes
> * --update-ing a package will not record it in @world
Dunno. Please test it and tell us if it did or not
> * If I want that package to be included in @world, I have to re-emerge it
No.
emerge -n
Refer to emerge man page
You can also just edit /var/lib/portage/world by hand for the same result
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: --oneshot and --update
2011-05-16 6:35 [gentoo-user] --oneshot and --update Pandu Poluan
2011-05-16 7:14 ` Alan McKinnon
@ 2011-05-16 7:21 ` Nikos Chantziaras
2011-05-16 7:50 ` [gentoo-user] " Stéphane Guedon
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Nikos Chantziaras @ 2011-05-16 7:21 UTC (permalink / raw
To: gentoo-user
On 05/16/2011 09:35 AM, Pandu Poluan wrote:
> Hello list!
>
> I am trying to get the 'Zen' of emerge. Please CMIIW on the following points:
>
> * emerge --oneshot package will install package but does not record it in @world
>
> * To update a oneshot-ed package, I must either do it explicitly
> (emerge --update package), or use --deep against world (emerge
> --update --deep @world)
>
> * --update-ing a package will not record it in @world
>
> * If I want that package to be included in @world, I have to re-emerge it
>
> So, did I get everything right?
I don't think that "--deep" will update stuff that isn't a direct or
indirect dependency of packages that are in world.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-16 6:35 [gentoo-user] --oneshot and --update Pandu Poluan
2011-05-16 7:14 ` Alan McKinnon
2011-05-16 7:21 ` [gentoo-user] " Nikos Chantziaras
@ 2011-05-16 7:50 ` Stéphane Guedon
2011-05-16 8:32 ` Neil Bothwick
2011-05-16 13:38 ` Stroller
4 siblings, 0 replies; 11+ messages in thread
From: Stéphane Guedon @ 2011-05-16 7:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 950 bytes --]
On Monday 16 May 2011 08:35:19 Pandu Poluan wrote:
> Hello list!
>
> I am trying to get the 'Zen' of emerge. Please CMIIW on the following
> points:
>
> * emerge --oneshot package will install package but does not record it in
> @world
right
> * To update a oneshot-ed package, I must either do it explicitly
> (emerge --update package), or use --deep against world (emerge
> --update --deep @world)
>
> * --update-ing a package will not record it in @world
>
> * If I want that package to be included in @world, I have to re-emerge it
no, you can use emerge --noreplace www-client/firefox (for exemple), or write
this ebuild name in the world file itself.
> So, did I get everything right?
>
> Rgds,
--
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-16 6:35 [gentoo-user] --oneshot and --update Pandu Poluan
` (2 preceding siblings ...)
2011-05-16 7:50 ` [gentoo-user] " Stéphane Guedon
@ 2011-05-16 8:32 ` Neil Bothwick
2011-05-16 13:38 ` Stroller
4 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2011-05-16 8:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
On Mon, 16 May 2011 13:35:19 +0700, Pandu Poluan wrote:
> * emerge --oneshot package will install package but does not record it
> in @world
Yes.
> * To update a oneshot-ed package, I must either do it explicitly
> (emerge --update package), or use --deep against world (emerge
> --update --deep @world)
The former, the latter will not do anything as the package is unknown to
world.
> * --update-ing a package will not record it in @world
As in emerge -u package? That will record it in world.
> * If I want that package to be included in @world, I have to re-emerge
> it
* emerge --oneshot package will install package but does not record it in
@world
* To update a oneshot-ed package, I must either do it explicitly
(emerge --update package), or use --deep against world (emerge
--update --deep @world)
* --update-ing a package will not record it in @world
* If I want that package to be included in @world, I have to re-emerge it
No, emerge -n package.
--
Neil Bothwick
What do you call a Tellytubbie with a finger up its bum? Stinky Pinky!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-16 6:35 [gentoo-user] --oneshot and --update Pandu Poluan
` (3 preceding siblings ...)
2011-05-16 8:32 ` Neil Bothwick
@ 2011-05-16 13:38 ` Stroller
2011-05-16 14:06 ` Dale
2011-05-16 19:51 ` Neil Bothwick
4 siblings, 2 replies; 11+ messages in thread
From: Stroller @ 2011-05-16 13:38 UTC (permalink / raw
To: gentoo-user
On 16/5/2011, at 7:35am, Pandu Poluan wrote:
> ...
> * emerge --oneshot package will install package but does not record it in @world
>
> * To update a oneshot-ed package, I must either do it explicitly
> (emerge --update package) ...
Will this not cause the package to be recorded in world?
I think you update a oneshotted package with `emerge -1 package` (just the same as you used to install it in the first place).
This probably doesn't arise very often, as you probably won't be updating oneshotted packages very often. --oneshot is fairly strictly a temporary solution - to fulfil a virtual in a certain way or just for testing how a package behaves with or without a graphics lib installed. If you want the package updated then you should record it in world.
Stroller.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-16 13:38 ` Stroller
@ 2011-05-16 14:06 ` Dale
2011-05-16 14:17 ` Alex Schuster
2011-05-16 19:51 ` Neil Bothwick
1 sibling, 1 reply; 11+ messages in thread
From: Dale @ 2011-05-16 14:06 UTC (permalink / raw
To: gentoo-user
Stroller wrote:
> On 16/5/2011, at 7:35am, Pandu Poluan wrote:
>
>> ...
>> * emerge --oneshot package will install package but does not record it in @world
>>
>> * To update a oneshot-ed package, I must either do it explicitly
>> (emerge --update package) ...
>>
> Will this not cause the package to be recorded in world?
>
> I think you update a oneshotted package with `emerge -1 package` (just the same as you used to install it in the first place).
>
> This probably doesn't arise very often, as you probably won't be updating oneshotted packages very often. --oneshot is fairly strictly a temporary solution - to fulfil a virtual in a certain way or just for testing how a package behaves with or without a graphics lib installed. If you want the package updated then you should record it in world.
>
> Stroller.
>
>
Way back when, --update did not record to the world file. That may have
changed but I sort of doubt it.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-16 14:06 ` Dale
@ 2011-05-16 14:17 ` Alex Schuster
2011-05-18 10:06 ` Pandu Poluan
0 siblings, 1 reply; 11+ messages in thread
From: Alex Schuster @ 2011-05-16 14:17 UTC (permalink / raw
To: gentoo-user
Dale writes:
> Way back when, --update did not record to the world file. That may have
> changed but I sort of doubt it.
It has changed indeed.
Wonko
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-16 14:17 ` Alex Schuster
@ 2011-05-18 10:06 ` Pandu Poluan
2011-05-18 10:15 ` Neil Bothwick
0 siblings, 1 reply; 11+ messages in thread
From: Pandu Poluan @ 2011-05-18 10:06 UTC (permalink / raw
To: gentoo-user
On Mon, May 16, 2011 at 21:17, Alex Schuster <wonko@wonkology.org> wrote:
> Dale writes:
>
>> Way back when, --update did not record to the world file. That may have
>> changed but I sort of doubt it.
>
> It has changed indeed.
>
> Wonko
>
>
So, if I do:
emerge --update --newuse --pretend --deep world
And then, let's say there's package 'foo' that I never emerged
manually (not visible if I didn't use '--deep' above), and I do
emerge --update foo
Then 'foo' will be recorded in @world?
Rgds,
--
Pandu E Poluan
~ IT Optimizer ~
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-18 10:06 ` Pandu Poluan
@ 2011-05-18 10:15 ` Neil Bothwick
0 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2011-05-18 10:15 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
On Wed, 18 May 2011 17:06:59 +0700, Pandu Poluan wrote:
> So, if I do:
>
> emerge --update --newuse --pretend --deep world
>
> And then, let's say there's package 'foo' that I never emerged
> manually (not visible if I didn't use '--deep' above), and I do
>
> emerge --update foo
>
> Then 'foo' will be recorded in @world?
Yes. If a world update with "--deep --with-bdeps y" doesn't touch a
package, you should either let depclean remove it or add it to world.
It means the package is not a dependency of anything in world, either
know you need it because you use it, in which case it should be in world,
or it is a no longer needed dependency and should be cleaned up.
--
Neil Bothwick
I am ready to meet my Maker. Whether my Maker is prepared for the great
ordeal of meeting me is another matter. - Sir Winston Churchill
(1874-1965)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] --oneshot and --update
2011-05-16 13:38 ` Stroller
2011-05-16 14:06 ` Dale
@ 2011-05-16 19:51 ` Neil Bothwick
1 sibling, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2011-05-16 19:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
On Mon, 16 May 2011 14:38:37 +0100, Stroller wrote:
> This probably doesn't arise very often, as you probably won't be
> updating oneshotted packages very often. --oneshot is fairly strictly a
> temporary solution - to fulfil a virtual in a certain way or just for
> testing how a package behaves with or without a graphics lib installed.
> If you want the package updated then you should record it in world.
I use to use --oneshot for testing packages, so they didn't end up in
world with me forgetting they were there. Now I use a set (@temp) and add
any packages I want to try out in there. It stops stuff getting
depcleaned before I've tried it and keeps the package and itsa deps up to
date. Every so often I go through the temp set and remove packages,
either adding them to @world or leaving them to the tender mercies of
depclean.
--
Neil Bothwick
Dolly Parton-- silicone based life
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread