Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switching profiles...
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
libertytrek
Apprentice
Apprentice


Joined: 18 Jul 2007
Posts: 254

PostPosted: Fri Jul 11, 2008 3:47 pm    Post subject: Switching profiles... Reply with quote

Some time back, when I had to upgrade my profile (the one I was using was deprecated), I decided to try the server profile (default-linux/amd64/2007.0/server)...

Well, now that 2008 is out, and the profile layout has changed, I'd like to go ahead and switch profiles back to the standard default/linux/amd64/2008.0

My question is, whats the easiest way to compare the current USE flag settings, to what they will be using the new profile... in other words, is there a command I can type that outputs my current profile USE flag settings, that I can then use to make sure my new profile duplicates them?

tia...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31872
Location: 56N 3W

PostPosted: Fri Jul 11, 2008 5:41 pm    Post subject: Reply with quote

libertytrek,

Use
Code:
eselect profile list
eselect profile set X
to see and change profiles.

Code:
emerge --info 
will list your USE flags as set in the selected profile and make.conf.
It will not list settings in /etc/portage/package.use.

Note that /2008.0 is intended to be a parent profile and not used directly.
Its OK to use it directly if you want, you just need more settings in /etc/make.conf
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
libertytrek
Apprentice
Apprentice


Joined: 18 Jul 2007
Posts: 254

PostPosted: Fri Jul 11, 2008 6:26 pm    Post subject: Reply with quote

Hi NeddySeagoon (what is a neddyseagoon?) ;)

Yes, I'm aware of eselect, and I was also aware of emerge --info, just had a brain gorp...

As for /2008.0 not being intended to be used directly...

I guess I could just continue to use /server... it *is* a server, but I'm not comfortable with using a hardened profile... especially not converting an existing non-hardened profile to a hardened one (if this is recommended or even possible)...
Back to top
View user's profile Send private message
libertytrek
Apprentice
Apprentice


Joined: 18 Jul 2007
Posts: 254

PostPosted: Fri Jul 11, 2008 6:34 pm    Post subject: Reply with quote

Sorry, hit send to soon... I meant to add... 'but thanks much for reminding me about --info!'...

:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31872
Location: 56N 3W

PostPosted: Fri Jul 11, 2008 6:39 pm    Post subject: Reply with quote

libertytrek

This answers your first question.

You can turn off all the flags in your profile if you like by using the special USE flag -*
That gives you full control in make.conf

Its not just the profile that changes for a hardened system. You need a hardened gcc, glibc, kernel and a rebuild of all your applications.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
libertytrek
Apprentice
Apprentice


Joined: 18 Jul 2007
Posts: 254

PostPosted: Fri Jul 11, 2008 7:02 pm    Post subject: Reply with quote

NeddySeagoon wrote:
libertytrek

This answers your first question.


Heh... figured it was something like that... I was trying to remember if it was a Monty Python thing...

Quote:
You can turn off all the flags in your profile if you like by using the special USE flag -*
That gives you full control in make.conf


Hmmm... sorry if this is a dumb question, but would I be right to say that a profile is just a pre-defined set of USE flags?

Quote:
Its not just the profile that changes for a hardened system. You need a hardened gcc, glibc, kernel and a rebuild of all your applications.


Right... nnd you need to decide which method to implement (SELinux, RSBAC, etc)... its just over my head right now, and I don't have the time to devote to learn what is necessary... someday maybe...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31872
Location: 56N 3W

PostPosted: Fri Jul 11, 2008 7:40 pm    Post subject: Reply with quote

libertytrek,

Your profile is a lot more than a collection of predefined USE flags.
It sets your default arch, package.mask, package.provided and a few other things
They are all thisngs that can be fine turned in /etc/portage/*

See
Code:
man portage

All the files in your profile are text files - read them. They are also hierarchal as you traverse the directory structure,
so 2008.0/server inherits whatever is in /2008.0 and so on
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
libertytrek
Apprentice
Apprentice


Joined: 18 Jul 2007
Posts: 254

PostPosted: Fri Jul 11, 2008 8:20 pm    Post subject: Reply with quote

Ok, guess its time to do some reading... but for now I think I'll just upgrade to /2008.0/server...

Thanks again....
Back to top
View user's profile Send private message
myceliv
Apprentice
Apprentice


Joined: 29 Nov 2007
Posts: 178

PostPosted: Thu Jul 31, 2008 8:53 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Your profile is a lot more than a collection of predefined USE flags.
< ... >
All the files in your profile are text files - read them. They are also hierarchal as you traverse the directory structure,
so 2008.0/server inherits whatever is in /2008.0 and so on


That was very useful to actually do.. I'd never gone to the bottom of the profile hierarchy and just repeatedly cd ..'d, reading misc files, ls'ng and less'ing interesting dir contents along the way. Always gotten tangled in the various parent paths and figured it wasn't worth untangling, gone off to eselect different profiles and compare emerge --info diffs (which are hard to read). Thanks for making things simpler again Sr. Seagoon.
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