Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to use a single package from an overlay?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
hornett
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 84

PostPosted: Tue Aug 21, 2007 11:19 pm    Post subject: How to use a single package from an overlay? Reply with quote

Hello forum,

I'd like to install gtk-engines only from gnome-experimental so that I can use the new clearlooks theme from 2.11.6 instead of 2.10.

Is it possible to use just this single package from g-e without letting it update the rest of my system using this overlay?

All I could think of was to remove everything related from the world file, but then I wouldn't get any updates for those items at all would I?

Any help much appreciated- at this point I'm considering just downloading the tarball, building it and make installing it over the top of the 2.10 version in portage :-S

Ta ;)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Aug 21, 2007 11:28 pm    Post subject: Reply with quote

1) checkout the overlay to a directory
2) copy over that program from that overlay to your local overlay (only that program e.g. sys-devel/foo --> into /usr/local/portage/sys-devel/foo)
3) mask is not needed since only that program is used

disadvantage: you need to copy over newer versions

cheers :)

other way:

1) checkout the overlay to a directory
2) create a symbolic link in /usr/local/portage, e.g. sys-devel/foo --> into /usr/local/portage/sys-devel/foo, where foo is the symlinked directory from the directory)
3) that way that program will updated once you update that "overlay" from 1)

advantage: program will be update
disadvantage: you still need to update the overlay exclusively
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
hornett
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 84

PostPosted: Tue Aug 21, 2007 11:53 pm    Post subject: Reply with quote

Thanks! I really like the second option...however, when you emerge --sync, it overwrites the symlink and I have to recreate it.

Is there a clever way to avoid that? Or should I just make a script to do it- something like this perhaps:

Code:
#!/bin/bash
emerge --sync
layman -S
rm /usr/portage/x11-themes/gtk-engines/ -rf
ln -s /usr/local/layman/gnome-experimental/x11-themes/gtk-engines/ /usr/portage/x11-themes/gtk-engines


Thanks again :D

EDIT: Symlink it to my local overlay instead! D'oh!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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