View previous topic :: View next topic |
Author |
Message |
fabulousUnicorn n00b
Joined: 29 Nov 2021 Posts: 2
|
Posted: Mon Nov 29, 2021 4:54 am Post subject: What does updating the @world set do exactly? |
|
|
In the Gentoo installation handbook it recommends I execute the following command:
emerge --ask --verbose --update --deep --newuse @world
What exactly does it do? Does it install any packages? Or does it do something else? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Nov 29, 2021 5:06 am Post subject: |
|
|
From a simplicity standpoint, it does a "deep" search to find what programs need to be updated while also considering new changes to use flag settings. That evaluation only considers existing installed packages that have updates available. However, if an update of something installed has a new requirement for something not installed, then that new program will also be installed.
For example foo-1.0 is installed and does not require program bar. However, foo-1.1 is available which now requires bar. In this case, updating foo will install bar that was previously not installed. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2014
|
Posted: Mon Nov 29, 2021 8:53 am Post subject: |
|
|
and the "@world" set is where emerge starts its search for things to update. You could write
Code: | emerge --update --deep www-client/firefox |
in which case it would look for updates to firefox and all its dependencies. This probably isn't something you'd actually want to do (instead of a full world update), but the syntax works!
The @world set is the list of things you've explicitly asked for - that is, that have been named in the parameter list to emerge. So
emerge foo
adds "foo" to the @world list, but not foo's dependents. They will have been emerged as well, but they're not listed in @world; emerge locates them when you do stuff to foo and specify "--deep".
There's an alternative "one-shot" way to emerge foo, which means to merge it but NOT add it to @world. You sometimes need this when one of the programs in your @world set has a problem caused by a bug in one of its dependencies, say "bah", in which case
Code: | emerge --one-shot bah |
updates bah, but nothing else, and does NOT add it to @world. The reason for it's use is that some day the program in the world set may change its dependencies, and then no longer need bah. Without the "--one-shot", bah would itself be in @world, and you'd be needlessly updating it every "emerge --update ... @world", and further, bah might block something else being installed. _________________ Greybeard |
|
Back to top |
|
|
fabulousUnicorn n00b
Joined: 29 Nov 2021 Posts: 2
|
Posted: Mon Nov 29, 2021 5:06 pm Post subject: So what should I choose? |
|
|
The installation guide also has us "eselect profile list" I want to use KDE as my desktop, but what if I also want my system to be "hardened," and I want to experiment with selinux. "Default/linux/amd64/17.1/hardened/selinux" and "default/linux/amd64/17.1/desktop/plasma" are two different options. Which one should I choose? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54304 Location: 56N 3W
|
Posted: Mon Nov 29, 2021 5:15 pm Post subject: |
|
|
fabulousUnicorn,
Yon can merge the profiles yourself.
Almost all the differences are in USE flag settings. The settings in your selected profile are overridden by the settings you make in make.conf.
Selecting a profile does nothing to your install, as long as you don't install any packages.
Select one of the profiles of interest. Then run Save the output.
Rinse and repeat for as many other profiles as you like.
You can merge profiles by adding or removing things to make.conf.
However if one profile sets a flag, say selinux, and the other clears it, you need to resolve the conflict yourself.
If you really want to play with selinux, you should start with the selinux stage3. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4241 Location: Bavaria
|
Posted: Mon Nov 29, 2021 8:50 pm Post subject: |
|
|
fabulousUnicorn,
even if you dont want to use SELinux and if you want to use (only) a hardened profile you should start with the correct HARDENED stage3.
If you want to use a desktop profile also, you should take a look into this thread (last posts):
https://forums.gentoo.org/viewtopic-t-1110124-highlight-.html
I have a no-multilib profile and wanted KDE (plasma-profile). As you can read in this thread I did it before in a way Neddy suggests (looking which use-flags are needed) and had many problems with this, because there is a big problem with desktop-profiles: Some (many?) use-flags are set only per package ! For example you shall not set "wayland" globally in your make.conf if you want X11, BUT "wayland" is needed AND set for two (or more?) packages by the desktop-profile. So I recommend trying to connect your two profiles like it is described in this thread (and I did). I cant assure if it works because I didnt tested HARDENED+DESKTOP; I only have NO-MULTILIB+DESKTOP. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2965 Location: Edge of marsh USA
|
Posted: Tue Nov 30, 2021 4:18 am Post subject: Re: So what should I choose? |
|
|
fabulousUnicorn wrote: | The installation guide also has us "eselect profile list" I want to use KDE as my desktop, but what if I also want my system to be "hardened," and I want to experiment with selinux. "Default/linux/amd64/17.1/hardened/selinux" and "default/linux/amd64/17.1/desktop/plasma" are two different options. Which one should I choose? |
Are you sure you want all of that from the beginning? You are immediately moving into advanced topics while asking basic questions.
My suggestion is for you to use the basic "default/linux/amd64/17.1/desktop/plasma (stable)" profile and get a working desktop system up and running to your satisfaction. Only then explore what it means to go hardened/selinux and add those portions that you decide upon from an already working system. As with all advice, your mileage may vary. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
|