Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple but useful alias
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
The Jaff
n00b
n00b


Joined: 14 Mar 2003
Posts: 26
Location: Sweden

PostPosted: Wed Apr 02, 2003 12:11 pm    Post subject: Simple but useful alias Reply with quote

This is a very simple but useful tip for those of you who occasionally want to play around with unstable/masked ebuilds. Instead of editing make.conf or having to write 'ACCEPT_KEYWORDS="~x86"' before each emerge put this into your .profile:

Code:
alias unstable='ACCEPT_KEYWORDS="~x86"'

(assuming your arch is x86).

By doing this you just have to write
Code:
unstable emerge <ebuild>

to emerge a masked ebuild.

Have fun.
Back to top
View user's profile Send private message
Jarjar
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 265
Location: Sweden

PostPosted: Wed Apr 02, 2003 12:22 pm    Post subject: Reply with quote

That's a pretty nice alias. ;)
BTW, I found a script I found very useful in the italian section, I edited a little though. Credits to whoever wrote it.. ;)

What it does: Unmask the ebuilds you want, useful for not getting downgrades every time you try to "-u world". The -U flag doesn't work too good for me.

Code:

/usr/sbin/unmask:
#!/bin/bash
for i in $( cat /root/unmasked_packages ); do
        if [ -e "/usr/portage/$i.ebuild" ]
                then
                        sed '/KEYWORDS/s/~x86/x86/g' /usr/portage/$i.ebuild > /usr/portage/$i.temp
                        mv /usr/portage/$i.temp /usr/portage/$i.ebuild
                        echo $i.ebuild UNMASKED
                else
                        echo "error: /usr/portage/$i.ebuild does not exist"
        fi
done


Code:

/root/unmasked_packages:
media-libs/fontconfig/fontconfig-2.1-r1
x11-base/xfree/xfree-4.3.0-r1
.. and so on.


Usage... :p
Code:

emerge sync && unmask && emerge -up world (--deep)

_________________
[Server etc. | C2D 2.2 @ 3.0 GHz / 4 GB RAM / 3x1 TB + 1x2 TB SATA disks + 1.5 TB ext. | Gentoo]
[Laptop | Macbook Pro 15" / Core i7 (Sandy) Quad 2.2 GHz / 16 GB RAM / Samsung 840 250 GB SSD + 1 TB + 2 TB HDD / 6750M 1 GB / OS X, Win 7]
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Apr 02, 2003 12:54 pm    Post subject: Reply with quote

Jarjar wrote:
BTW, I found a script I found very useful in the italian section, I edited a little though. Credits to whoever wrote it.. ;)

The credits go to arkangel. :wink:
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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