Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Explanation of --update and slots.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
fordboy0
n00b
n00b


Joined: 22 Apr 2003
Posts: 14

PostPosted: Tue Apr 22, 2003 9:19 pm    Post subject: Explanation of --update and slots. Reply with quote

Heyall,

I have read through the portage documentation and I think I have a small grasp of the system. Maybe. You can possibly help me to understand it better.

What is the difference between the following two commands (output follows each command). ACCEPT_KEYWORDS is set as "~x86" for clarity. (I have some unstable packages and don't want the "D"owngrade flag set)

Particularly I'm interested in what portage will do differently between the two emerges. I noticed that without the --update flag that xft is blocked. Is this because without --update, portage will be making slots for some of the packages? If so, then why are some marked for "U"pdate. I'm confused.

Fordboy0

Code:
emerge --pretend world
Calculating world dependencies ...done!
[ebuild    U ] sys-apps/grep-2.5.1-r1 [2.5-r1]
[ebuild    U ] sys-apps/reiserfsprogs-3.6.5-r1 [3.6.4-r1]
[ebuild    U ] sys-apps/netkit-base-0.17-r7 [0.17-r6]
[ebuild    U ] sys-devel/binutils-2.13.90.0.20-r1 [2.13.90.0.18]
[ebuild    U ] sys-apps/grub-0.93.20030118 [0.92-r1]
[ebuild    U ] sys-libs/db-3.2.9-r2 [3.2.9-r1]
[ebuild    U ] sys-apps/texinfo-4.5 [4.3-r1]
[ebuild    U ] sys-apps/procps-3.1.8 [2.0.10-r1]
[ebuild    U ] app-admin/gentoolkit-0.1.19-r5 [0.1.19-r3]
[ebuild    U ] net-www/lynx-2.8.4.1d [2.8.4.1c]
[ebuild    U ] sys-apps/groff-1.18.1-r2 [1.18.1-r1]
[ebuild    U ] sys-apps/e2fsprogs-1.33 [1.32-r2]
[ebuild    U ] net-misc/openssh-3.6.1_p1 [3.5_p1]
[ebuild    U ] sys-kernel/gentoo-sources-2.4.20-r3 [2.4.20-r2]
[ebuild    U ] sys-devel/gettext-0.11.5-r1 [0.11.5]
[ebuild    U ] sys-devel/gcc-3.2.2-r2 [3.2.2]
[ebuild    U ] sys-apps/util-linux-2.11z-r1 [2.11y]
[ebuild    U ] sys-devel/bin86-0.16.11 [0.16.0]
[blocks B    ] x11-libs/xft ("virtual/xft" from pkg x11-base/xfree-4.3.0-r2)
[ebuild    U ] x11-base/xfree-4.3.0-r2 [4.2.1-r2]
[ebuild  N   ] media-libs/glide-v3-3.10-r3
[ebuild    U ] sys-apps/gawk-3.1.2-r3 [3.1.1-r1]
[ebuild    U ] sys-apps/sed-4.0.7 [4.0.6]
[ebuild    U ] sys-apps/slocate-2.7-r2 [2.7-r1]
[ebuild    U ] sys-libs/glibc-2.3.2-r1 [2.3.1-r4]
[ebuild    U ] sys-libs/slang-1.4.8 [1.4.5-r2]
[ebuild    U ] sys-apps/baselayout-1.8.6.5 [1.8.5.8]

and
emerge --pretend --update world
Calculating world dependencies ...done!
[ebuild    U ] sys-devel/gettext-0.11.5-r1 [0.11.5]
[ebuild    U ] sys-apps/gawk-3.1.2-r3 [3.1.1-r1]
[ebuild    U ] sys-apps/baselayout-1.8.6.5 [1.8.5.8]
[ebuild    U ] sys-devel/binutils-2.13.90.0.20-r1 [2.13.90.0.18]
[ebuild    U ] sys-apps/sed-4.0.7 [4.0.6]
[ebuild    U ] sys-apps/texinfo-4.5 [4.3-r1]
[ebuild    U ] sys-devel/gcc-config-1.3.3 [1.3.1-r1]
[ebuild    U ] sys-devel/gcc-3.2.2-r2 [3.2.2]
[ebuild    U ] sys-libs/glibc-2.3.2-r1 [2.3.1-r4]
[ebuild    U ] sys-apps/grep-2.5.1-r1 [2.5-r1]
[ebuild    U ] sys-apps/reiserfsprogs-3.6.5-r1 [3.6.4-r1]
[ebuild    U ] sys-apps/netkit-base-0.17-r7 [0.17-r6]
[ebuild    U ] sys-apps/grub-0.93.20030118 [0.92-r1]
[ebuild    U ] sys-libs/db-3.2.9-r2 [3.2.9-r1]
[ebuild    U ] sys-apps/procps-3.1.8 [2.0.10-r1]
[ebuild    U ] dev-util/dialog-0.9_beta20030308-r1 [0.9_beta20030308]
[ebuild    U ] app-admin/gentoolkit-0.1.19-r5 [0.1.19-r3]
[ebuild    U ] net-www/lynx-2.8.4.1d [2.8.4.1c]
[ebuild    U ] sys-apps/groff-1.18.1-r2 [1.18.1-r1]
[ebuild    U ] sys-apps/e2fsprogs-1.33 [1.32-r2]
[ebuild    U ] net-misc/openssh-3.6.1_p1 [3.5_p1]
[ebuild    U ] sys-kernel/gentoo-sources-2.4.20-r3 [2.4.20-r2]
[ebuild    U ] sys-apps/util-linux-2.11z-r1 [2.11y]
[ebuild    U ] sys-devel/bin86-0.16.11 [0.16.0]
[ebuild    U ] media-libs/freetype-2.1.4 [2.1.3-r2]
[ebuild    U ] media-libs/fontconfig-2.1.94-r1 [2.1-r1]
[ebuild    U ] x11-base/xfree-4.3.0-r2 [4.2.1-r2]
[ebuild  N   ] media-libs/glide-v3-3.10-r3
[ebuild    U ] sys-apps/slocate-2.7-r2 [2.7-r1]
[ebuild    U ] sys-libs/slang-1.4.8 [1.4.5-r2]
Back to top
View user's profile Send private message
Orange
n00b
n00b


Joined: 11 Apr 2003
Posts: 47

PostPosted: Wed Apr 23, 2003 1:39 am    Post subject: Re: Explanation of --update and slots. Reply with quote

fordboy0 wrote:
Heyall,
What is the difference between the following two commands (output follows each command). ACCEPT_KEYWORDS is set as "~x86" for clarity. (I have some unstable packages and don't want the "D"owngrade flag set)

Particularly I'm interested in what portage will do differently between the two emerges. I noticed that without the --update flag that xft is blocked. Is this because without --update, portage will be making slots for some of the packages? If so, then why are some marked for "U"pdate. I'm confused.


Code:
emerge --pretend world
Calculating world dependencies ...done!
[ebuild    U ] sys-apps/grep-2.5.1-r1 [2.5-r1]
[ebuild    U ] sys-apps/reiserfsprogs-3.6.5-r1 [3.6.4-r1]
[ebuild    U ] sys-apps/netkit-base-0.17-r7 [0.17-r6]
[ebuild    U ] sys-devel/binutils-2.13.90.0.20-r1 [2.13.90.0.18]
[ebuild    U ] sys-apps/grub-0.93.20030118 [0.92-r1]
[ebuild    U ] sys-libs/db-3.2.9-r2 [3.2.9-r1]
[ebuild    U ] sys-apps/texinfo-4.5 [4.3-r1]
[ebuild    U ] sys-apps/procps-3.1.8 [2.0.10-r1]
[ebuild    U ] app-admin/gentoolkit-0.1.19-r5 [0.1.19-r3]
[ebuild    U ] net-www/lynx-2.8.4.1d [2.8.4.1c]
[ebuild    U ] sys-apps/groff-1.18.1-r2 [1.18.1-r1]
[ebuild    U ] sys-apps/e2fsprogs-1.33 [1.32-r2]
[ebuild    U ] net-misc/openssh-3.6.1_p1 [3.5_p1]
[ebuild    U ] sys-kernel/gentoo-sources-2.4.20-r3 [2.4.20-r2]
[ebuild    U ] sys-devel/gettext-0.11.5-r1 [0.11.5]
[ebuild    U ] sys-devel/gcc-3.2.2-r2 [3.2.2]
[ebuild    U ] sys-apps/util-linux-2.11z-r1 [2.11y]
[ebuild    U ] sys-devel/bin86-0.16.11 [0.16.0]
[blocks B    ] x11-libs/xft ("virtual/xft" from pkg x11-base/xfree-4.3.0-r2)
[ebuild    U ] x11-base/xfree-4.3.0-r2 [4.2.1-r2]
[ebuild  N   ] media-libs/glide-v3-3.10-r3
[ebuild    U ] sys-apps/gawk-3.1.2-r3 [3.1.1-r1]
[ebuild    U ] sys-apps/sed-4.0.7 [4.0.6]
[ebuild    U ] sys-apps/slocate-2.7-r2 [2.7-r1]
[ebuild    U ] sys-libs/glibc-2.3.2-r1 [2.3.1-r4]
[ebuild    U ] sys-libs/slang-1.4.8 [1.4.5-r2]
[ebuild    U ] sys-apps/baselayout-1.8.6.5 [1.8.5.8]

and
emerge --pretend --update world
Calculating world dependencies ...done!
[ebuild    U ] sys-devel/gettext-0.11.5-r1 [0.11.5]
[ebuild    U ] sys-apps/gawk-3.1.2-r3 [3.1.1-r1]
[ebuild    U ] sys-apps/baselayout-1.8.6.5 [1.8.5.8]
[ebuild    U ] sys-devel/binutils-2.13.90.0.20-r1 [2.13.90.0.18]
[ebuild    U ] sys-apps/sed-4.0.7 [4.0.6]
[ebuild    U ] sys-apps/texinfo-4.5 [4.3-r1]
[ebuild    U ] sys-devel/gcc-config-1.3.3 [1.3.1-r1]
[ebuild    U ] sys-devel/gcc-3.2.2-r2 [3.2.2]
[ebuild    U ] sys-libs/glibc-2.3.2-r1 [2.3.1-r4]
[ebuild    U ] sys-apps/grep-2.5.1-r1 [2.5-r1]
[ebuild    U ] sys-apps/reiserfsprogs-3.6.5-r1 [3.6.4-r1]
[ebuild    U ] sys-apps/netkit-base-0.17-r7 [0.17-r6]
[ebuild    U ] sys-apps/grub-0.93.20030118 [0.92-r1]
[ebuild    U ] sys-libs/db-3.2.9-r2 [3.2.9-r1]
[ebuild    U ] sys-apps/procps-3.1.8 [2.0.10-r1]
[ebuild    U ] dev-util/dialog-0.9_beta20030308-r1 [0.9_beta20030308]
[ebuild    U ] app-admin/gentoolkit-0.1.19-r5 [0.1.19-r3]
[ebuild    U ] net-www/lynx-2.8.4.1d [2.8.4.1c]
[ebuild    U ] sys-apps/groff-1.18.1-r2 [1.18.1-r1]
[ebuild    U ] sys-apps/e2fsprogs-1.33 [1.32-r2]
[ebuild    U ] net-misc/openssh-3.6.1_p1 [3.5_p1]
[ebuild    U ] sys-kernel/gentoo-sources-2.4.20-r3 [2.4.20-r2]
[ebuild    U ] sys-apps/util-linux-2.11z-r1 [2.11y]
[ebuild    U ] sys-devel/bin86-0.16.11 [0.16.0]
[ebuild    U ] media-libs/freetype-2.1.4 [2.1.3-r2]
[ebuild    U ] media-libs/fontconfig-2.1.94-r1 [2.1-r1]
[ebuild    U ] x11-base/xfree-4.3.0-r2 [4.2.1-r2]
[ebuild  N   ] media-libs/glide-v3-3.10-r3
[ebuild    U ] sys-apps/slocate-2.7-r2 [2.7-r1]
[ebuild    U ] sys-libs/slang-1.4.8 [1.4.5-r2]


-p (--pretend) will pretend to emerge all the files that are in the world list.
-u (--update) will emerge all of the files in your world list that have an upgraded version available. so when you use
Code:
emerge -up world
it will "pretend" or list all of the programs in your world list that have updates available. Hope this clarifies your situation
_________________
Gentoo is a learning experience
Back to top
View user's profile Send private message
fordboy0
n00b
n00b


Joined: 22 Apr 2003
Posts: 14

PostPosted: Thu Apr 24, 2003 11:59 pm    Post subject: Reply with quote

Thanks for the reply. I actually understand what the --pretend parameter does. My question was more about the different output from portage when using --update compared to not using it. I was wondering what the results would be without using --update. Would portage create *slots* for the different versions, rather than upgrading?

-Fordboy
_________________
Geef knew they wouldn't throw him in the volcano... But they did.
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Fri Apr 25, 2003 12:34 am    Post subject: Reply with quote

well an emerge -u world will sync everything up with the current portage tree....if you'd like to prevent it from downgrading things, do emerge -U world ... the uppercase tells portage not to downgrade anything
Back to top
View user's profile Send private message
rabbit
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2003
Posts: 122
Location: Clarkson University

PostPosted: Fri Apr 25, 2003 2:45 am    Post subject: -U doesn't always work... Reply with quote

emerge -U doesn't always work... for instance, tonight, I was trying to emerge gnumeric. This is what I got:

Code:
$ emerge -p gnumeric
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild    U ] media-libs/freetype-1.3.1-r3 [2.1.4]
[ebuild  N   ] app-office/gnumeric-1.0.12


And...

Code:
$ emerge -Up gnumeric
>>> --upgradeonly implies --update... adding --update to options.
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild    U ] media-libs/freetype-1.3.1-r3 [2.1.4]
[ebuild  N   ] app-office/gnumeric-1.0.12


It still seems to want to downgrade my package. Now, does this mean that it's going to install both packages concurrently (i.e 1.3.1 and 2.1.4 installed at the same time), or that -U didn't work? I would find it helpful if there were another flag that would let me know that both would live on my machine happily together or that one is going to destroy the other.
Back to top
View user's profile Send private message
fordboy0
n00b
n00b


Joined: 22 Apr 2003
Posts: 14

PostPosted: Fri Apr 25, 2003 6:32 am    Post subject: Reply with quote

Rabbit,

I think that is a novel idea. It would be helpful if portage would tell you if it was going to create a *slot*, or if it was going to actually overwrite a different version.

Perhaps there is a way to tell, and I'm just too much of a Gentoo n00b to figure it out.

-Fordboy
_________________
Geef knew they wouldn't throw him in the volcano... But they did.
Back to top
View user's profile Send private message
schutten
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2002
Posts: 120
Location: Veldhoven, the Netherlands

PostPosted: Fri Apr 25, 2003 7:17 am    Post subject: Reply with quote

No, it is not incorrectly downgrading freetype in this case.
This is one of the many packages that is indeed "slotted" (along with gtk, a lot of the gnome stuff, etc). Most of us will have multiple version of these slotted packages installed.

It would be nice though if portage did indicate if it was actually going to downgrade a package, or create a parallel version in a different slot.

I mentioned this before, I guess I have to post a bug report for it to be noticed by the developers of portage:
https://forums.gentoo.org/viewtopic.php?t=47151
Back to top
View user's profile Send private message
schutten
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2002
Posts: 120
Location: Veldhoven, the Netherlands

PostPosted: Fri Apr 25, 2003 7:37 am    Post subject: Reply with quote

A bug report did already exist in this topic:

https://bugs.gentoo.org/show_bug.cgi?id=18608

I just added my comment to the existing bug report
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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