I am using Gentoo (for the first time, actually). I am trying to set up package management. I discovered that I have to set up portage (
emerge). While doing so, I had to run
emerge --sync. That gave the message:
Use eselect news read to view items.
I tried that, but I got:
zsh: command not found: eselect
I discovered a package:
app-admin/eselect, so I tried:
emerge --ask app-admin/select
Then I get:
!!! /etc/portage/make.profile is not a symlink and will probably prevent most merges. !!! It should point into a profile within /usr/portage/profiles/ !!! (You can safely ignore this message when syncing. It's harmless.) !!! Your current profile is invalid. If you have just changed your profile !!! configuration, you should revert back to the previous configuration. !!! Allowed actions are limited to --help, --info, --search, --sync, and !!! --version.
Turns out I was mistaken. I thought I was working in a flavour of gentoo, and so I was trying to setup portage manually, since the emerge command turned out to be missing.
Turns out, I was working in a flavour of CentOS, and so yum was what I needed to use. I had downloaded and un-tarred a portage tarball into a CentOS flavour, which explains why eselect was not there, and in turn explains why I had that sort of weird chicken & egg like problem between the emerge and eselect commands.
As per Andy Dalton's answer, I was yesterday looking at manually creating the make.profile symlink myself, to some file under /usr/portage/profiles/, but I was having a hard time figuring out which file to link it to.
Anyway, I got yum working, and I'm not sure what would happen if I went in to get portage working too. That could probably lead to some sort of package management conflict issues, so I'm not sure I want to experiment with that.