View previous topic :: View next topic |
Author |
Message |
314q8927bb4aw n00b
Joined: 11 Jan 2017 Posts: 11
|
Posted: Tue Jun 27, 2017 10:22 am Post subject: Find out what use flags are enabled by profiles |
|
|
Sup gentoo
How can I find out what use flags are enabled by a profile? I'm trying to tidy up my make.conf by removing redundant use flags. I'm using the 'default/linux/amd64/13.0/desktop' profile btw. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30965 Location: here
|
Posted: Tue Jun 27, 2017 10:38 am Post subject: |
|
|
As charles17 say, use command one time without USE line in make.conf and another time with USE and then use diff
Code: | $ portageq envvar USE | xargs -n 1 > clear_use_list.txt #in make.conf USE line is commented
$ portageq envvar USE | xargs -n 1 > use_list.txt #in make.conf USE line isn't commented
$ diff clear_use_list.txt use_list.txt |
The output show you what is not redundant _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Tue Jun 27, 2017 10:54 am Post subject: |
|
|
And be aware some USE flags which are generally enabled might be disabled (USE masked) for certain packages by
Code: | /usr/portage/profiles/base/package.use.mask |
|
|
Back to top |
|
|
314q8927bb4aw n00b
Joined: 11 Jan 2017 Posts: 11
|
Posted: Tue Jun 27, 2017 11:15 am Post subject: |
|
|
Thanks this works |
|
Back to top |
|
|
|