Rebuild meta-package on Gentoo

September 21, 2008 · Posted in Gentoo, Linux 

For those who want to rebuild a meta package in gentoo , I have some bad news. Its not possible on portage 2.1.

There are some workarounds on this but still you will end up rebuilding many useless packages

Lets assume you want to rebuild kde-meta:3.5 meta package

  1. You can use emerge -eav kde-meta:3.5. If you try this you will see that you will emerge more than 500 packages. This is overkill
  2. You can use a custom script.This script will find any package in kde-base category with 3.5 slot and rebuild it. Much better than before
    for i in $(qlist -C -I -L -S kde-base/*:3.5);do emerge $i;done
  3. Unmask and emerge portage-2.2 and use sets
    In portage 2.2 there are no meta packages but sets. So if you want to rebuild kde3.5 you need to do the following

    emerge @kde3-x

    Sets can be found under /usr/portage/sets/

Comments

2 Responses to “Rebuild meta-package on Gentoo”

  1. Markos on September 21st, 2008 12:48 pm

    Of course, qlist -C -I -L -S kde-base/*:3.5|xargs emerge will work too ( i think its even better that the for loop :) )

  2. TTT on November 5th, 2009 3:30 pm

    may be this is an easeast way
    emerge `qlist -CILS kde-base/*:3.5`
    or for kde-4.3
    emerge `qlist -CILS kde-base/*:4.3`

Leave a Reply




GreekBloggers.com
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug