Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
my top today trick :") ~emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
raptor
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 171

PostPosted: Fri Jan 16, 2004 1:25 pm    Post subject: my top today trick :") ~emerge Reply with quote

Ever been tired to write to write ACCEPT_KEYWORDS='~x86', here is the solution :

Code:

mcedit /sbin/~emerge


then write :
Code:

#!/bin/sh
ACCEPT_KEYWORDS='~x86' emerge $@

Save the file ...
Code:

chmod o+x /sbin/~emerge

~emerge -p whatever


now if there is way to say to bash_completion to treat ~emerge like emerge, would be neat..
Back to top
View user's profile Send private message
Angrybob
Guru
Guru


Joined: 19 Apr 2003
Posts: 575

PostPosted: Fri Jan 16, 2004 1:31 pm    Post subject: Re: my top today trick :") ~emerge Reply with quote

I did a similar thing by putting this in my .profile file:-

Code:

alias betaemerge="ACCEPT_KEYWORDS=\"~x86\" emerge"


now i type "betaemerge -p whatever"
Back to top
View user's profile Send private message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Fri Jan 16, 2004 1:34 pm    Post subject: Re: my top today trick :") ~emerge Reply with quote

Angrybob wrote:
I did a similar thing by putting this in my .profile file:-

Code:

alias betaemerge="ACCEPT_KEYWORDS=\"~x86\" emerge"


now i type "betaemerge -p whatever"


Me too, but i'll be using the other instead since sudo is not longer installed on my system.
_________________
Together we are strong.
Back to top
View user's profile Send private message
CustardFD
n00b
n00b


Joined: 19 Mar 2003
Posts: 8

PostPosted: Fri Jan 16, 2004 4:23 pm    Post subject: Reply with quote

Sudo? That's just using the [ba]sh alias feature. Just put the line in your .bashrc file.

Dan.
Back to top
View user's profile Send private message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Fri Jan 16, 2004 10:21 pm    Post subject: Reply with quote

CustardFD wrote:
Sudo? That's just using the [ba]sh alias feature. Just put the line in your .bashrc file.

Dan.


Yes, but as another user, you require either sudo or su to update the system.. (my way)
_________________
Together we are strong.
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Fri Jan 16, 2004 11:05 pm    Post subject: Reply with quote

I still think that there should be a commandline option for emerge that does the same thing... emerge -m?
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Sat Jan 17, 2004 1:38 am    Post subject: Reply with quote

Sheesh, you guys are so x86-centric

Code:
alias accept="`sed -ne 's.\(ACCEPT_KEYWORDS="\)\([^"]*\).\1~\2.p' /etc/make.profile/make.defaults`"
alias acceptp="accept emerge -pv"
alias accepte="accept sudo emerge"


There, now it'll work on a real computer :twisted:
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Sun Jan 18, 2004 4:53 am    Post subject: Reply with quote

tactless wrote:
I still think that there should be a commandline option for emerge that does the same thing... emerge -m?


I completely agree. It seems so obvious!
Back to top
View user's profile Send private message
razamatan
Apprentice
Apprentice


Joined: 28 Feb 2003
Posts: 160

PostPosted: Sun Jan 18, 2004 8:18 am    Post subject: Reply with quote

command line options are too risky... there's WAAAY too many people out there that can do a man or a -? or --help and try stuff that they shouldn't... i think the user who understands environment vars are good enuf to try and hack it in different arch's.... wait... maybe not.. ;)
_________________
a razamatan doth speaketh,
"Never attribute to malice, that which can be adequately explained by stupidity"
Back to top
View user's profile Send private message
TheEternalVortex
Apprentice
Apprentice


Joined: 15 Oct 2002
Posts: 207
Location: San Jose, CA

PostPosted: Mon Jan 19, 2004 8:53 am    Post subject: Reply with quote

Just keep it in the make.conf, that saves the trouble of any of this...
_________________
-- Andy
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Mon Jan 19, 2004 3:12 pm    Post subject: Reply with quote

Keeping it in the make.conf is still not optimal. I don't use the masked packages, except for a few circumstances (postrgresql 7.4.1 for example). That means that I have to switch back and forth sometimes. It's not that big a deal, since I just created a "masked_emerge" alias, however, I still think a command-line option would be more straightforward.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Mon Jan 19, 2004 3:28 pm    Post subject: Reply with quote

You guys know about the new top-secret package.keywords superfeature in the .50 series of portage, right?
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Mon Jan 19, 2004 3:59 pm    Post subject: Reply with quote

ciaranm wrote:
You guys know about the new top-secret package.keywords superfeature in the .50 series of portage, right?


No...do tell!
Back to top
View user's profile Send private message
foosh
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 231
Location: STL

PostPosted: Mon Jan 19, 2004 4:02 pm    Post subject: Reply with quote

yeah i have an alias so i can just do
Code:
masked emerge -upv world

_________________
http://wustlog.blogspot.com
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Mon Jan 19, 2004 4:02 pm    Post subject: Reply with quote

No! It's a secret! You can only find it out by upgrading and then reading `man portage` :P
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Mon Jan 19, 2004 6:07 pm    Post subject: Reply with quote

Code:
alias port="cd /usr/portage"
alias pmerge="emerge -p"
alias inst='ACCEPT_KEYWORDS="~x86" emerge'
alias pinst='ACCEPT_KEYWORDS="~x86" emerge -p'
alias ls="ls --color"
alias ll="ls --color -l -F -h"
alias la="ls --color -lah -F"
alias lw="ls | wc -l"
alias du="du -h"
alias df="df -h"
alias cdf="pydf -alhm"
alias ps="ps -ef"

export GREP_COLOR=32
alias grep='grep --colour=auto'
PS1='\[\033[00;33;33m\]\u\[\033[01;00;0m\]@\[\033[1;34m\]\h\[\033[01;00;0m\] : \[\033[32m\]\w\[\033[01;00;0m\] $ '

cd


This is my profile.


ciaranm wrote:
Sheesh, you guys are so x86-centric

Code:
alias accept="`sed -ne 's.\(ACCEPT_KEYWORDS="\)\([^"]*\).\1~\2.p' /etc/make.profile/make.defaults`"
alias acceptp="accept emerge -pv"
alias accepte="accept sudo emerge"


There, now it'll work on a real computer :twisted:


I even emerge with "~x86" on my sparc box sometimes. There are too many masked packages not too.
_________________
Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Mon Jan 19, 2004 6:17 pm    Post subject: Reply with quote

NewBlackDak wrote:
I even emerge with "~x86" on my sparc box sometimes. There are too many masked packages not too.

Gah. Don't do that... If you must, use "x86 ~x86" instead, because it won't kill quite so many dependencies.

And if you want stuff keyworded on sparc, just ask :)
Back to top
View user's profile Send private message
citizen428
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 317
Location: Vienna, Austria

PostPosted: Mon Jan 19, 2004 10:30 pm    Post subject: Reply with quote

ciaranm wrote:
You guys know about the new top-secret package.keywords superfeature in the .50 series of portage, right?

I know I should've read the man page after emerging .50, thanks! :)

Per package USE flags! Finally! :)
Back to top
View user's profile Send private message
Smoothhound
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2003
Posts: 149

PostPosted: Tue Jan 20, 2004 2:56 pm    Post subject: Reply with quote

Quote:
now if there is way to say to bash_completion to treat ~emerge like emerge, would be neat


Not sure about bash but in zsh just type
Code:
setopt complete_aliases


...or put it in ~user/.zshrc

8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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