View previous topic :: View next topic |
Author |
Message |
npmccallum Retired Dev
Joined: 09 May 2003 Posts: 306 Location: Lexington, KY
|
Posted: Fri May 09, 2003 7:26 pm Post subject: emerge assumed options? |
|
|
Is there a way to make portage assume certain options to emerge? For instance I want options "k" and "b" to be always used. What this would do is if I type emerge -up world, it would really mean emerge -kbup world. Any way to do this?
Thanks!!
Nathaniel |
|
Back to top |
|
|
red_over_blue Guru
Joined: 16 Dec 2002 Posts: 310
|
Posted: Fri May 09, 2003 7:32 pm Post subject: |
|
|
you could edit your .bashrc file (located in your home directory) and add the following:
Code: |
alias emerge='emerge -kb'
|
and then "execute" you bashrc file by doing the following:
Code: |
john@limbo john $ . .bashrc
john@limbo john $
|
Then any option you add after will just be appended to the alias. |
|
Back to top |
|
|
red_over_blue Guru
Joined: 16 Dec 2002 Posts: 310
|
Posted: Fri May 09, 2003 7:34 pm Post subject: |
|
|
Also read this entire post if you are having trouble getting you bashrc to work every login (the comment at the end by tlauder) |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20053
|
Posted: Fri May 09, 2003 7:35 pm Post subject: |
|
|
For -b, see the FEATURES setting in /etc/make.conf _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
npmccallum Retired Dev
Joined: 09 May 2003 Posts: 306 Location: Lexington, KY
|
Posted: Fri May 09, 2003 7:44 pm Post subject: |
|
|
Any other way besides bashrc? I want this to be implimented for all users on over 50 machines (they all share a common "packages/All" directory. |
|
Back to top |
|
|
red_over_blue Guru
Joined: 16 Dec 2002 Posts: 310
|
Posted: Fri May 09, 2003 7:57 pm Post subject: |
|
|
You could add it to /etc/profile and it will be sourced when the user initially logs in. Make sure you get it in the non-root portion for general users. I would test it with a couple to make sure it is working properly. |
|
Back to top |
|
|
red_over_blue Guru
Joined: 16 Dec 2002 Posts: 310
|
Posted: Fri May 09, 2003 8:05 pm Post subject: |
|
|
Sorry, I didn't read carelly enough about the 50 machines. Do you have a common /etc mounted as NFS on all machines? If so, then my suggestion would work. If not, I will have to think a little more but I am on my way out the door. Good luck |
|
Back to top |
|
|
npmccallum Retired Dev
Joined: 09 May 2003 Posts: 306 Location: Lexington, KY
|
Posted: Fri May 09, 2003 8:40 pm Post subject: |
|
|
red_over_blue wrote: | Sorry, I didn't read carelly enough about the 50 machines. Do you have a common /etc mounted as NFS on all machines? If so, then my suggestion would work. If not, I will have to think a little more but I am on my way out the door. Good luck |
No, I don't have a common /etc. Most of the machines have very different files, but they all have the same make.conf. They also do have a shared /usr/portage/package/All directory. Basically, so that if one machine compiles a package, they all can use it. I'm going to have to change 50 machines regarless, but I don't want to hvae to do it for each user on each machine .
Thanks!
Nathaniel |
|
Back to top |
|
|
|