Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there new way to install?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Moonday
n00b
n00b


Joined: 25 Oct 2012
Posts: 35

PostPosted: Thu Sep 11, 2014 6:33 am    Post subject: Is there new way to install? Reply with quote

Hi
I'm in install a new Gentoo on a new x86 system. I look to Handbook and I see that there isn't any thing about download and install portage!
Have I a mistake or this is a new way to install without portage???
here is the link:
https://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5
Regards
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2585

PostPosted: Thu Sep 11, 2014 6:44 am    Post subject: Reply with quote

No mistake. See step 6.b
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Moonday
n00b
n00b


Joined: 25 Oct 2012
Posts: 35

PostPosted: Thu Sep 11, 2014 7:35 am    Post subject: Reply with quote

Code:

6.b. Configuring Portage

Installing a Portage Snapshot

You now have to install a Portage snapshot, a collection of files that inform Portage what software titles you can install, which profiles are available, etc.

We recommend the use of emerge-webrsync. This will fetch the latest portage snapshot (which Gentoo releases on a daily basis) from one of our mirrors and install it onto your system.

Code Listing 2.1: Running emerge-webrsync to install a Portage snapshot

# emerge-webrsync

Note: During this operation, emerge-webrsync might complain about a missing /usr/portage location. This is to be expected and nothing to worry about - the tool will create the location for us.

From this point onward, Portage might mention that certain updates are recommended to be executed. This is because certain system packages installed through the stage3 file might have newer versions available, and Portage is now aware of this because a new Portage snapshot is installed. You can safely ignore this for now and update after the Gentoo installation has finished.

Optional: Updating the Portage tree

You can now update your Portage tree to the latest version. emerge --sync will use the rsync protocol to update the Portage tree (which you fetched earlier on through emerge-webrsync) to the latest state.

Code Listing 2.2: Updating the Portage tree

# emerge --sync
(If you're using a slow terminal like some framebuffers or a serial
console, you can add the --quiet option to speed up this process:)
# emerge --sync --quiet

If you are behind a firewall that blocks rsync traffic, you safely ignore this step as you already have a quite up-to-date Portage tree.

If you are warned that a new Portage version is available and that you should update Portage, you should do it now using emerge --oneshot portage. You might also be notified that "news items need reading". More on that next.

Reading News Items

When a Portage tree is synchronized to your system, Portage might warn you with the following:

Code Listing 2.3: Portage informing that news items are available

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Portage news items were created to provide a communication medium to push critical messages to users via the rsync tree. To manage them you will need to use eselect news. With the read subcommand, you can read all news items. With list you can get an overview of the available news items, and with purge you can remove them once you have read them and have no further need for the item(s) anymore.

Code Listing 2.4: Handling Portage news

# eselect news list
# eselect news read

More information about the newsreader is available through its manual page: man news.eselect.

Choosing the Right Profile

First, a small definition is in place.

A profile is a building block for any Gentoo system. Not only does it specify default values for USE, CFLAGS and other important variables, it also locks the system to a certain range of package versions. This is all maintained by the Gentoo developers.

Previously, such a profile was untouched by the users. However, there may be certain situations in which you may decide a profile change is necessary.

You can see what profile you are currently using with the following command:

Note: The output of the command below is just an example and evolves over time.

Code Listing 2.5: Verifying system profile

# eselect profile list
Available profile symlink targets:
  [1]   default/linux/x86/13.0 *
  [2]   default/linux/x86/13.0/desktop
  [3]   default/linux/x86/13.0/desktop/gnome
  [4]   default/linux/x86/13.0/desktop/kde

As you can see, there are also desktop subprofiles available for some architectures. Running eselect profile list will show all available profiles.

After viewing the available profiles for your architecture, you can use a different one if you wish:

Code Listing 2.6: Changing profiles

# eselect profile set 2

Note: The developer subprofile is specifically for Gentoo Linux development tasks. It is not meant to help set up general development environments.

Configuring the USE variable

USE is one of the most powerful variables Gentoo provides to its users. Several programs can be compiled with or without optional support for certain items. For instance, some programs can be compiled with gtk-support, or with qt-support. Others can be compiled with or without SSL support. Some programs can even be compiled with framebuffer support (svgalib) instead of X11 support (X-server).

Most distributions compile their packages with support for as much as possible, increasing the size of the programs and startup time, not to mention an enormous amount of dependencies. With Gentoo you can define what options a package should be compiled with. This is where USE comes into play.

In the USE variable you define keywords which are mapped onto compile-options. For instance, ssl will compile ssl-support in the programs that support it. -X will remove X-server support (note the minus sign in front). gnome gtk -kde -qt4 will compile your programs with gnome (and gtk) support, and not with kde (and qt) support, making your system fully tweaked for GNOME.

The default USE settings are placed in the make.defaults files of your profile. You will find make.defaults files in the directory which /etc/portage/make.profile points to and all parent directories as well. The default USE setting is the sum of all USE settings in all make.defaults files. What you place in /etc/portage/make.conf is calculated against these defaults settings. If you add something to the USE setting, it is added to the default list. If you remove something from the USE setting (by placing a minus sign in front of it) it is removed from the default list (if it was in the default list at all). Never alter anything inside the /etc/portage/make.profile directory; it gets overwritten when you update Portage!

A full description on USE can be found in the second part of the Gentoo Handbook, USE flags. A full description on the available USE flags can be found on your system in /usr/portage/profiles/use.desc.

Code Listing 2.7: Viewing available USE flags

# less /usr/portage/profiles/use.desc
(You can scroll using your arrow keys, exit by pressing 'q')

As an example we show a USE setting for a KDE-based system with DVD, ALSA and CD Recording support:

Code Listing 2.8: Opening /etc/portage/make.conf

# nano -w /etc/portage/make.conf

Code Listing 2.9: USE setting

USE="-gtk -gnome qt4 kde dvd alsa cdr"




???????????


emerge --sync wiil download portage??? :?:
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2585

PostPosted: Thu Sep 11, 2014 7:56 am    Post subject: Reply with quote

emerge-webrsync will. I don't know about emerge --sync.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10273
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Sep 11, 2014 12:19 pm    Post subject: Reply with quote

Moonday wrote:
emerge --sync wiil download portage??? :?:
Correction: "emerge --sync" will download the Portage tree, which is different from Portage. However, with an empty tree on your system, "emerge --sync" is slow and puts unnecessary strain on the mirrors. "emerge-webrsync" is preferred and is exactly what the Handbook recommends.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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